Search:

Type: Posts; User: Black-Hearted

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,846

    Cat, Thanks for your reply as it added to the...

    Cat,

    Thanks for your reply as it added to the answers I had found yesterday searching this forum for string AND literal. I have a pretty good understanding of what is taking place there now.
    ...
  2. Replies
    4
    Views
    2,846

    Will try that, I did'nt have 'literal' in my...

    Will try that, I did'nt have 'literal' in my earlier searches.

    Thanks,
    BH
  3. Replies
    4
    Views
    2,846

    Swapping string char with pointers

    Hello again,

    Ran into a problem with the following, maybe someone can explain.

    char* str="abc";
    *(str+0) = *(str+2); //Program Dumps

    or

    char temp[]="abc";
  4. Replies
    16
    Views
    2,052

    FromHolland, adrianX is correct, although this...

    FromHolland,

    adrianX is correct, although this will still give you a zero value for "z" if you input a lowercase menu choice.

    add:

    #include <ctype.h>

    and change your switch statement to:
  5. Replies
    26
    Views
    4,193

    Dev will compile with either: #include...

    Dev will compile with either:

    #include <iostream>
    using namespace std;

    or

    #include <iostream.h>
  6. Replies
    26
    Views
    4,193

    Cat, Sorry for the confusion, I have VS.net...

    Cat,

    Sorry for the confusion, I have VS.net installed, but it is a pain in the butt for the little C++ programs I have to write for now. Plus the book we are using for the class was written in...
  7. Replies
    26
    Views
    4,193

    Agreed, I found out the same by messing around...

    Agreed, I found out the same by messing around with how the "extra" was stored. Just call cin.sync() after your 1st cin as Zach said and your good to go. Seems kind of weird that one 'Enter' can get...
  8. Replies
    26
    Views
    4,193

    That was exactly what I was looking for! Thanks...

    That was exactly what I was looking for! Thanks for everyone's help. VS.Net help is a nightmare =-\.


    BH:D

    "I like a man who grins when he fights."
    - Winston...
  9. Replies
    26
    Views
    4,193

    Hello, First off, thanks for all the replies...

    Hello,

    First off, thanks for all the replies and help. This is actually a very basic program (have'nt hit DEFINE's yet o.O), and I am using a char variable to store a menu choice.

    It seems that...
  10. Replies
    26
    Views
    4,193

    Simple Buffer Overflow Question

    Hello All,

    I'm brand new to C++ and have run into a problem when my program asks for a character to be input (like a menu choice), I'm allowed to type in as much or as little as i want while the...
Results 1 to 10 of 10