Search:

Type: Posts; User: Crux

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,468

    windows.h - Wikipedia, the free encyclopedia...

    windows.h - Wikipedia, the free encyclopedia
  2. Replies
    8
    Views
    939

    I will. Already mentioned it on their forums.

    I will. Already mentioned it on their forums.
  3. Replies
    8
    Views
    939

    That one worked. Does this by any chance have...

    That one worked. Does this by any chance have something to do with me using Linux?
  4. Replies
    12
    Views
    14,407

    Try preventing pausing the system because it only...

    Try preventing pausing the system because it only works on certain operating systems. Try 'cin.get()' instead if you want a user to be able to view the output.
  5. Replies
    8
    Views
    939

    I did. I know i is not an empty file. When I use...

    I did. I know i is not an empty file. When I use the wizard it lets me choose between 3 files a source file, header file or other file. And I am very sure that I choose the source file (several...
  6. Replies
    8
    Views
    939

    I am browsing to the location.

    I am browsing to the location.
  7. Replies
    15
    Views
    1,722

    Do not know what you mean by quitting but you...

    Do not know what you mean by quitting but you could try using the exit() function. Just forgot in what header file it is declared.
  8. Replies
    15
    Views
    1,722

    Stupid that I missed that. Look at what...

    Stupid that I missed that.

    Look at what 'manasij7479' said. You are not comparing in your if statements you are assigning the value.

    PS. When using the ASCII table to initialize a char you use...
  9. Replies
    15
    Views
    1,722

    A char can hold a character but also the ASCII...

    A char can hold a character but also the ASCII value of the character.

    ASCII Code - The extended ASCII table
  10. Replies
    15
    Views
    1,722

    Well like I said I am a beginner myself and I...

    Well like I said I am a beginner myself and I might be overlooking the same thing as you are but what I think you could try the characters in a 'char'. I do not know if they are reserved by C++ or...
  11. Replies
    15
    Views
    1,722

    Well I am not an expert like I said but it would...

    Well I am not an expert like I said but it would be nice if you mentioned what is going wrong. Does it not compile are there any run time problems?
  12. Replies
    15
    Views
    1,722

    I am just a beginner myself but I see at least...

    I am just a beginner myself but I see at least one problem and that is that you are not initializing your variables when you declare them meaning they could hold any value.

    Next to that it looks...
  13. Replies
    8
    Views
    939

    Can not create source file.

    I was hoping someone here could help me. I am using CodeBlocks.

    When I try to create a new source file instead of placing it in the folder "Sources" it places it in the folder "Others". I am sure...
  14. Replies
    4
    Views
    852

    How would I get the first 5 characters then? ...

    How would I get the first 5 characters then?

    Did I had to use < instead of > for the second problem?
  15. Replies
    4
    Views
    852

    What am I doing wrong here?

    What is wrong with these two snippets of code, they both return false no matter what???

    bool LM(string Name)
    {
    string Control = Name.substr(5);

    if(Control == "aName")
    {
    ...
  16. Replies
    3
    Views
    770

    Btw. if I include cctype do I then also need to...

    Btw. if I include cctype do I then also need to declare it like "using ..........." Like in "using namespace std;"? Or is this not needed?
  17. Replies
    3
    Views
    770

    String, from - to.

    If I got a string and I would like to chop of the first 5 characters and store these in a string of their own. How would I do that?
  18. Replies
    4
    Views
    769

    I will bookmark this page. I do not fully...

    I will bookmark this page. I do not fully understand what you did there but it seems like a good way to optimize my code so I will look into it later when I understand C++ a bit better.

    Just...
  19. Thread: String indexes.

    by Crux
    Replies
    1
    Views
    957

    String indexes.

    When I got a string defined "string MyString" does this have a MyString[0] or does it start at MyString[1].

    Also is a string terminated with a "\0" or NULL character?
  20. Replies
    4
    Views
    769

    Thanks. I overlooked a function. Got it to work...

    Thanks. I overlooked a function. Got it to work like this.

    inline bool hex(string String, int Lenght)
    {
    // Go through the string
    for(int counter = 0; counter < Lenght; counter++)
    {...
  21. Replies
    4
    Views
    769

    Problem with function.

    The function should return true if the string only contains hexadecimal chars. However it keeps returning true not matter what the input is,

    inline bool hex(string String, int Lenght)
    {
    //...
Results 1 to 21 of 21