15,552 Topics
| |
Hi, I am new to this website (and C++) so pls forgive any newb errors / convention mistakes. I have a project that contains both a normal source file (PB.cpp), associated header (PB.h) and a windows form (GUI.h). I'm trying to pass a variable from the form to a function … | |
[code] #include<stdio.h> #include<stdlib.h> #include<string.h> struct name { int a; char b[10]; char c; }; int main() { struct name *p; char *n; n = (char *)malloc(3 * sizeof(char)); // in this why 3 means.. its my condition n = (char *)p; n->a = 3; // this line is showing error … | |
Hey guys, recently i've tried to compile this command line email program I get the error: cannot find -lobjc ld returned 1 exit status Here's my code. Any Help Appreciated. [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <winsock.h> #define NETWORK_ERROR -1 #define NETWORK_OK 0 FILE *fp; char buffer[200000]; char … | |
c program to implement a stack using two queue | |
i have *.exe file which is written in C.....when i run this exe file, console window opens even though i have not given any thing to print on console...the .exe file performs file reading and writing operations....now how to i close the console window automatically....i dont want to hide....i am … | |
I dont want to use strtok. I want to know how to use strsep? Any Idea. For example i have a string with delim progID|progTitle|progDescription|progCode. Help please | |
I need to take 2 char strings (6 character date) (and (8 charachter operatror id) convert to uin32 to send over a bus to store by another processor. That processor later sends them back as uint32 and I need to conver back to char strings. Two files need access to … | |
Hi All, I am using microsoft nmake tool version 6.00 for my project. when I make changes in any of the .h files, the C files which includes the header file is not getting compiled automatically. Can anyone give some suggestions please? Thanks in advance!! -Karuppiah | |
struct start { int* i; int* j; }p; p.i = new getValue(); when i am printing the value of i it is giving address not the value. Please tell how to get the value. | |
Hi, I need to find p,q and e values for RSA. Here is a simple & short description of RSA. [QUOTE]Your enter a word (actually it is a sentence but for now a word) then program will convert letters to numbers (like a=1 m=13 etc.) and group them. Use with … | |
Hi... How can i call a c function for e.g say rounding decimals in Netezza.As it is possible in Netezza with a external C routine but don't the way to proceed.Can anyone please help me out.....?? | |
Hi, I'm not sure if this is the right forum to post this thread in, but here it is. Even though I program on the Mac OS X platform, and am quite good at it, I'm really doing game programming, so I never really learned much Cocoa or Carbon. Can … | |
Hi all, So I'm trying to do this checksum problem for my C programming class but im running into some difficulty. My output is supposed to be this: Line: This is short. Checksum: 2 Line: The quick brown fox jumped over the lazy dog. Checksum: = Line: A. Checksum: O … | |
Hi , I have one buffer size is 50 bytes and reading 50 byte data from file unsigned char bufffer[50]; read(fd,buffer,50); // Consider each byte numerical is value is zero. printf("@@%s@@",buffer); // Here i will get @@@@ only. But I want @@(50 zero)@@ as output(i have to use %c or … | |
I'm having trouble with this code, I want to make the answer in (^)and(*) Example : Enter number : 8 Prime factors of '8' : 2^3 Enter number : 56 Prime factors of '56' : 2^3*7 Please help me with this, Thanks![code]#include <stdio.h> /* Find out the prime factors * … | |
I'm having trouble making a variable argument function for my class. When I gcc it, its giving me these errors: my_printf.c: In function `print_str': my_printf.c:14: error: syntax error before '{' token my_printf.c:20: error: syntax error before "__builtin_stdarg_start" here's a code snippet: [CODE]#include <stdio.h> #include <stdarg.h> #include "my_io.h" // ASCII definitions … | |
Hey I'm having trouble using scanf to input two number and it is only letting me input 1. here is my code [ICODE] #include <stdio.h> int main() { int i ; int j ; int tl[10][25] ; int br[40][5] ; int point1[100][100] ; for(i=0;i<40;i++) for(j=0;j<25;j++) { printf("please enter value x,y … | |
I have these structs. and I have two files one is program.dat and other is course.dat and I am supposed to load the values from those .dat files to the struct. The separation between attributes in program.dat and course.dat is '|' for example programID|programTitle|ProgramCode........ and I have used string tokenizer … | |
Cud any1 let me know how this code works with respect to pecedence and associativity Thanks in advance[code]#include <stdio.h> main() { int i = -3, j = 2, k = 0, m; m = ++i && ++j || ++k; printf ("\n %d %d %d %d", i,j,k,m); }[/code] | |
[QUOTE]This discussion has been moved from [url]http://www.daniweb.com/forums/thread284115.html[/url]. Check there for the beginning.[/QUOTE] = = = = = = = = = = = = = = = = = = = = Actually neither approach is wrong. The original code does not store prime numbers but does correctly identify all … | |
So uhm...I want to do the bubble sort and i found a code but actually i don't really know what's missing...ok...sorry but i am just a newbie and not so average of logic(lol. :p). My goal here is to complete this code, 'cause i tried to run it but it … | |
Hello, Can anybody help me on the issue below:- [B]'Features of C language that uses indirect addressing mode.'[/B] I didn't get it's meaning exactly. Whether it is Function 'Call By Value', as we are not refering direct address of variables like in 'Call By reference' or anything else. Please help … | |
| |
In your opinion, when creating a nested loop is it best to use the call function and if so is using a pointer the route to go when creating the function? | |
Hi Everyone, I would like to get some help in a way to convert C code to DLX assembly code.I have tried to search if there are tools available which would perform this, but whatever I find is to convert to MIPS assembly code. Guidance to move further in this … | |
As you probably know, Shell sort is typically written with a base of insertion sort, as shown below: [code]for (ctr = numGaps - 1; ctr >= 0; ctr--) { k = gapSeq[ctr]; /* Insertion Sort Begins Here */ for (j = k; j < size; j++) { tmp = array[j]; … | |
Hello there! I have an exercise that askes me to create a binary file .dat with a structure in it. I have to run it like this: a.out something.dat. Also I have to create a command prompt for the user (input). I am very confused since I don't have linux! … | |
C-implementation of M-ary/multiway tree...... madam has asked me to do it as part of my project.... node will contain simple integer numbers.... i didn't code any code for it in book/internet..... plz help,Thanks in advance...... | |
Hi, I want to receive data which a device which is sending on usb. How can I receive data.Will there be any C codes available for that? I am very new to device programming.All suggestion are welcome.?? I want how to interface it and get the data.I want to do … | |
This program generates different combinations of a number or a string as given by the user.just a simple implementation of arrays. |
The End.