Here is my debug session: http://ubuntuone.com/0LftsYVryr3qIXUv6xxY3p
Type: Posts; User: nedim
Here is my debug session: http://ubuntuone.com/0LftsYVryr3qIXUv6xxY3p
Changed both loops but it still outputs only 1 value. Even when I write to printall values it shows only one.
I have just tested it on windows machine and I got correct output.
It looks like my linux compiler is messed up.
Student Answers 1.txt: http://ubuntuone.com/6cIgYkTzMeFddgQjyT72bS
Answer Key 1.txt http://ubuntuone.com/7Lu89MQ92PTsH4t8xtKcQY
I forgot to do that :D
After I made changes it outputs only one element instead of all
I get error Unable to resolve identifier c_str
I have imported #include <cstring>
Here is my code which compares answers in two files and outputs correct answer and wrong. The problem is why I can't output all elements of array inside function.
#include <iostream>
#include...
I understand it now.
Moderators can lock this thread.
But why I need to assign it to n?
#include <iostream>
using namespace std;
int add (int i)
{
i=i+100;
return i;
}
int main()
{
int n=1;
I have just started learning c++ and I have a question.
In the following example is confusing to me why function Add have return type Cents and why are c1 and c2 are passed by reference.
class...