Beginners - April 2016 (Page 39)

by enemy
multiple inputs in ideone
Hello! Please, is ther eany variant to have multiple inputs ideone or an yother online compiler like it? Many thanks!!!
Apr 4, 2016 at 7:57am
[no replies]
by enemy
&& in while
Hello, please does anyone see the mistake, the program should write only those a%i==0 which are bigger then 4 and smaller then 8 (so ,only 6!) Why is it writtin...
Apr 4, 2016 at 7:33am
[2 replies] Last: MANY THANKS!!! (by enemy)
Help with reading from a file
I am a beginner, and I need to write a program that will read from a text file with four lines of Saul Good#12.35 30 25 Using different names and number...
Apr 4, 2016 at 7:30am
[1 reply] : With this code you are forever stuck in while loop because of while (... (by etrusks)
Not sure where I went wrong..
I made a simple battle simulator program to practice my loops and such but when I run the program the human forces always win with no losses. at first I figured...
Apr 4, 2016 at 6:53am
[2 replies] Last: Wow thank you so much. I looked right over that so many times... (by marcos656)
Arrays rows/columns
I need the problem to show 3 rows and 5 columns. The output should be like this: 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 My output is just a list. How do I modi...
Apr 4, 2016 at 6:14am
[6 replies] Last: Sidenote: I need the problem to show 3 rows and 5 columns. The output... (by keskiverto)
Input File Help-- How to read all lines in input file?
My program only reads the first line of the file that I open. For example, the first line reads "john smith 123-456-7890". The program asks for the first and la...
Apr 4, 2016 at 5:05am
[3 replies] Last: I don't know how to make a loop so that the program reads all the line... (by mangosora)
C++ Inventory Program Help
Hello, I'm new here! I need help with an inventory program I'm creating. I've finally set up everything to work but for some reason my numbers are not right jus...
Apr 4, 2016 at 4:33am
[no replies]
get hours, minutes, test in function, can't figure out clean exit on error
I'm trying to test for valid hours and minutes, and exit void getInput(int hours, int minutes) cleanly without going on to the next step as if they were valid. ...
Apr 4, 2016 at 4:02am
[1 reply] : To give you a quick idea #include <iostream> using namespace std; ... (by chicofeo)
Error message in code
I've been trying to make a program that splits a sentence into words and I keep getting this error message which I'm not sure how to fix. #include <io...
Apr 4, 2016 at 3:43am
[2 replies] Last: go to line 42 and see if you have a ; (by SamuelAdams)
by tva274
return type specification for constructor invalid
For homework, I have to construct a class called "Two_Nums" and there's num1 and num2, in which I will find the sum of their values and average it. I have to us...
Apr 4, 2016 at 1:15am
[2 replies] Last: @ne555 : Oh wow x.x Thank you so much! (by tva274)
Tic Tac Toe
Write your question here. Im new to C++, and i am trying to build a game of tic tac toe. i have been using this website as a template.http://www.cplusplus.com/...
Apr 3, 2016 at 10:45pm
[4 replies] Last: I put the variable before the loop and i am still getting the same res... (by fivestar)
Help understanding simple limit to while loop
Can someone help me with the flow of this code. So first user inputs the value lets say n=3. Then, in the its n--( post increment) which means the user value w...
Apr 3, 2016 at 10:29pm
[2 replies] Last: @keskiverto Ohhh! Your way is better. I was thinking for a while and c... (by sadij97)
return doesn't work but cout does?
this function from my class returns the size of length of the linked list. int LinkedList::GetLength() { int count = 0; Node* temp = head; while ...
Apr 3, 2016 at 10:29pm
[6 replies] Last: @peter jesus christ. i can't believe i forgot that. im so focused on ... (by StupidLag)
How can I change the string in char* ?
I want to let the user to input the string,but the error occur. Is there another ways to change a whole string but not change it one by one such as sentence ...
Apr 3, 2016 at 10:06pm
[4 replies] Last: If you want to use char array to store your sentence you have to alloc... (by etrusks)
by BenW
Getting some kind of (lldb) error with a weird message
Hi all, I'm having trouble with getting an output from my program here. The build succeeds just fine, but then I get the dreaded (lldb) notification and it s...
Apr 3, 2016 at 9:51pm
[1 reply] : Tell me, what type of input parameter is the function StandardError ex... (by Moschops)
Counter Problem
I need the left side column to increase in increments of 2 but the output is in increments of 4. The right side column is doing what I want it to but I can't f...
Apr 3, 2016 at 9:40pm
[1 reply] : line 14 you're setting num = num + 2 then you're doing it again on l... (by DirtyDan)
droping lowest and highest to get average
This is whats required and I don't know arrays yet so that's kinda out. While loop does not execute with if ststement after cins and its all a little confusing ...
Apr 3, 2016 at 7:49pm
[4 replies] Last: Ahhhhh more progress! but the yop for loop isn't counting or something... (by miah612000)
Vigenaire coded message
Helo everybody! I wrote a code to decrypt a message wich was crypted by the Vigenaire system. My code can be build and can compile but it never stop compiling....
Apr 3, 2016 at 7:30pm
[no replies]
by enesdl
Class of students tracker (Homework Help)
Hello, I am currently working on some programming homework for my grade 12 class and I am stuck on this question for a couple of days now. If someone can pleas...
Apr 3, 2016 at 6:52pm
[3 replies] Last: Bump any ideas please? (by enesdl)
Why doesn't my program handle shifts greater than the length of the array
My program is supposed to right shift an integer array of N length in ascending order (For example: {1,2,3,4} or {21,22,23}) by M elements. My program works fin...
Apr 3, 2016 at 6:41pm
[no replies]
April 2016 Pages: 1... 3738394041... 43
  Archived months: [mar2016] [may2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.