Beginners (Page 2)

by sbas10
if (!cin) ?
 
I was looking at this code and wanted to what is the reason for lines 35 - 39: " if(!cin) ...
[3 replies] Last: Makes sense now. Thanks y'all! (by sbas10)
String input 'overflowing' into next string variable
 
This is a total noob question but here goes: I'm trying to write a simple console program that just...
[4 replies] Last: @Jezze Thank you very much. This fixed it! I have no idea how it works... (by thatrandomsam95)
by rcson
A little help with a simple task
 
Hello, My task is to write a program that concatenates the last characters of three input strings. ...
[13 replies] Last: Ok, my new code and it`s working fine, but with using substr #incl... (by rcson)
How to make program more effective
 
One of my homeworks required me to create 30 random numbers from 0 - 9 and count how many times each...
[5 replies] Last: Ah I see, that makes it very clear thank you. I need to show which nu... (by alex067)
The if statement is completely ignored in this program
 
I'm having a problem with the flow of control in my program. The if statements for choices "a","b","...
[2 replies] Last: Ah thank you! I will be sure to remember that cin.ignore function. Sho... (by SomeAmazingGuy)
by yamin
Very new student of C++
 
I've just started C++. is there anyone who is going to help me with simple simple projects. Thank yo...
[1 reply] : That's what this forum is for. When you have a problem, ask us. Ther... (by Esslercuffi)
creating vectors from vectors.
 
Sorry for the confusing title. The question I am having is that say I have a vector that has 100 ...
[5 replies] Last: Well, for finding the vector with the largest size, you know there are... (by Ispil)
I have ABSOLUTELY NO IDEA why syntax error
 
Anyone see mistake ? #include<iostream> using namespace std; int main() { int month, da...
[2 replies] Last: With a bit of rigorous restructuring (as in, did nothing but added lin... (by Ispil)
c++ how should I fix this?
 
Write your question here. #include <iostream> #include <conio.h> #include <iomanip> #include <...
[1 reply] : Try typecasting c to int. The syntax for a typecast is: typename(var... (by Ispil)
Recursions
 
Hey guys please help me i dont understand how recursion works. i understand that 5! 5*4 4*3 3*2 2*1 ...
[3 replies] Last: Yes. (by Ispil)
by NOD32
Functions and loops, not getting desired output
 
This program is supposed to take input from getbottles function and return it based on what the user...
[5 replies] Last: ok, made changes you suggested, programming works as intended. thanks! (by NOD32)
Exceeding array boundary
 
So my lab instructor told me I can rotate my function in a clockwise fashion by using modular within...
[1 reply] : Suppose k is 3 and n is 6. So the 1st array element should have 4th ar... (by kepler)
Problem with my looping?
 
Not sure whats going on, this program lets me consistantly put input in witout outputting anything. ...
[2 replies] Last: Me too! thank you for your help have a good day (by vandat2508)
by BB2921
Function Names not matching?
 
I'm trying to write a program and it has to put quiz values into an array, one requirement is to bui...
[1 reply] : #include <iostream> #include <iomanip> #include <cmath> #include <str... (by anup30)
Need help with strings and if statments.
 
Hi, I am new here and I am trying to learn C++. I am trying to use if statements to switch between d...
[3 replies] Last: Thank you so much. (by C add add)
by HPfats
Learning Objects in C++, Lines, Circles, cwin graphics, objects.
 
Beginner here, just joined this site. Need some help if I can get it. I'll keep this short. SO, ...
[no replies]
Need help with Containers
 
I need help on creating a container in an already working program. What I already have is a poker ha...
[1 reply] : What I really have so far #include "Tools.h" #include<iostream> #in... (by angryplayer557)
Trying to stop this endless loop
 
It just stays in an endless loop, and i though my > statement would end the loop. Any suggestions ar...
[3 replies] Last: it happens to the best of us. (by Esslercuffi)
stack trouble
 
Hello everyone, I find myself stuck with stacks. Say I enter "racecar" and "RACECAR" (not necessa...
[no replies]
Silly question but how can I output just one quotaton mark inside a string literal?
 
I would like to know how it's possible to output a quotation mark inside a string literal? For examp...
[1 reply] : cout << " \" \n"; characters which can not normally be placed inside... (by Esslercuffi)
Pages: 1234... 119
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.