Search:

Type: Posts; User: sway1

Search: Search took 0.01 seconds.

  1. can someone explain why this is? (very basic c++)

    // passing parameters by reference
    #include <iostream>
    using namespace std;

    void duplicate (int& a, int& b, int& c)
    {
    a*=2;
    b*=2;
    c*=2;
    }
  2. Replies
    4
    Views
    1,101

    awesome thanks for the help

    awesome thanks for the help
  3. Replies
    1
    Views
    1,785

    is there anything like visual c++ for linux?

    by that I mean something that corrects minor syntax errors, such as indentation etc.
    im using it right now(2008 express), but i hate being on windows.
  4. Replies
    4
    Views
    1,101

    questions about if, or, not, and etc

    #include <iostream>
    using namespace std;
    int main()
    {
    int ggg;
    cout <<"enter a number\n";
    cin>>ggg;
    cin.ignore();
    if (ggg == 776 && 777){
    cout <<"you entered 776 or 777";
  5. Replies
    2
    Views
    1,897

    woops, thanks! that worked haha.

    woops, thanks! that worked haha.
  6. Replies
    2
    Views
    1,897

    whats wrong with this very simple code?

    #include <iostream>
    using namespace std;
    int main()
    {
    int val;
    cout<<"enter a number 1-10";
    cin>> val;
    cin.ignore();
    if ( val != 5 ) {
    cout<<"wrong/n";
Results 1 to 6 of 6