Jump to content


Check out our Community Blogs

nerio

Member Since 03 Sep 2010
Offline Last Active Jul 21 2011 01:01 PM
-----

Posts I've Made

In Topic: full size of the window, full screen mode

21 July 2011 - 12:26 PM

I was also searching for that. You can only get a Window that is maximilized. You can not really do full screen option this way.

Maybe DosBox could be a solution, I will see.

In Topic: full size of the window, full screen mode

20 July 2011 - 11:29 PM

Yes, that it is. I want to fullscreen the command prompt. Is that possible in Win 7?

In Topic: What is wrong with division?

14 July 2011 - 04:16 AM

I have it, you just put there r=1.0/7.0 and it works.

In Topic: C program to detect prime numbers

27 November 2010 - 10:05 AM

Also, when checking for prime's, the fastest way I know of is checking up to square of that number.


Also, when checking for prime's, the fastest way I know of is checking up to square root of that number.

In Topic: copying binary file in C

26 November 2010 - 05:03 PM

Thank you Flying Dutchman

this is the actual version now:

/* not finished */
#include<stdio.h>
#include<math.h> 
main()
{
FILE *f1;
FILE *f2;

char s[20];
unsigned char b;

 printf("This program copies a given file.\n\n");
 printf("Enter file name:\n\n");
 gets(s);
 printf("Processing..\n\n");
 f1=fopen(s,"rb"); /*Open the file Input*/
 f2=fopen("output.out","wb"); /*Open the file Output*/

 b=5;

while (f1 != EOF){
   fread(b,1,1,f1);
   fwrite(b,1,1,f2);
 }

 fclose(f1); /*close the file input*/
 fclose(f2); /*close the file output*/
 printf("Done. File output.out created.");
 getch();
}

but still doesn't work now..

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download