15,551 Topics

Member Avatar for
Member Avatar for sdinu96

[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 …

Member Avatar for Banfa
0
94
Member Avatar for anuragcoder

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 …

Member Avatar for Aia
0
123
Member Avatar for mailsadiq
Member Avatar for bhosle

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 …

Member Avatar for chiwawa10
0
113
Member Avatar for javedkhan0258

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

Member Avatar for jephthah
-1
155
Member Avatar for jskelly

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 …

Member Avatar for UncleLeroy
0
177
Member Avatar for karuppg

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

Member Avatar for Banfa
0
249
Member Avatar for ayushi agarwal

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.

Member Avatar for jephthah
0
96
Member Avatar for mystb

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 …

Member Avatar for abhimanipal
0
198
Member Avatar for ims@123

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.....??

Member Avatar for abhimanipal
0
68
Member Avatar for John A

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 …

Member Avatar for jarimany
0
1K
Member Avatar for jsphb9000

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 …

Member Avatar for Aia
0
173
Member Avatar for yuvaraj.tr

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 …

Member Avatar for jephthah
0
78
Member Avatar for westsider123

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 * …

Member Avatar for jephthah
0
423
Member Avatar for cokaznsyco72

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 …

Member Avatar for jephthah
0
193
Member Avatar for adxer

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 …

Member Avatar for dfetter88
0
316
Member Avatar for javedkhan0258

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 …

Member Avatar for abhimanipal
0
101
Member Avatar for gear26926

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]

Member Avatar for jephthah
0
113
Member Avatar for Banfa

[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 …

Member Avatar for 0x69
3
307
Member Avatar for addxztion

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 …

Member Avatar for addxztion
0
167
Member Avatar for cutedipti

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 …

Member Avatar for Ancient Dragon
0
178
Member Avatar for ramakrishnaramk
Member Avatar for mr.confused!

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?

Member Avatar for jephthah
0
144
Member Avatar for hetalraithatha

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 …

Member Avatar for UncleLeroy
-1
571
Member Avatar for dfetter88

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]; …

Member Avatar for dfetter88
0
79
Member Avatar for skypower

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! …

Member Avatar for skypower
0
130
Member Avatar for purvi12345

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......

Member Avatar for Tellalca
-3
1K
Member Avatar for 234pramod

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 …

Member Avatar for 234pramod
0
121
Member Avatar for harshchandra

This program generates different combinations of a number or a string as given by the user.just a simple implementation of arrays.

Member Avatar for Nick Evan
-2
250
Member Avatar for speedy94519

Hey you guys. Im doing c code where i have to make a file full of double values and then make another empty one because im going to write into that file. It does compile but i get this: Enter the input file name: randomfile.dat Enter the output file name: …

Member Avatar for WaltP
0
199

The End.