Home > I Need > I Need Help With C++ Please

I Need Help With C++ Please

Adding a while loop to my rock paper scissors code? Violating a rule is grounds for removal of the post or comment at moderator discretion. What would I put in place of 0 in (code != 0) to make this run properly? Just to point out, when the you define your 'grades', the initial values are: Grade1 = -29 Grade2 = -9 Grade3 = -29 Grade4 = -30 This info may be of

Feb 16, 2015 at 8:58am UTC programming (9) q1 -- weite function that receives an integer and prints the equivalent representation in binary system. If that's what you see, that's what you should expect. Related Files The Use of Nested Loops in C - 4 Examples Did you know? How do you identify Pin 1 based off these pictures?

No part of this website may be reproduced unless for personal use without prior written permission from homeworkhelp4u.com. Otherwise if the input has a value between 30 and 39, inclusive, then increment Grade2 by 1, etc. If the input has a value between zero and 29, inclusive, then increment Grade1 by one.

  • DO NOT DELETE YOUR POST Please use a descriptive title and specify the language or tech you're working with.
  • Minimal means that it should be the smallest amount of code necessary to demonstrate your problem.
  • What programming language should I start with?
  • Defining and Proving a DFA Related Blogs Computer Programming Made Easy: Part 1 Computer Programming Made Easy: Part 2 of 3 Computer Programming Made Easy: Part 3 of 3 Obfuscation &

You probably meant Visual Studio. Recommended Resources Programming Books Online courses and tutorials (interactive and static) Programming Challenges Miscellaneous Resources Programming Tools (IDEs, VCS, etc) Rules No Rewards: LearnProgramming does not condone monetary or other rewards more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Find the perfect tutor and raise your grades.

Although one of the most popular high level programming languages C/C++ can be difficult to get to grips with. First, introduces the function as a string variable, but I don't know how to convert it in another type of variable to return the images of te function. Use IsEven() function that receives an integer and return true if it's even , otherwise it returns false. share|improve this answer edited Oct 30 '15 at 0:46 answered Oct 30 '15 at 0:26 selbie 38.8k64693 Thank you so much.

This is an infinite loop: int temp; while(cin >> temp) {} meaning it will run forever, or as long as cin remains uncorrupted, unless you you put something like if temp Why not just assign '\0' to input[i] after the while loop and do cout << input? –Dominic McDonnell Oct 30 '15 at 0:29 1 Note that you don't have to If you know about arrays, then instead of using 4 stand alone ints, you could use an array of 4 ints, and instead of 4 stand alone strings acting as range All rights reserved.REDDIT and the ALIEN Logo are registered trademarks of reddit inc.Advertise - technologyπRendered by PID 18038 on app-42 at 2017-02-11 09:54:50.640367+00:00 running fda76ad country code: GB.

Feb 8, 2015 at 3:36pm UTC programming (9) HELP ME PLEASE I wrote code but, I dont know where is the error at yet. thank Ellie The program should allow the tutor to enter in the various marks which the students have been awarded, until the tutor enters in a mark exceeding 100. Programming is not Why is a simple loop optimized when the limit is 959 but not 960? You want it to display the price if the input is 1,2 or 3.

Recommended Tools for Posting Code: Redditlint: to easily format code for posts (best for short code) Gist: for long code and code in multiple files. Patient and Experienced Technology Pro New York, NY 4.8 (12 ratings) Justin H. No Complete Solutions: Don't give out complete solutions. How do I model a 12 sided shape?

The most common types of strings are C style strings and STL string objects. 0-29 is to be used as a string, used a label or phrase, to represent "zero to Rad Enigma Based Upon Sketches None of 25 students at question session before exam has a question. How to let my players fail their rolls intentionally, but covertly? Should I be using one?

Related 2Upgrading project from Visual C++ 2005 to 2010: Error '_Secure_char_traits_tag' : is not a member of 'std'2Filling std::map with std::transform (error: cannot deduce argument)4How to resolve “class must be used Bad things will happen if your input exceeds the size of your input array. I should focus on detail more yes.

Kingdom with helpful bands of mercenaries; avoiding devolving into bandits Will a propeller work in a superfluid?

Frequently Asked Questions How do I get started with programming? They are completely different. The received int must be a positive number smaller than 100; my code with error help me please; and how can i write this function? Advantages: Ø All our staff are highly qualified and experienced graduates with at least a BSc. Ø We only use our own ‘in-house’ staff. Ø Our tutors have international experience in

All rights reserved. Guide the OP to the solution, but do not solve it for them. Message the Moderators with suggestions or to rescue posts from the spam filter Chat on our official IRC at #learnprogramming on Freenode using a client or webchat! if(b) { if (i >= 80) { i=79; } input[i] = '\0'; cout << input << endl; } If you are familiar enough with the string class in C++, you could

Search: Forum General C++ Programming I need TO HELP NOW PLEASE I need TO HELP NOW PLEASE Feb 6, 2015 at 4:37pm UTC programming (9) Q1 recursive function that What is Frankenstein's monster made of in the original novel? Feb 8, 2015 at 12:05am UTC tristan1333 (42) 1
#include using namespace std; void pyramid(int size) { int counter = size; int pyramidsize = size; while(pyramidsize != 0) { if(counter Electric charges are 0.95 S.R per kilowatt.

Is it completely safe to publish an ssh public key? Get to know us About Us Contact Us FAQ Reviews Safety Security In the News Learn with us Find a Tutor Request a Tutor Online Tutoring Get Math Help Learning Resources Please provide a valid phone number. I am using Visual studio 2015 under C++.

Your problem lies here: if (code != 0) consider what you're trying to check for. The teacher want a brief answer if you can and thank you for help me again *_* Last edited on Feb 7, 2015 at 5:33pm UTC Feb 7, 2015 at 6:18pm More info Heads up, it looks like you’re not using a supported browser. I can omit the last few characters of my password on Ubuntu 14.04 ¿Cómo se dice, "estructurización" o "estructuralización"?

Use a loop to input the grades.