Member Avatar

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 //tmpStr = BinaryFormat((void*)Input); //Tried as below also but it was crashing and showing only first character //tmpStr = (char*)BinaryFormat((void*)Input); //printf("\nThe Binary format for the given is : %s", tmpStr); //It was crashing here //Trying to print the number in binary format printf("\nThe Binary format for the given is : %s", …

Member Avatar
+0 forum 5
Member Avatar

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
+0 forum 3
Member Avatar

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 to allocate for these a[0][5], a[1][5], a[2][5] for (int i = 0;i<3;i++) for (int j = 0; j<5;j++) a[i][j] = 1; .......... -- Thanks in advance.

Member Avatar
+0 forum 2
Member Avatar

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 thread/post/... or he/she needs to open that particular thread/post to check any upadates?? 3. If i'm voting UP/DOWN some thread/post, will the originator of thread/post will get notification about this? 4. Is there any option to add some geek to my friend list so that i can post to him/her …

Member Avatar
+0 forum 6
Member Avatar

Hi, Which are useful algorithms i implement for simple project??

Member Avatar
+0 forum 5
Member Avatar

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 int 3 will do??? Thanks in advance.

Member Avatar
+0 forum 2
Member Avatar

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
+0 forum 4
Member Avatar

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 to get mangling for variable c and MyStruct for how many are allocated other than a, b. d = myfun(a, b, c, Mystruct); return 0; } I can't get name mangling for variable 'c' index. When i build the above code and found name mangling for single type only for …

Member Avatar
+0 forum 3
Member Avatar

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
+0 forum 1
Member Avatar

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 for the second time(when codecount =1) its crashing. Can anyone suggest me to proceed further??? #include <stdio.h> #include <conio.h> #include <string.h> #include <stdlib.h> struct _MyStruct { char Mycode[10]; int Index; }; void MyFun(char *String, _MyStruct *MyStruct[] ) { char *TempString; int i=0,j=0, code = 0, codecount = 0; while(String[i]) { …

Member Avatar
+0 forum 8
Member Avatar

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 as integer value //tempstr[1] = '(' // trying to assign '(' character tempstr[2] = '50' //trying to assign '1' boolean value tempstr[4] = 47 //trying to assign 47 integer value but when i debugged and found in memory address that values stored for '2', '50', '47' are 30, 32 , …

Member Avatar
+0 forum 9
Member Avatar

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
+0 forum 9
Member Avatar

Can any explain about variable argument and their parameters??

Member Avatar
+0 forum 1
Member Avatar

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

Member Avatar
+0 forum 3
Member Avatar

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
+0 forum 1
Member Avatar

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

Member Avatar
+0 forum 4
Member Avatar

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
+0 forum 1
Member Avatar

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
+0 forum 2
Member Avatar

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 reduced to below 1000 there comes a memory problem.Can any one solve this issue and give an optimize solution? I don't know whether the problem is related to memory leak or some other. Below is my source code... This code in other file named Build.h [CODE]int GetSignature() { return 1; …

Member Avatar
+0 forum 4
Member Avatar

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
+0 forum 8

The End.