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
~17.5K People Reached
Interests
C,C++, Core Java basics,Oracle SQL queries
Favorite Tags
Member Avatar for deceptikon

If you have any ideas for a code snippet you'd like to see, please post them here. We can't depend on the snippet writers to come up with all of the ideas, can we? ;)

Member Avatar for vegaseat
3
736
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
189
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
162
Member Avatar for Prisms

Hello everyone I'm having a bit of trouble with C. Its been awhile and I was wondering if I'm on the right track I'm trying to read from a file and manipulate the data with a structure I created. The problem is the first two values in the text document …

Member Avatar for WaltP
0
407
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
179
Member Avatar for DeHF

The error of "} expected" appears at line 5. Why is that? I have included it at line 12. The error of "Declaration missing ;" appears at line 8. Why? There is ";" at the end of the line. class PEmployee { public: PEmployee(); PEmployee(string employee_name, double initial_salary); void set_salary(double …

Member Avatar for Perry31
0
109
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
73
Member Avatar for RReddy1

2012-08-01 20:57:32.547,ERROR,AuthenticateMethod/4, Response code=M2 2012-08-01 20:57:33.053,INFO,PaymentMethod/3,PAYMENT Response Code=0001 Hi, I have a file containing comma seperated text as above. i need to parse this text and count how many times "AuthenticateMethod/4" and "PaymentMethod/3" these methiods are present in the file. Can you please help me in this regard? Regards,

Member Avatar for Perry31
0
192
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { char a[50]; int n; printf("enter the string : "); gets(a); n=strlen(a); printf("%d",n); for(i=n;i>0;i--) { printf("%c",a[i]); } } the error is at i=n why cant we use i=n;

Member Avatar for WaltP
0
202
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
239
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { int a=5,b=10,*ptr,*pt1; ptr=&a; pt1=&b; b=*ptr; a=*pt1; printf("%d \n %d",a,b); } producing same values not swapped

Member Avatar for WaltP
0
100
Member Avatar for I_m_rude

hi, 1. actually i was reading some text from my book and i come across this expression. I am not getting what it means. here it goes, typedef int (*HIG) (int,int); And "sizeof" can't be used in #if because the preprocessor does not parse type names. What this statement means …

Member Avatar for Perry31
0
112
Member Avatar for benjaminpelc

Hi, I am trying to write code to read a text file containing velocity vector data in the form x, y, u, v. An example of the data file I am opening is: 0 1.0 3.24 45.64 1.5 2.5 54.34 23.45 ... I have a function which can read the …

Member Avatar for benjaminpelc
0
259
Member Avatar for RReddy1

Hi, Can anyone help me out in the below issue. My requirement is,,i have to take an xl sheet as input in the program with 2 columns student name,student address and some 20 number of rows for each column. i have to take another input file also i.e a log …

Member Avatar for Perry31
0
82
Member Avatar for harshm027

I am using Windows 7 home premium. I am not able to enter the password to login. But the space key and the back key are working fine. Even the touch pad is working fine. Please help Thanks

Member Avatar for Dedra
0
125
Member Avatar for sebass123

Im not really sure where my program has gone wrong and would be thankful for any help provided. It compiles and runs up until the first function is called then crashes however I have tried multiple ways to fix it such as different names, changing the return values, changing the …

Member Avatar for Perry31
0
121
Member Avatar for ashine80
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
679
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
159
Member Avatar for tubby123

Hey, Is there any difference between the 2 syntax, ie, str = "This is a test"; and strcpy(str,"This is a test"); I think, both of them, malloc some random 200 addresses, and give the starting location of the 200 chunk to the pointer variable 'ptr'. #include<stdio.h> char* str; int main(void) …

Member Avatar for Perry31
0
101
Member Avatar for jemz

Hi, Can i ask some help what is the best editor to use in learning C language.... By the way which is which language, should or i must to learn C or C++ ?. Thank you in advance.

Member Avatar for Lucaci Andrew
0
307
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
165
Member Avatar for chamnab
Member Avatar for Perry31
0
215
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
96
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
258
Member Avatar for C++ Beginner

I have 2 queries I have to create but they sound the same. Note: I am just learning the theory behind SQL and not actually working on a DB at this time Directions: 1. Show all the categories for each book with the book number, title, category number, and category …

Member Avatar for Perry31
0
109
Member Avatar for Majestics

`select s.sname as stationname , sum(di.quantity) as quantity from demand_information di, demand d, company c , station s where s.sno = d.sno(+) and di.demandno = d.demandno and d.cno = c.cno and c.cname = $P{companyname} and to_char(d.demanddate,'MM-yyyy') = $P{gdate} and di.pno = (select pno from products where productname = $P{productname}) group …

Member Avatar for Perry31
0
92
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
61