Beginners - October 2013 (Page 72)

HiLo Game glitches?
 
Hey guys, below is my code for a HiLo game. Currently when you play the game, even when you guess the correct number, it says it's too high or low, until you gu...
[1 reply] : Hi there, I think you have a curly brace too much: [code firstline=3... (by closed account o3hC5Di1)
Code run on Dev C++ but error in CodeBlock
 
Hey ,i'm a beginner and just start study C++ in few month. Why my coding wont run in CodeBlock but work in Dev C++. Your help would we very appreciated :) #i...
[4 replies] Last: ooh , and cstdlib doesn't work (by reddevil cplus2)
Problems in Jack n Poy Game
 
Hi.. so i have 4 problems in my program. #1.Whatever i chose, the computer will always play (1st)Paper,(2nd)Paper and (3rd)Scissor. For example: (1st pla...
[6 replies] Last: How can i also invalid the letters or any other keys in the keyboard ... (by MiiNiPaa)
C++ problem stopping cout function
 
i need help with this i can't get this to stop outputting i need the numbers to to output except for the last one i need it put without the comma thanks for yo...
[1 reply] : First please always use code tags: http://www.cplusplus.com/articles... (by TheIdeasMan)
A Tricky Recursive Situation in Binary Trees
 
I'm trying to obtain a value through recursive calls, the problem I am encountering is that the first call has the same function which causes it to overwrite th...
[1 reply] : I just figured this out after brainstorming a little bit more. So I si... (by jheard901)
by wolfv
compiler error: 'array1' is not a type
 
This error message makes no sense; 'array1' is an array name. The code looks good to me. Please tell me what I am missing. char array1 = { 'a', 'b' }; ...
[3 replies] Last: Thanks jlb and ats15. Now I see the light. This is what I was trying... (by wolfv)
help with error checking
 
I'm supposed to write a program that reads two numbers and stores them into varialbes double x, y; and then the code is supposed to find the values of x^y and y...
[1 reply] : It would be nice if you post any error messages. Use cin>>x; without... (by ats15)
how do i stop rand to stop making duplicates
 
how do i stop rand to making any duplicates main () { int a; for (int i = 0; i <10; i++) { a = rand() % 10 + 1; cout << a << endl; ...
[9 replies] Last: Its an stl container kind of similar to an array. http://www.cplusplus... (by giblit)
Debug Assertion Failed!
 
Not sure that this is the right place to post this since it may be IDE specific. I apologize if it belongs somewhere else. I originally wrote this in xcode and ...
[11 replies] Last: Hmmm....So originally I thought I could just go through all my stateme... (by programmingnub)
by aggsyb
Using std::set to find duplicate values
 
I think using std::set is the way to go about this although I have no experience with it and cant find any basic examples using it. If I have a vector with 3 va...
[3 replies] Last: I managed to get it working by writing the following code, #include ... (by aggsyb)
Loop problem
 
I'm having trouble with this while loop, I want it to keep reprompting the user if they put a number less than 300 and more than 8,000,000. However it keeps giv...
[4 replies] Last: because you didn't perform any operation to make the condition on your... (by nvrmnd)
Problem with rock paper scissors game
 
I'm making a rock paper scissors game with password for a school project. It goes like this: #include <iostream> #include <stdlib.h> using namespace s...
[2 replies] Last: I take it that the password is somehow a requirement of the assignment... (by CplusplusAcolyte)
Use of References
 
Hi, I have this code below and was wondering why the outcome of the cout becomes 576. I worked it step by step and ended up with 654. I got the first line r...
[1 reply] : #include <iostream> using namespace std; void f(int a, int &b, int ... (by closed account Dy7SLyTq)
assignment help
 
Chapter 5 Programming Assignment Write a program a program to read daily temperature data from an input file and analyze that data. The data consists of the d...
[1 reply] : what do you have so far? (by closed account Dy7SLyTq)
Pyramid
 
I kinda need to draw a pyramid
[3 replies] Last: you don't put return. (by Hedgehog Ninja)
Errors
 
So I am making a Program to store in data then print it at the will of the user. This is what I got here and so far I got a lot of errors but When I got to ...
[5 replies] Last: Never Mind I got it on my own thank you :) (by c0dev0id)
Parsing/Validation help
 
I am a c++ beginner and am trying to write a program that will take a roman numeral and convert it into an arabic number (arabic numbers are the format of a num...
[8 replies] Last: @Everyone - thanks for all of your help. I ended up rewritting my code... (by programmingnub)
finding the maximum value?
 
Hello, thank you all for helping us beginners on a site like this. I'm supposed to write a program that reads two numbers and stores them into variables doub...
[4 replies] Last: Eyenrique-MacBook-Pro:Help Eyenrique$ ./Highest Enter a value for ... (by eyenrique)
Random number generator help
 
Hello, below is my code for a HiLo game program. It works great, but my random number generator always gives the same number? Anytime I try playing the game, th...
[3 replies] Last: You can always use a specifically designed function to aid with random... (by CplusplusAcolyte)
Replacement Strings
 
I'm having issues trying to find out which string function to use to replace the output after enter first and last name. #include <iostream> #include <cstd...
[16 replies] Last: UNO students. Pfft (by BOBHADABABYITSAB0Y)
October 2013 Pages: 1... 7071727374... 86
  Archived months: [sep2013] [nov2013]

This is an archived page. To post a new message, go to the current page.