If you do not know C then why the need for the programs?Originally posted by: jefa
cause i dont know C..
program example: enter the age of 2 people and output the average..
i just need them today
Originally posted by: jefa
cause i dont know C..
program example: enter the age of 2 people and output the average..
i just need them today
Originally posted by: Aikouka
Originally posted by: jefa
cause i dont know C..
program example: enter the age of 2 people and output the average..
i just need them today
...
At least write the pseudo code and I'm sure people wouldn't mind helping at least a bit then.
Although it's not hard to do:
int age1, age2;
printf("Enter Age 1: ");
scanf("%d", &age1);
printf("Enter Age 2: ");
scanf("%d", &age2);
printf("The average is %d.", (age1+age2)/2);
![]()
Originally posted by: jefa
id rather retain my C++ knowledge
Originally posted by: ngvepforever2
Originally posted by: jefa
id rather retain my C++ knowledge
How can you have any knowledge of C++ and not be able to write simple C programs ?Methinks you don't have any knowledge of C++ or C.
ng
Originally posted by: jefa
Originally posted by: ngvepforever2
Originally posted by: jefa
id rather retain my C++ knowledge
How can you have any knowledge of C++ and not be able to write simple C programs ?Methinks you don't have any knowledge of C++ or C.
ng
sigh newbies..
Originally posted by: ngvepforever2
fixed
ng
Originally posted by: ngvepforever2
Originally posted by: jefa
Originally posted by: ngvepforever2
Originally posted by: jefa
id rather retain my C++ knowledge
How can you have any knowledge of C++ and not be able to write simple C programs ?Methinks you don't have any knowledge of C++ or C.
ng
sigh newbies..
ng
Originally posted by: jefa
Originally posted by: ngvepforever2
Originally posted by: jefa
Originally posted by: ngvepforever2
Originally posted by: jefa
id rather retain my C++ knowledge
How can you have any knowledge of C++ and not be able to write simple C programs ?Methinks you don't have any knowledge of C++ or C.
ng
sigh newbies..
ng
i knew that face was coming..
you pose an odd question
C and C++ are different languages
learning one will not allow you to write programs in both
Originally posted by: jefa
Originally posted by: ngvepforever2
Originally posted by: jefa
Originally posted by: ngvepforever2
Originally posted by: jefa
id rather retain my C++ knowledge
How can you have any knowledge of C++ and not be able to write simple C programs ?Methinks you don't have any knowledge of C++ or C.
ng
sigh newbies..
ng
i knew that face was coming..
you pose an odd question
C and C++ are different languages
learning one will not allow you to write programs in both
Originally posted by: jefa
Originally posted by: ngvepforever2
Originally posted by: jefa
Originally posted by: ngvepforever2
Originally posted by: jefa
id rather retain my C++ knowledge
How can you have any knowledge of C++ and not be able to write simple C programs ?Methinks you don't have any knowledge of C++ or C.
ng
sigh newbies..
ng
i knew that face was coming..
you pose an odd question
C and C++ are different languages
learning one will not allow you to write programs in both
Originally posted by: So
Originally posted by: jefa
Originally posted by: ngvepforever2
Originally posted by: jefa
Originally posted by: ngvepforever2
Originally posted by: jefa
id rather retain my C++ knowledge
How can you have any knowledge of C++ and not be able to write simple C programs ?Methinks you don't have any knowledge of C++ or C.
ng
sigh newbies..
ng
i knew that face was coming..
you pose an odd question
C and C++ are different languages
learning one will not allow you to write programs in both
Actually, yes, it pretty much will. I learned C++ in HS and when I had to write a program in C for college it took me, maybe a half hour, tops to figure it out...
Either:
a) you really don't know C++ at all
b) You're a really bad programmer
or
c) you're the laziest programmer ever
Originally posted by: Aikouka
It's not like C++ was based on C and shares so many similarities with C! :laugh:
Actually, knowing how to program in a language means nothing compared to knowing how to solve something (excluding math! I gotta keep myself out of the hole). It reminds me of an automata class I took in college and the difference between someone who made a 30+ state FSM compared to my 13 state FSM where both satisfied the problem... yet mine was mundo smaller (although this is more efficiency rather than problem solving... IMO efficiency is a part of solving a problem correctly).
