Search:

Type: Posts; User: Dag_

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,665

    no.. I was wondering if there was any general way...

    no.. I was wondering if there was any general way to do it (edit: by programming, not doing it manually).

    Not all graphic drivers installs any program to rotate the screen (which is added by...
  2. use strings or chars with chars: ...

    use strings or chars


    with chars:



    char name[20]; // a variable that can hold 20 chars
    cin >> name;
  3. Still it wont print the content of the variables!...

    Still it wont print the content of the variables!

    you need to have it


    cout<<"Thanks. Your details are as follows " << yourname << "\n" << youraddress << "\n" << yourage << "\n\n";

    But...
  4. Replies
    2
    Views
    1,665

    rotate screen by XX degrees?

    hello
    Any way(API or something) to write a program which rotates the whole content of a screen by XX degrees? I have searched google, found something on MSDN sites for Windows CE:

    (...
  5. Replies
    2
    Views
    1,429

    Ok thanks

    Ok thanks
  6. Replies
    2
    Views
    1,429

    question about declaring global variables

    I remember reading somewhere on this forum(I think) that says declaring global variables outside/before the main function is bad.
    why is that?

    Dag
  7. Replies
    1
    Views
    1,446

    Problem deleting a node from a linked list

    Hello
    I am trying to make something by the cprogramming.com tutorial of linked lists. Problem is in the remove function, in the line where I'm trying to "delete conductor".

    Anyone see what the...
  8. Thread: A few questions

    by Dag_
    Replies
    9
    Views
    1,115

    well, it was a I was suppose to delete... since I...

    well, it was a I was suppose to delete... since I have a char array that stores 2 elements, ex


    char a[2];
    a[0] = 'a';
    a[1] = 'b';

    now that those are set, I want to remove the values in...
  9. Thread: A few questions

    by Dag_
    Replies
    9
    Views
    1,115

    great :) thank you!

    great :)
    thank you!
  10. Thread: sizeof question

    by Dag_
    Replies
    10
    Views
    1,137

    wow, lots of replies! I would like to thank all...

    wow, lots of replies!
    I would like to thank all who explained this sizeof thing also! I think I understand it a bit more now...!
    greatly appreciated!

    Dag
  11. Thread: A few questions

    by Dag_
    Replies
    9
    Views
    1,115

    A few questions

    Q1:


    string s;
    cin >> s;


    how can I include all the input words?
    f.ex if I write hello world and try to cout << s; only "hello" will be couted.
  12. Thread: sizeof question

    by Dag_
    Replies
    10
    Views
    1,137

    Thanks you!, that is just what I wanted :)

    Thanks you!, that is just what I wanted :)
  13. Thread: sizeof question

    by Dag_
    Replies
    10
    Views
    1,137

    sizeof question

    char *f;
    f = "123456789";
    cout << "size of f is " << sizeof(f) << endl;

    Why is this 4? Everytime I compile it, its 4.
    No matter what I put the value of f to be, it says 4.

    I would really...
  14. Replies
    6
    Views
    7,441

    thanks :)

    thanks :)
  15. Replies
    6
    Views
    7,441

    Ok I did a try now, but somehow it does not work...

    Ok I did a try now, but somehow it does not work correctly-- it allways goes to the else clause, and there it allways just couts a dot(.), not any files, for example when I input "C:\\WINDOWS\\*"....
  16. Replies
    6
    Views
    7,441

    thank you :), what about linux?

    thank you :), what about linux?
  17. Replies
    6
    Views
    7,441

    checking whether a folder is empty

    Hello.
    Could anyone please give me a pointer to where I could find out more about how to do a check in the program whether a folder is empty or not? I dont really know what to search for, so just...
  18. Replies
    22
    Views
    4,079

    Okay, I thought that was just if the person were...

    Okay, I thought that was just if the person were asking others to do his homework.... Not if someone just wants to write the code. I think that is a good way to learn(for me or the person who try to...
  19. Replies
    7
    Views
    1,221

    this looks pointless? for(j=0; j < 3; j++)...

    this looks pointless?


    for(j=0; j < 3; j++)
    {
    cout << "." << endl;
    }
  20. Replies
    22
    Views
    4,079

    I was bored and saw this thread, here is how I...

    I was bored and saw this thread, here is how I would have done it:


    #include <iostream>
    #include <stdlib.h>
    #include <math.h>

    using namespace std;

    double GetDistance(double X1, double...
  21. Replies
    12
    Views
    1,736

    major_small why are you so rude? I was just...

    major_small why are you so rude?
    I was just wondering why someone was using this over using braces.

    Also I'm new to c++ programming - so what? new people is not allowed to ask questions in here?...
  22. Replies
    12
    Views
    1,736

    Ok got it. thanks

    Ok got it.
    thanks
  23. Replies
    12
    Views
    1,736

    The compiler I use has no problem compiling and...

    The compiler I use has no problem compiling and executing this


    if (var == something) cout << "this"; cout << "that";
  24. Replies
    12
    Views
    1,736

    Question (about missing curly braces)

    if (var == something) { cout << "something else"; }

    or


    if (var == something) cout << "something else";


    why is someone using without brackets {}? Is there a difference on those 2?
  25. Replies
    4
    Views
    1,275

    thank you :)

    thank you :)
Results 1 to 25 of 26
Page 1 of 2 1 2