Home > Stuck On > Stuck On C++ Program

Stuck On C++ Program

It's tested and works. What happens to the resistance of a wire if it is heated up? No new replies allowed. One thing i didnt understand. Check This Out

I just wanted to set myself a challenge with the tools that I had, so I appreciate the effort that you went to –user2779581 Sep 19 '13 at 19:43 How will you ssh into some Other system's root account? Here's my code: #include "stdafx.h" #include #include #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char sentence[50]; int countA=0, countE=0, countI=0, countO=0, countU=0, countSP=0; char repeat; I have inserted couts to know which line gets executed.

How to respond to people who overuse punctuation marks? c++ loops for-loop share|improve this question edited Mar 29 '16 at 6:55 Biffen 3,21551627 asked Mar 29 '16 at 6:38 Plutonium smuggler 1741414 ericlippert.com/2014/03/05/how-to-debug-small-programs –Biffen Mar 29 '16 at Is using an informal version of my name in professional contexts unprofessional? Is it ok to use personal resource in company project?

StevieG's answer is correct. Are 'white women' only 4% of the world population? It is not as simple as one relatively small infinite loop that is hanging, as other things (Graphics, sound) are being updated, just that the game-play has stalled. Toughness on animal companion Tropical beaches and snow topped ski slopes Does "Disk Operating System" imply that there was a "non-disk" Operating System?

My friend wants to put my name down for a house he's buying. instead of HW over and over. I normally see a string find loop in the following format. You need to reset repeat, because cin will use the data,which is already stored in it, instead of reasking for an input, if repeat is not empty.

It is important information. –Inglonias Nov 4 '13 at 17:22 Ok, I'll do that now. Linked 81 system(“pause”); - Why is it wrong? How does group 'wheel' get on my files? Is it a common idiom?

Really appreciate the assistance. That way, if there remains a single chunk not doing what you want, you can identify it, and ask for that one specifically instead of dumping a whole program. StevieG's answer is indeed correct. –Chimera Sep 20 '13 at 16:46 | show 2 more comments Your Answer draft saved draft discarded Sign up or log in Sign up using How can I help my users who are complaining that there is no caps lock light?

Was it impolite for me to say this when someone ran into me? his comment is here It seems to be in a continuous loop and I have been changing it and trying different methods for nearly an hour, help would be greatly appreciated. #include "stdafx.h" #include Please try to narrow it down to the relevant code you have a problem with, or create a Minimal, Complete, and Verifiable Example and show us. c++ function loops rpn share|improve this question asked May 21 '15 at 8:12 user3300735 335 TL;DR!

Not the answer you're looking for? The call stack is the list of functions that got called to reach the current point in the code. Linked 118 Why is the gets function so dangerous that it should not be used? this contact form share|improve this answer answered Sep 29 '14 at 4:03 atlanteh 1,167822 add a comment| up vote 2 down vote you are comparing number with a character.

What happens to the resistance of a wire if it is heated up? What is the Ukrainian word with the closest meaning to the English verb "waste"? Can I use two 7805 ICs in parallel to get double current capacity?

If you need variable bounds, use a vector.

You are using a single precision floating point number to represent time and update time via time += delta_t; This will stop working after a couple of minutes if your delta_t There are lots of ways this can happen. I appreciate that but i wanted to build the code myself. Calculate number of days to payment What is a good alternative standard to ISO 27001?

Are there any better expessions? What is the "runny" excretion from noses called? I wanted to learn their capabilities and see how they could be utilised to create some cool stuff. navigate here Also thank you comments are strongly discouraged.

Minimizing a quadratic function subject to quadratic constraints My friend wants to put my name down for a house he's buying. Never ever use gets. asked 11 months ago viewed 119 times active 11 months ago Blog Podcast #103: Grandma, is that you? Not the answer you're looking for?

while (answer == 'Y') cout << "\nEnter treatment type( F,W,C,E,R,I) : "; share|improve this answer answered Nov 8 '13 at 18:08 cbmanica 1,17842141 add a comment| Your Answer draft saved share|improve this answer answered Jul 15 '11 at 14:01 Jonathan Wood 37.1k43162252 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google more stack exchange communities company blog Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and Last edited on Feb 27, 2014 at 4:02am UTC Topic archived.

int main() { vector nums; while (true) { double current_num; cout << "enter a double \n"; cin >> current_num; if (current_num == '|') break; nums.push_back(current_num); sort(nums.begin(), nums.end()); cout << nums[nums.size()-1] << Charlie, Oscar, Delta, Echo How does one show that a person or thing is the performer of an action? while (repeat == 'y' || repeat == 'Y') { _getche(); } because the loop has no body and it does not know what to execute. c++ infinite-loop share|improve this question asked Sep 29 '14 at 4:00 Skooshenvagen 2013 2 '|' is not a double, is it? –Fengyang Wang Sep 29 '14 at 4:02

Any ideas how to fix this? –user2779581 Sep 18 '13 at 17:22 I think you code is entirely too complicated. How to determine if remote wipe succeeded? asked 1 month ago viewed 69 times active 1 month ago Blog Podcast #103: Grandma, is that you?