Re: [OT] Speaking of C...

new topic     » goto parent     » topic index » view thread      » older message » newer message
Lnettnay said...

I don't know what I'm doing wrong. I typed in the following:

int c;\\ 
c = 0; 
and after the second line I got an error saying "C++ requires a type specifier for all declarations".

Any idea what I'm doing wrong?

Is that the entire file? You can't have executable statements at top level like in Euphoria. You can make some assignments, like:

int c = 0; 

Can you tell us more what you're trying to do?

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu