Any C/C++ peeps in here?

KhensuRa

Dolphin
M.A.S.C Club Member
#1
Been a little while since I have used C. And I have a simple program for class I have to wright, we have been writing most of our stuff in assembly language but my homework for this week needs to be in C.

Can't get this to run:

#include
#include
#include
#include
//#include "staafx.h"
int main(int argc, char *argv[])
{
for(float pwr=2;pwr
 

Zooid

Reef Shark
M.A.S.C Club Member
#2
It's been way longer for me but.....
you're incrementing a floating point value....is that possible?
should pwr and num1 be integers instead of floats?

just guessing....I haven't done anything in C for many years
 

that0neguy1126

Registered Users
M.A.S.C Club Member
#3
Its been about 10yrs since I did this type of C. You should be able to increment floats. Do you get any errors when you compile?
 

KhensuRa

Dolphin
M.A.S.C Club Member
#4
Got it to work, it was a setting on my complier to get to compile.
 

dv3

Beluga
M.A.S.C Club Member
#5
i'm a c - c+ student (c++ is pushing it) i was confused by all that stuff up top ...what did you need?
 

KhensuRa

Dolphin
M.A.S.C Club Member
#6
dv3;88512 said:
i'm a c - c+ student (c++ is pushing it) i was confused by all that stuff up top ...what did you need?
Im all good it was a setting on Devc++. What are you going to school for? And what school?
 

dv3

Beluga
M.A.S.C Club Member
#7
KhensuRa;88522 said:
Im all good it was a setting on Devc++. What are you going to school for? And what school?
i think you misunderstood ...said i'm an average student ...lol
but those days are over ...finance/financial services MSCD '08
 
Top