Search:

Type: Posts; User: ncode

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    2,149

    oh wait. How do the Squirrel() been executed when...

    oh wait. How do the Squirrel() been executed when I didnt perform sam->Squirrel() or sam->~Squirrel(). i will continue 2moro as it get night now.thanks.
  2. Replies
    12
    Views
    2,149

    Isn't the output is Hello! World! Because...

    Isn't the output is
    Hello!
    World!

    Because in main() we execute foo() first then later bar(). Am I right?.......
  3. Replies
    12
    Views
    2,149

    ya i know. But i just cant get it into my head. ...

    ya i know. But i just cant get it into my head.

    I create sam object with squirrel class
    inside there are Squirrel and ~Squirrel <-- execute follow sequence
    Create sally object with squirrel...
  4. Replies
    12
    Views
    2,149

    Constructor and deconstructor

    #include <iostream>

    using namespace std;

    class Walnut
    {
    public:
    int Size;
    };
  5. Thread: Online store

    by ncode
    Replies
    4
    Views
    1,197

    Ok thanks for the advice. At least, i know the...

    Ok thanks for the advice. At least, i know the truth now. Know i just knew why tech company love to sue each other
  6. Thread: Online store

    by ncode
    Replies
    4
    Views
    1,197

    Ok. Thanks. Based on your experience, So how long...

    Ok. Thanks. Based on your experience, So how long could it be if i develop everything myself from zero. Many startup did it. I dont think i cant
  7. Thread: Online store

    by ncode
    Replies
    4
    Views
    1,197

    Online store

    I'm very very curious. I want to develop an online store that are quite similar to Dell. What knowledge do I need. I mean like programming? Php? Database??
  8. thanks guys for the great explanation. Actually...

    thanks guys for the great explanation. Actually there's no big deal
  9. Difference between passing *mycar and &mycar

    I came across this in my book. Both of them look quite similar.

    void fixFlatTire(Car *myCar);
    void fixFlatTire(Car &myCar);

    The first one pass myCar to function fixFlatTire via a pointer.
    The...
  10. Thanks again. Do you type wrong or...

    Thanks again. Do you type wrong or something......type const Time&. Why & is at the back?
  11. ok thanks, Then again. is const Time &t means -...

    ok thanks, Then again. is const Time &t means - Type time of L-value of T which is a const?
  12. ( t.hour < 10 ? "0" : "" )

    Hi,
    I'm a new C++ user. I dont know what does this mean.


    void printMilitary( const Time &t ) <---what does Time &t means?
    {
    cout << ( t.hour < 10 ? "0" : "" ) << t.hour << ":"
    <<...
  13. Replies
    11
    Views
    1,475

    ok it's solved. Probably same problem like the...

    ok it's solved. Probably same problem like the recent one. Anyway thanks everyone.
  14. Replies
    11
    Views
    1,475

    I tried the file that's created by the author and...

    I tried the file that's created by the author and it work. I paste my code which i type recently into the author project , it work like charm. idk what's happen. I think maybe it's due to header...
  15. Replies
    11
    Views
    1,475

    I tried #include and it...

    I tried #include <string or string.h> and it still not working. Anyway, this chapter isn't focus on "using namespace" and it's on Dividing Between Source-Code Files. So I think it's not very...
  16. Replies
    11
    Views
    1,475

    Hi. I just came another problem on another...

    Hi. I just came another problem on another tutorial that involved a header. Why I'm getting error again even I copy exactly and I had linked the file properly.
    Code 1

    #include <iostream>

    using...
  17. Replies
    11
    Views
    1,475

    Thank you. Found the solution. I didn't include...

    Thank you. Found the solution. I didn't include them to debug and release. That's why. Thank you.
  18. Replies
    11
    Views
    1,475

    This's what the book call me to do: First code ...

    This's what the book call me to do:
    First code

    #include <iostream>

    using namespace std;

    void BigDog(int KibbleCount);

    int main(){
  19. Replies
    11
    Views
    1,475

    Working with multiple source file

    Currently I'm following a tutorial on C++ All-in-One for Dummies @PG114 -> Dividing Between Source-Code Files. I'm trying to run a console program that are made up of 2 source file:

    main.cpp
    ...
  20. Replies
    4
    Views
    1,168

    ok thanks

    ok thanks
  21. Replies
    4
    Views
    1,168

    Thanks!. Just wondering why I cant use...

    Thanks!. Just wondering why I cant use if(key.programme == test[0].programme)? Srry if i annoy u.
  22. Replies
    4
    Views
    1,168

    Matching 2 string Problem

    test[0].programme is assigned with "Hello World". Then I input "Hello World" into key.programme to compare it with test[0].programme but it just never work even it' already same. How can i solve it?...
  23. Thread: fgets problem

    by ncode
    Replies
    10
    Views
    1,404

    oo ok thanks. get it. lesson learn.

    oo ok thanks. get it. lesson learn.
  24. Thread: fgets problem

    by ncode
    Replies
    10
    Views
    1,404

    oh it works. Why we can't directly assign "Hello...

    oh it works. Why we can't directly assign "Hello World" in it? Char* seems working well on this.
  25. Thread: fgets problem

    by ncode
    Replies
    10
    Views
    1,404

    Still no hope. incompatible types when assigning...

    Still no hope. incompatible types when assigning to type 'char[20]' from type 'char *'



    #include <stdio.h>
    #include <stdlib.h>

    struct record{
    char name[20];
    char programme[20];
Results 1 to 25 of 102
Page 1 of 5 1 2 3 4