Computer problems,Computer help
*AX SOFT>>>Programming & Design

Entering words in to C++?


i am having trouble with entering a word with many letters. i have the code (char) down, but when it comes to typing more than one letter in that is the trouble i got in to. when i type more then one letter in my program goes into a never ending loop looking for what to do.

It's as simple as this, in C++:

string s;
cin >> s;

Use an char array and not just a simple char

provide the code with your question here if you want better answers.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Does Gimp work on Vista?

    GIMP should run on any NT-based version of Windows (NT4, 2000, XP or Vista). Older GIMP versions (2.0.x) could also work with older versions of Windows such as Windows 95 but they are not supported...

  • How can I have a link to a flash file (.swf) open in a new window on my website?

    When you link to the .swf you can use target="blank" in the href.... <A HREF="link.swf" target="_blank"> This will force the page to open in a new window.....

  • Error C4430: missing type specifier - int assumed. Note: C++ does not support default-int?

    main() ...should be... int main(void) ...aside from that, you should probably work on understanding how "else if" works.

    ...
  • Open source function... Or how to do this conversion?

    I recommend the open source CxImage library located at

    ...
  • Can anybody tell me what font this is?

    It's a version of DIN. See ...

  • I do I exclude myself from being counted as a hit on my website?

    FOR GOOGLE ANALYTICS ...

  • What is the best sample rate and bit depth to embed sound effects into Flash for a website game?

    16bit 44.1 for music, going down to 8bit 22 for sound effects, consider using the sound FX in mono to conserve space (most people won't notice).

    ...
  • How can i make a counter appear in the next line at a certain number in c++?

    Assuming your counter starts at zero: if (!(count % 5)) printf("\r"); Just add that line into your loop (changing 'count' to whatever your variable name is) if your cou...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster