Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

arsenalgunners01

@arsenalgunners01
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Pig-Latin Translator
    A arsenalgunners01

    How can I get the length of the string if it hasn't even been inputed by that point?

    C / C++ / MFC help

  • Pig-Latin Translator
    A arsenalgunners01

    Thanks for the advice, but that doesn't solve my problem.

    C / C++ / MFC help

  • Pig-Latin Translator
    A arsenalgunners01

    I have been working on this for a couple of days. I am having trouble understanding why my program seems to hang after the input is translated. From what I can see the program never leaves the while loop. I must clarify that I still am a newbie so forgive me for my stupidity. Any help will be greatly appreciated. Here is what I have so far: #include #include #include class translate { private: char english[20]; public: translate(); }; int main() { translate sentence; return 0; } translate::translate() { char ans; do { cout<<"Please enter a sentence:\n"; while(cin>>english) { if((english[0] == 'a') || (english[0] == 'a') || (english[0] == 'A') || (english[0] == 'e') || (english[0] == 'E') || (english[0] == 'i') || (english[0] == 'I') || (english[0] == 'o') || (english[0] == 'O') || (english[0] == 'u') || (english[0] == 'U')) { cout<> ans; } while((ans == 'y') || (ans == 'Y')); return; }

    C / C++ / MFC help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups