Search:

Type: Posts; User: nedim

Search: Search took 0.00 seconds.

  1. Thread: Arrays problem

    by nedim
    Replies
    13
    Views
    1,822

    Here is my debug session:...

    Here is my debug session: http://ubuntuone.com/0LftsYVryr3qIXUv6xxY3p
  2. Thread: Arrays problem

    by nedim
    Replies
    13
    Views
    1,822

    Changed both loops but it still outputs only 1...

    Changed both loops but it still outputs only 1 value. Even when I write to printall values it shows only one.
  3. Thread: Arrays problem

    by nedim
    Replies
    13
    Views
    1,822

    I have just tested it on windows machine and I...

    I have just tested it on windows machine and I got correct output.
    It looks like my linux compiler is messed up.
  4. Thread: Arrays problem

    by nedim
    Replies
    13
    Views
    1,822

    Student Answers 1.txt:...

    Student Answers 1.txt: http://ubuntuone.com/6cIgYkTzMeFddgQjyT72bS
    Answer Key 1.txt http://ubuntuone.com/7Lu89MQ92PTsH4t8xtKcQY
  5. Thread: Arrays problem

    by nedim
    Replies
    13
    Views
    1,822

    I forgot to do that :D After I made changes it...

    I forgot to do that :D

    After I made changes it outputs only one element instead of all
  6. Thread: Arrays problem

    by nedim
    Replies
    13
    Views
    1,822

    I get error Unable to resolve identifier c_str ...

    I get error Unable to resolve identifier c_str

    I have imported #include <cstring>
  7. Thread: Arrays problem

    by nedim
    Replies
    13
    Views
    1,822

    Arrays problem

    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...
  8. Replies
    5
    Views
    1,576

    I understand it now. Moderators can lock this...

    I understand it now.

    Moderators can lock this thread.
  9. Replies
    5
    Views
    1,576

    But why I need to assign it to n?

    But why I need to assign it to n?
  10. Replies
    5
    Views
    1,576

    Passing arguments by value

    #include <iostream>
    using namespace std;
    int add (int i)
    {
    i=i+100;
    return i;
    }
    int main()
    {
    int n=1;
  11. Replies
    2
    Views
    1,205

    Function return type

    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...
Results 1 to 11 of 11