for ( counter = 0; counter < lenght; counter++ )
{
if ( romanchar[counter] == 'I' && romanchar[counter+1] == 'V')
{
sum = sum + 4;
counter++;
}
Type: Posts; User: Happy_Reaper
for ( counter = 0; counter < lenght; counter++ )
{
if ( romanchar[counter] == 'I' && romanchar[counter+1] == 'V')
{
sum = sum + 4;
counter++;
}
Your answers are in your other thread.
Because it's not portable.
It means you're not telling the compiler what i is. The same goes for num. The compiler can't just guess "oh, i is an int, num is also an int" you have to declare to the compiler that they are.
...
That line that seems to be wrong seems awfully cluttered. Ever try unpacking it a little. Maybe then something will spring up...
Have you read the homework policy for these forums ?
Here's some help :
http://www.cprogramming.com/board.html
Then post code, post attempts, post smart questions. Only then will you get...
Have you tried putting the [Enter]'s where you want and seeing if it still compiles ?
It's funny, there isn't a question or even a question mark in that entire post. Haven't read the forum guidelines, now have you ?
Then you'll want to look into fork and the exec* family of functions.
Yeah, not to mention keep your post from being deleted...
I think that last word may be a little different, depending on Salem's mood.
The first thing you may want to tell us is what platform you're using.
I've always been satisfied with a combo of the ZoneAlarm firewall and Spybot S&D, both of which are free.
I don't think there's a unique answer to this question, different programmers have different design methodologies, and each one has their pros and cons.
That being said, here are some design...
I don't think I was even programming when Turbo C was recent...
How about you print the ASCII values of the letters you're getting. My bet is there's a newline lingering around in your input buffer.
#1 This is the wrong board, it should be in the C++ Board.
#2 Not everyone here is an expert, so don't be expecting an immediate answer.
#3 Don't bump threads. This is part of the forum...
You don't need a loop for that at all. You just needed an if-else statement with another if-else statement nest in its else clause.
The design process is meant to reduce, not eliminate, errors. So I'd imagine everyone has gone through what you are.
Right, that's what I was thinking.
First off, I wouldn't call your FILE* fprintf. I'm not completely sure if it does anything bad at all, but it's just asking for trouble. Name it something like fp or something.
Then, fprintf,...
Already exists : JMonkey
PageRank
That should cover the google stuff.
I'd search through Google Code, you're bound to find something there.
Visual Sutdio's compiler is supposedly standard, although it has its own little quirks and oddities that you have to get used to. I myself prefer gcc, but if you already have visual studio, then you...