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...
[no replies]
by enemy
&& in while
 
Hello, please does anyone see the mistake, the program should write only those a%i==0 which are bigg...
[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 ...
[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 th...
[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 ...
[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 "joh...
[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 everyth...
[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) clean...
[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 m...
[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 wi...
[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 bee...
[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, ...
[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::G...
[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 w...
[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 f...
[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. Th...
[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 ...
[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 co...
[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 ...
[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: ...
[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.