Search:

Type: Posts; User: gin

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    23
    Views
    9,059

    Poll: You should seperate the parts in tabs to make it...

    You should seperate the parts in tabs to make it more organised. An example:

    [ Home ] - [ C++ Tutorials ] - [ Reviews ] - [ About ] - [ Contact ]

    This is just what I would do to make it more...
  2. Replies
    16
    Views
    2,284

    Ah I see. That answers the first part. Why are...

    Ah I see. That answers the first part. Why are you not allowed to define and intialize a const in a header file with a literal (a literal isn't a const expression?).
  3. Replies
    16
    Views
    2,284

    I just gave it a re-read there and I saw that the...

    I just gave it a re-read there and I saw that the expression is evaluated at compile-time. But what is a const expression? Is this a const expression?:



    const int a = 5;
    const int b = 4;
    ...
  4. Replies
    16
    Views
    2,284

    I know what a const is, I was asking what is a...

    I know what a const is, I was asking what is a const expression. Because it says you should only define and initialize a const in a header file with a const expression, and nothing else. But does an...
  5. Replies
    39
    Views
    4,378

    It's not severe speed issues or anything. It's...

    It's not severe speed issues or anything. It's just slow here and there, but once I get into my project it starts to speed up. It's big things like opening up large projects, opening up the settings...
  6. Replies
    16
    Views
    2,284

    What exactly is a const expression?

    I'm reading about classes and header files in my book right now. It's talking about const definitions in header files saying that you can only define a const with a const expression. What exactly is...
  7. Replies
    39
    Views
    4,378

    I've just settled with Visual C++ 2008. I'll just...

    I've just settled with Visual C++ 2008. I'll just need to try and get used to it. I just feel it's quite slow compared to the 2005 edition.
  8. Thread: Variable naming

    by gin
    Replies
    5
    Views
    2,621

    Variable naming

    Hi. I've seen people naming their variables as m_*. What does the m_ mean? And why do you use it?
  9. Replies
    39
    Views
    4,378

    So with these optimisations that VC does... does...

    So with these optimisations that VC does... does this mean that it's faster than GCC?
  10. Replies
    39
    Views
    4,378

    What is a better compiler? MingW or VC? What's...

    What is a better compiler? MingW or VC? What's the difference between the two?
  11. Replies
    39
    Views
    4,378

    This looks good (Dev-C++ IDE but updated):...

    This looks good (Dev-C++ IDE but updated):
    http://wxdsgn.sourceforge.net/

    Says it can use both the MingW compiler and the VS one (not the 2008 one though). It's not been updated in a year though...
  12. Replies
    39
    Views
    4,378

    What IDE would be best? I'm currently using...

    What IDE would be best? I'm currently using Visual C++ 2008 Express Edition but I feel it's quite big for my current status of knowlage. Half of the stuff I don't use. Is there any light-weight IDE...
  13. Replies
    39
    Views
    4,378

    I was thinking when I finished these couple of...

    I was thinking when I finished these couple of books I should start with an intermediate book perhaps. And while on that think of a project to do. I was thinking about something network related like...
  14. Replies
    39
    Views
    4,378

    Thing is, there is so many distractions in my...

    Thing is, there is so many distractions in my house because my house is getting done up, so it's quite hard to concentrate. TV's blaring, people talking, hammers hammering, saws sawing, screwdrivers...
  15. Replies
    39
    Views
    4,378

    Never thought about that, thanks. Because I was...

    Never thought about that, thanks. Because I was wondering which one I should read first and since C++ Primer has about 900 pages vs Accelerated with about 400, I went with C++ Primer. :p I'm going to...
  16. Replies
    39
    Views
    4,378

    Thanks matsp, I usually do most of the excercises...

    Thanks matsp, I usually do most of the excercises in a book but there are no answers at the end or anything so I can't check how efficient (or correct) my answers are. At the moment I have two books:...
  17. Replies
    39
    Views
    4,378

    General programming

    Is there any good books and/or tutorials to learn programming in general (non-programming language specific if you get me). Currently my goal is to learn C++ and programming in general.

    Thanks.
  18. Replies
    4
    Views
    1,099

    You should give this a read:...

    You should give this a read:
    http://www.cprogramming.com/tutorial/lesson2.html

    To better your understanding of conditional statements and conditional expressions. Once you understand the last...
  19. Replies
    4
    Views
    1,099

    Well I assume you want to check if they enter 776...

    Well I assume you want to check if they enter 776 or 777, yes? Well you need to use the || (logical OR operator).

    EDIT: Also, think about how you've wrote your if statement. This is what it will...
  20. Replies
    17
    Views
    2,847

    Sorry for my ignorance but when you say an array...

    Sorry for my ignorance but when you say an array of character pointers it means it will store the pointers to the dynamically allocated character array which stores the string element?

    When I...
  21. Replies
    17
    Views
    2,847

    Right, I rewrote it and it works great (apart...

    Right, I rewrote it and it works great (apart from the memory management):



    #include <iostream>
    #include <vector>
    #include <string>

    int main()
    {
  22. Replies
    17
    Views
    2,847

    Why is it when I try to free strElement as: ...

    Why is it when I try to free strElement as:



    delete [] strElement;


    It crashes on the next part of the loop?

    I have:
  23. Replies
    17
    Views
    2,847

    Wait, isn't that part just meaning to copy the...

    Wait, isn't that part just meaning to copy the string element into a new character array as I've done:



    const char *strElement = vStrings[i].c_str();


    I've allocated an array and copied the...
  24. Replies
    17
    Views
    2,847

    Oh yes, I forgot about that. Thanks, will rewrite...

    Oh yes, I forgot about that. Thanks, will rewrite it now. ;)
  25. Replies
    17
    Views
    2,847

    Yeah. But when I output the array how will I know...

    Yeah. But when I output the array how will I know how long the string is?
Results 1 to 25 of 51
Page 1 of 3 1 2 3