Beginners - December 2016 (Page 20)

I need help with the if statement
 
Is it possible to make it so an If statement can read string? I tried to do this but it doesn't work. (Im an extremely new at C++) if (username == "jay")...
[7 replies] Last: This is what I have and I am getting no errors. int main(){ string... (by switchy)
infix to postfix conversion
 
It does not show any output. #include <iostream> #include <conio.h> #include <string.h> #include <sstream> /*C++ code to convert infi...
[no replies]
diagonal numbers in string 10*10
 
Can someone help me with a program, I have to make a 10*10 diagonal program for numbers.It has to look liek this. 0 1 3 6 10 15 21 28 36 45 2 4 7 11 16...
[5 replies] Last: thank you. (by Ogi1302)
Needl help with getline.
 
Hello. I need to make int from getline. I know with atoi. But how? And then i need to put that int in to array. data in file 2 1;8:00;8:00;4:30;8:00;8:00;...
[2 replies] Last: Ty I create this monstrum :D Work as I need. void ctiHodiny (ifs... (by Jakubaz)
Random array sorting..
 
Hi, I would like to make a random array in 4*5 first. Then supply selection and bubble sort to fix the same number in two separate lines. (show the number...
[no replies]
How do I skip over columns when reading from text file
 
Hi. How do i skip certain numbers when im reading from text file I'm only supposed to read the name of the state(MAINE) and read admission number(23 in this c...
[7 replies] Last: I've never used find_last_not_of before ... #include <iostream> #inc... (by closed account 48T7M4Gy)
Crash whenever I insert value to the vector.
 
I found how to insert a value at chosen location but instead of deleting, I want it to push down. How do I make this work? Thank you. This is the part th...
[1 reply] : // numberVector.insert(numberVector.begin() +indexNumber + numberVec... (by JLBorges)
Help with file io decision making
 
Hello there! I am working on a C++ program that is like a faux bank account. I have the program set up to be able to get a username, search a file for the usern...
[2 replies] Last: #include <iostream> #include <fstream> #include <sstream> #include <... (by gunnerfunner)
error roomArray not declared
 
I'm not sure why but my compiler c11 says that my array 'roomArray' is not declared. I do declare it later on, but I don't know why it's telling me there's an e...
[2 replies] Last: Thank you gunnerfunner, your solution ended up working. (by TheEurekaMan)
Help with output from arrays, class, and struct
 
Hello! So I have a school project where I'm supposed to manage a taxi company using c++ programs (especially class and struct) and my question is how to make my...
[no replies]
Hash join
 
I have two relations A and B, both with all integer attributes (A {a1,a2,a3,...} B{b1,b2,b3,..}. How would I hash-join these two in C++? The user will pick the ...
[3 replies] Last: 2 vector<int> of varying size, A and B, constructed (lines 8, 10) 1 ... (by gunnerfunner)
File Handling and structs
 
Hey guys.. my program is building fine and running but my information from the file is not showing instead its showing my error message.. any help would be appr...
[2 replies] Last: Dude thank you so much! it finally displayed (by Hamanan111)
Binary Search Tree Delete function issue
 
I am unable to get my delete function (or my delete all function which im guessing is the same issue) to work on my binary search tree. I need to check to see i...
[no replies]
Error: No matching function to call
 
Basically I have my code lined out to what I thought would work, but I guess I dont understand fstream completely. I thought I could fstream and inFile to this ...
[4 replies] Last: - change the open file lines to fstream inFile(fileName.c_str(), ios:... (by sanderco)
Struggling on C++ Input and Output /Print
 
I have to do C++ program that input the number 3 and prints yes I consent for to attend and a second input of the 6 and prints out Please send an alert when s...
[3 replies] Last: Sorry for any confusion and certainly thanks for taking the time to ev... (by BrentonZ)
The lab requires you to create two files Account.cpp and AccountMain.cpp.
 
Write your question here. Hello guys, my teacher assigned us a problem similar to this one: https://www.chegg.com/homework-help/questions-and-answers/c-lab-r...
[1 reply] : What exactly is the "problem"? (by cloonix)
expected unqualified-id before '{' token
 
hi,this a program that has two players and one judge.the judge selects a letter and the player who has more letters equal to the one that the judge selected win...
[2 replies] Last: thanks, the program doesn't run,but at least is one problem less now (by tkourahara)
Help with quick sort function(s)
 
I am trying to create a quick sort function that sorts a vector based on the sting value it holds or the int value it holds. I have two different methods for qu...
[no replies]
Inheritance and Polymorphism
 
I need help writing the formulas in my implementations. I also need help instantiating and populating random Circle and Rectangle objects into an array of “Sh...
[no replies]
How do you guys like to study for programming?
 
Good morning (or afternoon)! I was just wondering, how do you guys like to study for programming? I'm currently taking my second semester of C++ but I'm pret...
[no replies]
December 2016 Pages: 1... 1819202122... 28
  Archived months: [nov2016] [jan2017]

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