Search found 2 matches

by smagazor
Tue Nov 23, 2010 2:17 pm
Forum: Challenges Solved
Topic: Pi Hates Nines
Replies: 26
Views: 3142

Had fun while solving it by reading from the file using a while loop instead of a for one and by printing the answer also through a while. #include <stdio.h> #include <conio.h> int main(){ FILE *op,*oq; oq=fopen("10000000.txt","r"); op=fopen("answer.txt","w");...
by smagazor
Mon Nov 22, 2010 12:31 am
Forum: Challenges Solved
Topic: Valuation
Replies: 103
Views: 8916

Using 'Dynamic Memory Allocation' in C. #include <stdio.h> #include <conio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> int main(){ struct Valuation{ char value; struct Valuation *urm,*ant;}start,*nod; start.urm=NULL; start.ant=NULL; nod=&start; char x[]="93752xxx746x27x175...