CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: syzn

Search: Search took 0.04 seconds.

  1. Thread: C-String problem

    by syzn
    Replies
    21
    Views
    3,380

    Re: C-String problem

    Yes
  2. Thread: C-String problem

    by syzn
    Replies
    21
    Views
    3,380

    Re: C-String problem

    I have a book called C++ Early Objects. I'll look into those links as well though, thank you.
  3. Thread: C-String problem

    by syzn
    Replies
    21
    Views
    3,380

    Re: C-String problem

    Thank you so much! Just a question if I may: How are "unsigned int" and "size_t" different? I looked it up but didn't really understand the explanation.
  4. Thread: C-String problem

    by syzn
    Replies
    21
    Views
    3,380

    Re: C-String problem

    woah, thanks for all the info. I don't know some of the code both of you posted, but I'll figure it out. I haven't learned much yet, hence, the horrible code I made.
  5. Thread: C-String problem

    by syzn
    Replies
    21
    Views
    3,380

    Re: C-String problem

    I knew that line was the problem; I just didn't know the string terminates with a NULL. Even though everything I know dictates I should have known. Anyways, I got it to work with:


    void...
  6. Thread: C-String problem

    by syzn
    Replies
    21
    Views
    3,380

    Re: C-String problem

    oops, I had left out a semicolon before it and compiler didn't pick it up. I got it to compile. Now the only problem left is that it doesn't do what I want it to do. :C

    After you input, it doesn't...
  7. Thread: C-String problem

    by syzn
    Replies
    21
    Views
    3,380

    Re: C-String problem

    If I do that, it won't let me do this:

    std::cin.getline(input, LENGTH);

    I get an error when building it saying:

    no instance of overloaded function "std::basic_istream<_Elem,...
  8. Thread: C-String problem

    by syzn
    Replies
    21
    Views
    3,380

    C-String problem

    Can someone help me figure out what I am doing wrong here? I keep getting this error after I input:


    Unhandled exception at 0x54AE350B (msvcp110d.dll) in Random.exe: 0xC0000005: Access violation...
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured