Search:

Type: Posts; User: Alexandre

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Just initialize it outside of your loop ? I don't...

    Just initialize it outside of your loop ? I don't see the problem.
  2. Ok I've found the answer using google but I...

    Ok I've found the answer using google but I forgot to bookmark the reference for you guys but eh.

    Basically you have to set properties because DataGridView calls them in order and names the...
  3. DataGridView and binding with BindingList and DataSource

    Hey there. I'm trying to simplify a bit my use of DataGridView (I am currently adding manually all the items but I would like that to be done automatically).

    I've googled quite a bit and I...
  4. Hey thank you it worked.

    Hey thank you it worked.
  5. Replies
    17
    Views
    1,832

    You seem not to understand that indices start at...

    You seem not to understand that indices start at 0 in C++ (and many other languages). If you want to have an array for 6 employees, you declare that array this way:

    type name[6];

    Also, way to...
  6. Requesting page source code with HttpWebRequest => Unable to connect

    Hey there. I am trying to do a little bit of data extraction on a few websites for my personal usage (no it's not some kind of spam bot) and I managed to extract data from one website but when trying...
  7. Replies
    5
    Views
    740

    scanf("%d", &n); if (n == 1); ...

    scanf("%d", &n);
    if (n == 1);
    struct node * insert_begin(struct node *,int);
    if (n == 2);
    struct node * del_begin(struct node *);
    if(n == 3);
    ...
  8. Replies
    4
    Views
    1,576

    That's what you would have said about C. In C++...

    That's what you would have said about C. In C++ you would use an std::string and == operator.
  9. Thread: C++ Syntax

    by Alexandre
    Replies
    2
    Views
    786

    Lcd() returns an object that contains function...

    Lcd() returns an object that contains function ProcessDataWord().
  10. Replies
    4
    Views
    3,368

    I found the error. It is because Windows added...

    I found the error. It is because Windows added ".txt" after my "config.ini" making it "config.ini.txt". Changing the string to this in my code fixed this problem. The next problem was that I didn't...
  11. Replies
    4
    Views
    3,368

    File not found exception

    Hey there. Googled a bit to see if it was a common mistake / error but I found nothing.

    Basically I just want to open a file and check its contents. Everything compiles without error but when the...
  12. Replies
    4
    Views
    1,576

    What's the problem with what you have ? If you...

    What's the problem with what you have ? If you absolutely need it to be either "single" or "married" then you could have an enum or use strings but in my opinion that would be silly. Either use an...
  13. Replies
    6
    Views
    971

    It should look something like this:

    It should look something like this:
  14. Replies
    7
    Views
    926

    List::Node *addToStart(string new_dbName){ ...

    List<T>::Node *addToStart(string new_dbName){
    head = new Node(new_dbName, head);

    return head;
    }
  15. Replies
    33
    Views
    12,119

    Tells you how often I use arrays :/ I normally...

    Tells you how often I use arrays :/ I normally almost exclusively use STL containers :\
  16. Replies
    33
    Views
    12,119

    Are you allowed (by your instructor) to use...

    Are you allowed (by your instructor) to use vectors then ?

    @GReaper: He is handing over a copy of these objects and expecting modifications to happen. Obviously the object returns unchanged and...
  17. Replies
    33
    Views
    12,119

    void InputData(string playerNameAr[], int...

    void InputData(string playerNameAr[], int scoreAr[], int &numPlayersRef)

    Needs to be:

    void InputData(string& playerNameAr[], int& scoreAr[], int &numPlayersRef)
  18. Replies
    7
    Views
    1,663

    Another general piece of advice is not to mix...

    Another general piece of advice is not to mix logical components of your applciation. There is no reason why your functions related to GUI should be related to a student. A display function should...
  19. Thread: Memory Leaks

    by Alexandre
    Replies
    4
    Views
    1,221

    That made me smile ahah ! Did the very same thing...

    That made me smile ahah ! Did the very same thing when I began C++ a few years ago and got the same result. However, for whatever reason I rran it a few more times and it crashed my computer so much...
  20. Replies
    5
    Views
    1,263

    Well to start you do not have any function at all...

    Well to start you do not have any function at all except main() which is mandatory.

    Then, you use P while it has not been assigned any value and the same goes for intensity and minutes and...
  21. Replies
    15
    Views
    1,731

    #define fo "output.txt" #define FOREACH(it,c)...

    #define fo "output.txt"
    #define FOREACH(it,c) for( __typeof((c).begin()) it=(c).begin();it!=(c).end();it++)
    #define FOR(i,a,b) for( int i=(a),_b=(b);i<=_b;i++)
    #define DOW(i,b,a) for( int...
  22. Replies
    26
    Views
    2,466

    Well C++ is a typesafe language, meaning that it...

    Well C++ is a typesafe language, meaning that it prevents using type A in place of type B when type B is required and that's pretty much why variables have to be defined before they can be used.
  23. Replies
    2
    Views
    945

    You did not include your linked list header in...

    You did not include your linked list header in train.cpp.
  24. Replies
    8
    Views
    872

    Look up inheritance and maybe even polymorphism....

    Look up inheritance and maybe even polymorphism.

    Inheritance is when you set it so that one or more classes derive from another.
    Polymorphism is some way to use the more generic class to control...
  25. laserlight lives in the future ! Hi from the past...

    laserlight lives in the future ! Hi from the past !
Results 1 to 25 of 73
Page 1 of 3 1 2 3