Search found 5 matches

by asyukri10
Sun Feb 17, 2002 9:21 pm
Forum: Other words
Topic: Judge slow -- again???
Replies: 2
Views: 1987

Me too!
by asyukri10
Sun Jan 20, 2002 10:42 am
Forum: C++
Topic: Function As Parameter
Replies: 2
Views: 2576

void process(void(*k)(char*))
{ (*k)("C++ or C?n"); }
//------------------------------------
by asyukri10
Tue Jan 08, 2002 12:28 pm
Forum: C++
Topic: Function As Parameter
Replies: 2
Views: 2576

Hi, Another help plz... How to send a function/module as parameter? I know to do it in C but how in C++? :| My code(C), #include <stdio.h> void print(char* s) { printf("Print = %s",s); } //------------------------------------ void process(void(*k)()) { (*k)("C++ or C?n"); } //-----------------------...
by asyukri10
Tue Dec 11, 2001 2:09 am
Forum: C++
Topic: Append File
Replies: 1
Views: 1982

Hi,
Does somebody know how to append a string to a file? I've tried as below but I think there are better solutions. Help me plz...

FILE* file;
char s[100];

if ((file=fopen("file.txt","r+"))==NULL)
{ printf("error!");
exit(1);
}

while(fgets(s,100,file));
fprintf(file,"my text!n");
fclose(file);
by asyukri10
Thu Nov 29, 2001 12:58 am
Forum: Volume 101 (10100-10199)
Topic: 10183 - How Many Fibs?
Replies: 66
Views: 24419

Try this,
1,2,3,5,8,13,...

Go to advanced search