Originally posted by Outlasted
Well thaks a lot
and I'll take a look at VB.NET later then!
Oh and btw, this is how far ive got in C, its for calculating the area of a circle where you input the radius:
#include<stdio.h>
#include<math.h>
int main()
{
int a;
float pi;
pi = M_PI;
printf("\t\vThe Area of The Circle\n");
printf("\n");
printf("\n");
printf ("This will also save as a file named Results");
printf ("\n");
printf("\tWhat is the Radius?\n");
scanf("%d",&a);
a = pi * (a*a);
printf("The answer is %d",a);
printf("\n");
FILE *f;
f = fopen("Results.txt","w");
fprintf(f,"Test 01: %d\n",a);
return 0;
}
Is it well written? I've got 2 questions two plz
how do you make it print the real value (with something point etc) and when it saves it as a text file, each time i restart the programm it rewrites, so how could i make it continue in the same file?
Lol, I was actually making a Python equivelant of that program! I'll release it when I get around with fixing py2exe.
You should really try Python yourself, it is simple, easy syntax yet so powerful and it will even help you with further development in C, Objective-C, C++ and Java!
Originally posted by ox3
Your butthurt that you have 2 more REP Then me and you have been here longer and im just better then you.