*NOOB* attempt to make a calc prog
im not even half way through my book yet but i figured wat the hell ill give making a calc a try while i was on vaction. Also i would like to say i did this in a notebook didnt have a pc or nething to compile it on *sigh* neway here the code
Code:
#include <stdio.h>
int x
int y
int add_num(int x, int y)
int sub_num(int x, int y)
int mutli_num(int x, int y)
int divid_num(int x, int y)
int add_num = +=;
int sub_num = -=;
int multi_num = *=;
int divid_num = /=;
{
int result;
result = x"+=,-=,*=,/="y;
return result;
}
int main()
{
char name[200]
int sum;
sum = add_num,sub_num,multi_num,divid_num(x,y);
printf("input:">>name>>\n");
printf("result: %d \n",sum);
system("PAUSE");
return 0;
}
i think it was a decent attempt for a noob such as my self...but neway could someone lend me a hand here??????