Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
52% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
5
Downvotes Received
7
Posts with Downvotes
2
Downvoting Members
7
5 Commented Posts
~18.0K People Reached
Interests
C,C++, Core Java basics,Oracle SQL queries
Favorite Tags

49 Posted Topics

Member Avatar for deceptikon

Hi Deceptikon, Below are my opinion. If posting code snippets for below topics wil be useful 1. Some algorithm, its usage, its appolications with real time example right from the basic algorithms. Then it will be useful for beginners like us to go with some specific(standard) algorithms to implement codings. …

Member Avatar for vegaseat
3
748
Member Avatar for Perry31

Hi, I'm facing some problem while returning string. I want to return final string value and print it. Below is the code that i tried, int main() { int Input = 0; //Tried using tmpstr also //char *tmpStr = NULL; scanf_s("%d", &Input); //Tried as below also but it was crashing …

Member Avatar for Perry31
0
190
Member Avatar for Perry31

Hi, I have jpeg image of JFIF type, i want to read jpeg image, decode it and finally i want to display this image in a screen. Could anyone explain me the parsing of jpeg binary data for decoding and encoding? Thanks in advance

Member Avatar for Moschops
0
164
Member Avatar for Prisms

The below is my idea(rough one) to proceed to design first towards implementation. Create structure for first two data ........... struct StudentIndex { int No_Of_students; int date; or (int year; int month; int day;) }; .............. Fill this structure by read (using fscanf()) first 2-character for no_of_Students as int next …

Member Avatar for WaltP
0
409
Member Avatar for Perry31

Hi Geeks, i have declare Char *a type variable and i want to fill data in a[0][n], a[1][n], ... a[max][n]. below is my code snippet which i'm facing build error while initializing. I'm getting build error as ".....subscript requires array or pointer type " ......... char *a; a = (char*)calloc(3,sizeof(int)+3);//trying …

Member Avatar for Perry31
0
183
Member Avatar for DeHF
Member Avatar for Perry31

Hi Geek, Below are my questions in daniweb, 1. Is there any way to post directly to a person like sending mail to a person so that that person will get notification about that post? 2. If i'm updating in a particular thread, will it notify the originator of the …

Member Avatar for WaltP
0
213
Member Avatar for Perry31
Member Avatar for rithish
0
75
Member Avatar for RReddy1

use strstr(Total_string, String_To_Find) function to find your requied string. This strstr() will returns a pointer to the first occurrence of String_To_Find in Total_string, or a null pointer if String_To_Find is not part of Total_string. with this strstr() you can find number of occurence of your string.

Member Avatar for Perry31
0
196
Member Avatar for rithish

Hi Rithsh, > the error is at i=n why cant we use i=n; n is string length value say (string is a[] = Test, lenght n=4). Characters will start at index 0 so string starts like a[0]='T', a[1]='e', a[2]='s', a[3]='t', a[4]='\0'. When you try to print a[4] character then '\0' …

Member Avatar for WaltP
0
205
Member Avatar for Perry31

Hi geeks, I'm using visual studio to write and execute programs. I want to create breakpoint not like software breakpoints(F9 for debugging). I want to build the project in release mode and want to have breakpoint. I heard something like _asm int 3 to create breakpoint. Can anyone explain _asm …

Member Avatar for Ancient Dragon
0
338
Member Avatar for rithish

Hi Deceptikon, > And before anyone chimes in with swaps using XOR or arithmetic operators that they think are clever: your solution is bad, and you should feel bad. why one should not use XoR or arithmetic operation to swap number??? can you please explain it? Then how to swap …

Member Avatar for WaltP
0
102
Member Avatar for I_m_rude

1. typedef int (*HIG) (int,int); - a pointer to a function returning an integer. In this HIG is pointer to function which taking two arguments first as int and second as int type. And the function HIG return int type. 2. Is there anyway to use a "sizeof" in a …

Member Avatar for Perry31
0
115
Member Avatar for benjaminpelc

Hi Benjamin, I have modified your code bit to access struct member from main function. To achieve this i passed struct as member to function and declared one global variable to track line count which will be usefull to print the information based on the line count #include <stdio.h> #include …

Member Avatar for benjaminpelc
0
274
Member Avatar for RReddy1

Post the code what you tried and what are you upto.. so that we can guide you to proceed further.

Member Avatar for Perry31
0
85
Member Avatar for harshm027

Hi Harshm, Follow the below step to enter password using OnScreen Keyboard in Win-7 1.Select Ease of Access on left side fo login screen. 2.Enable vOnScreen Keyboard from the option. 3.Use Softkeyboard to enter ur password. I hope this will help u. :)

Member Avatar for Dedra
0
127
Member Avatar for sebass123

Hi deceptikon, what is the content of input file (in your case test.txt). It is nowhere mentioned and no Objective of the program is mentioned. and you have done everything what Sebass wants. Hey Sebass, how can you build this code without error?? I used VS to build and got …

Member Avatar for Perry31
0
123
Member Avatar for ashine80

When execute your code it crashing while initialize *(*(Matrix+i)+j)=0; What exactly do you want from this post??

Member Avatar for Perry31
0
148
Member Avatar for Perry31

Hi, Anyone suggest/Explain code optimization, time complexity of program. I came across Big O(n), Big O(...). can anyone explain what these means and how to find these for programs. -- Thanks in advance

Member Avatar for Perry31
0
687
Member Avatar for Perry31

Can anyone elobrate me about Name Mangling? i tried to get name mangling for the below, struct sample { int a; char b; int a[1]; }; int myfun(int a, int b, int c[], struct a[]) { return 0; } int main() { struct sample Mystruct[2]; int a, b, c[9]; //Trying …

Member Avatar for Perry31
0
168
Member Avatar for tubby123
Member Avatar for Perry31
0
108
Member Avatar for jemz

Hi Schol-R-LEA, can you guide me to build and use CodeBlock compiler??? I have downloaded the below stuffs and launched CB. 1) CB nightly (codeblocks-10.05-release) 2) mingwm10.dll 3) wxmsw28u_gcc_cb.dll Placed both dll in CB location and lanched CB. When i open CB some Global variable dialog is poping out. I …

Member Avatar for Lucaci Andrew
0
319
Member Avatar for Perry31

Hi, Can anyone suggest me how to set/create Alpha channal like OxaaRRGGBB for 32Bit BMP image?? I used photoshop, Pixelformer to create 32Bit BMP image with Alpha channel but when i open that image in hex editor nothing is set for Alpha channel.

Member Avatar for Schol-R-LEA
0
172
Member Avatar for chamnab

HI DeanMSands3, Thanx for the allegro information. I tried and i'm able to execute sample program that is mentioned in Allegro tutorial. I set all the necessary project settings as mentioned in the link. But i'm not able to build it in debug mode. Its giving build error as **"Cannot …

Member Avatar for Perry31
0
221
Member Avatar for Perry31

Hi, The below is my situation, **Input String :** abc 123$ abc 123$ abc123$abcabcabc 123$ From the above string i want to store the starting index of "123$" code and the "123$" string. When i debugged and found, for first iteration(codecount=0) i'm able to store both index and string but …

Member Avatar for Perry31
0
98
Member Avatar for Perry31

I declared one variable in one type (say char x ) and allocated. But i'm assigning integer or some other type value to it. Below is the code snippet which i'm facing problem, char *tempstr = (char*)calloc(1,4); // declaring with char variable tempstr[0] = '2'; // trying to assign 5 …

Member Avatar for WaltP
0
260
Member Avatar for C++ Beginner

Wat exactly do u want?do u want to see the result for the below statement or need to create View for the same and use select to view it? 1. Show all the categories for each book with the book number, title, category number, and category name. 2. Show all …

Member Avatar for Perry31
0
112
Member Avatar for Majestics

Hi majesctics, can u desc your tables so that it will be useful to know the column names and do proper query?

Member Avatar for Perry31
0
94
Member Avatar for Perry31

Hi, I tried to do like below, but its not printing the expected one. Plz suggest to proceed further. OUTPUT: Enter the string: abc Entered string is : NULL void main() { char *a; printf("Enter the string: "); scanf("%s",&a); printf("\nEntered string is :%s", a); getch(); }

Member Avatar for DeanMSands3
0
8K
Member Avatar for Perry31
Member Avatar for Sokurenko
0
63
Member Avatar for Perry31

Hi, Is there anyway to insert/add a new column between two column in a table without deleting any other column???

Member Avatar for Aqua_annie
0
90
Member Avatar for Perry31

Hi, I want to take backup of all my tables in my system and i want to use in other system.Tell me how to take back up tables in oracle 9i and how to import or use those backup table in another system???

Member Avatar for debasisdas
0
98
Member Avatar for bookmark

[QUOTE=bookmark;1404719]Hi, I'm trying to make a program that reads a text file that contains about 4 rows of numbers and outputs the average for each row. I need help with these two errors. It is not complete but I need help on these so I can continue. Any help is …

Member Avatar for Perry31
0
189
Member Avatar for frankchester

[QUOTE=frankchester;1403060]I originally didn't have that in, but put it in there to try and remedy this problem as I read on another topic and that was the issue... I'll remove it, but there or not it still doesn't work?[/QUOTE] Hi Frank, You did a small mistake by used a fclose …

Member Avatar for Perry31
0
245
Member Avatar for alexchen

[QUOTE=alexchen;1403207]What can I write in: [CODE]fgets(me.name,sizeof(me.name),)//?[/CODE] What should age be: 1short 2char 3int[/QUOTE] Hi Alex, gets - get a string from a stdin stream not a integer value.Better use short or short int for age variable since this has the least range other data type. Use cin to read the …

Member Avatar for alexchen
0
135
Member Avatar for NinjaLink

[QUOTE=NinjaLink;1402869]Hi I am trying to compile and run my prog3.c program, but I am getting the compiler errors below. I have tried to reference the information by doing #include "node0.c" etc., but no luck. Any ideas on how to fix this problem? I attached the files below that I am …

Member Avatar for Perry31
0
259
Member Avatar for harikrishna439

[QUOTE=harikrishna439;1395610]Can we print rational numbers instead of decimal ratios? for example, a=3; b=4; if we print a/b, we have to get 3/4 instead of 0.75[/QUOTE] Hi Harikrishna, If you just want to print as rational number use printf statement as below a=3, b=4 then to print as 3/4 printf("%d/%d",a,b);

Member Avatar for sharathg.satya
0
110
Member Avatar for tdba.316

[QUOTE=tdba.316;1399731]Hey :D this is my first post here^^, and it's a problem with an exercise from the book C++ Primer Plus, which I have been self-studying (I'm the beginner). The following code is how I did the exercise, which is in the header comment. It was built in VC++ 2010, …

Member Avatar for tdba.316
1
1K
Member Avatar for Lasbunter

[QUOTE=Lasbunter;1396851]have duty make a program bank with C++ that program can : create new account withdraw deposit balance transfer but I am confused where to start? please help me !![/QUOTE] Hi Lasbunter, This will help you. Change with your requirements. [CODE] #include <graphics.h> #include <dos.h> #include <iostream.h> #include <fstream.h> #include …

Member Avatar for Perry31
-4
142
Member Avatar for indrajeet6

[QUOTE=indrajeet6;1394911]Hi I'm Indrajeet. I was writing a program in VC++ 2010 Express for file manipulation, and after finally getting all the syntax errors out,my code looks lie this: [CODE]/********************************************************************* This is a program for file manipulation in VC++ Created by Indrajeet Roy *********************************************************************/ #include<conio.h> #include<stdio.h> #include<stdlib.h> //Protoype of the functions …

Member Avatar for Perry31
0
229
Member Avatar for bkoper16

[QUOTE=bkoper16;1393645]Here is the whole code , take note that some things are left in it from an alternate version that i am currently modifying, the case 1 of the switch is what i am currently trying to get right, case 2 will constantly display the first quarterback for some reason …

Member Avatar for Perry31
0
187
Member Avatar for Perry31

Hi, Can anyone explain in detail what is the difference between int *a and int* a? Is there any difference between them?

Member Avatar for Ancient Dragon
0
85
Member Avatar for Perry31

Hi, How audio and video files are stored in database in Oracle? Can anyone please explain in details with more real time example and SQL statements.

Member Avatar for debasisdas
0
78
Member Avatar for alviss_88

[QUOTE=alviss_88;1389613]Hi! i trying to take the same value from 2 arrays and then count how many time of it. However, when i compile, it run ok. but it did not print out the value of coutting. I did not know why, i had tried several times to fixing. please help …

Member Avatar for Perry31
0
305
Member Avatar for apanimesh061

[QUOTE=apanimesh061;1387460][CODE]create table items_avail ( pro_id varchar2(10) primary key, mod_id varchar2(5), comp_name varchar2(25) ); [/CODE] I wish to remove the primary key constraint......and add make the prod_id and mod_id as primary keys together. i.e. primary key(prod_id, mod_id) But he thing is this table is already connected to three more tables by …

Member Avatar for Perry31
0
99
Member Avatar for Perry31

Does any know about make file??? If yes, could you please explain about make file how to create make file and how to use in C,C++???

Member Avatar for Perry31
0
130
Member Avatar for aman rathi

[QUOTE=aman rathi;1356516]hello i am using oracle 9i enterprise edition i want to open isql plus in my browser please tell me how to do it. i am very beginner to oracle. please help me.[/QUOTE] To open iSQL PLUS in browser.Do the following.. [LIST] [*]Go to All Programs [*]Select Oracle menu …

Member Avatar for Perry31
-1
185
Member Avatar for Perry31

Hi friends, I've created program for getting the data members from the structure and pass those variable in a function dynamically. The structure will dynamically change and its members also changing.Now i need to rectify the memory leak problem in this.I declared maximum size of buffer is 30000 when i …

Member Avatar for Perry31
0
150
Member Avatar for Perry31

Hi friends, I'm new to this community. i just want to read string from a file excluding punctuations like ',' ';' or newline character. Is there any way to read the string by specifying the terminate character.

Member Avatar for Martin B
0
127

The End.