Beginners - November 2015 (Page 18)

void function "expected initializer before void"
 
I'm making a program for class and I keep getting this annoying error. I literally have no idea why it's showing up or what the heck it means. It's a little fru...
[7 replies] Last: OK OK OK WOW... I made quite a few mistakes...but hey it works now tha... (by CrypticA1)
INCREMENT and DECREMENT
 
CHEESE AND RICE, my brain is exploding, i get the math and stuff, but i cant just get the format of the way he wants it. please help, im not sure on how to disp...
[no replies]
Help Passing input file into arrays (1,2,3,4,5)
 
Hey guys so I am having a lot of trouble passing arrays into functions from my input.txt file. I've studied and studied and am having difficulty actually implem...
[81 replies] Last: lol ... ill do that. i have this whole week off for break. its snowing... (by Phil092)
Just a quick question
 
I created this code according to what the question asked me to do. But I am confused on the last part of the question. Problem: Modify the selection function pr...
[2 replies] Last: so do you think this code will be fine then?? #include <iostream> #in... (by Serge1005)
How do I deal with floats in my int based text menu
 
I'm writing a menu that will present you with 5 choices over and over again until you enter 5 as your input to leave. My code deals with string inputs and such ...
[3 replies] Last: Thank you all for the input, much appreciated (by hoobledooble)
by Marth
char[] to int? oh yes. yes. indeed. absolutely.
 
i has char array. char array has date indexed. Date is variable, depending on user input. so Day may has 11 (11th day of month); Month may has 02 (Febr...
[2 replies] Last: How DARE you answer my question. reported. (by Marth)
syntax error but i have no idea why?
 
I have a do while loop with a switch statement nested in it but for some reason the squiggly bracket at the end of the switch statement is saying it is a syntax...
[2 replies] Last: Try adding a semicolon (a null statement) before the closing brace of ... (by Chervil)
by Aksa
Please help me with this if / else if.
 
It always uses the else statement as true! I am beginner, just started today! Can someone explain? #include <iostream> using namespace std; int main...
[2 replies] Last: Use std::string to hold sequences of characters; it makes life a lot... (by JLBorges)
by HomerQ
HELP!!
 
Hello. I am new to C++ and i am stuck on a problem. The program I have continues to loop over and over and I can't seem to figure out why. If anyone can hel...
[2 replies] Last: Most likely the file was not opened successfully. After the open() sta... (by Chervil)
array within array
 
Hello all, I have an array in C++. I want to change some of its elements to another array.In other words, I want to store some arrays inside another array. Ho...
[5 replies] Last: IIRC, it should compile cleanly with these options: -std=c++0x -Wall ... (by JLBorges)
array wont output lowest number correctly
 
so im doing a bit of homework that i thought was pretty easy. but for some reason when i run the code and put the numbers in, no matter what i put in the sectio...
[7 replies] Last: well mine functions, but that is certainly cleaner and a smarter appro... (by kerreck)
Special Number Triangle
 
I know how to write a program that displays the following: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 9 1 2 3 4...
[3 replies] Last: Instead of j++ you would use j--, then fill in the starting and stoppi... (by tallyman)
26-Seater Aircraft Reservation System
 
Guys, please help me with this. I don't know what to do. Problem: Seat Reservation System You are tasked to create a C++ program that will facilitate a seat...
[3 replies] Last: Even using multiple dimensions seems like overkill. I would leave the ... (by booradley60)
Multi-dimensional Arrays and cout
 
create myarray random them and i got : 1 2 3 4 5 6 7 8 9 meh ... then i cout myarray and the number should have be zero cause it not has been set yet b...
[9 replies] Last: The idea of deleting something from an array doesn't really work like ... (by Chervil)
Cant get my program to print my Arrays
 
Hey thank you if you can help me. I cant seem to get my arrays to print or do anything. I'm trying to use bubble sort and selection sort. my problem is that vis...
[15 replies] Last: Okay. I got something similar when I moved for (int i = 0; i < ISIZE;... (by tallyman)
Connect 4 Full Board Check
 
Im currently programming a connect 4 game that runs player vs player. My question is: How can I check when the board is full so that I can stop the game and tel...
[2 replies] Last: That is exactly what I did and it worked, thank you. (by carlious)
Cant print array
 
I have written this code to do bubble sort and selection sort. for right now I cant get my selection sort to print my array //includers #include <iostream>...
[1 reply] : http://www.cplusplus.com/forum/beginner/179190/ Please just use one to... (by tallyman)
uniform cost search algorithm
 
Hey, I'm writing a UCS algorithm and came across an invalid heap error. I have overloaded <= and < operators to work with the priority queue, but I have no ide...
[no replies]
by Winsu
Friendship
 
I have a question, A function declared as a friend of a derived class has acces to the data member of the base class??. Thanks
[3 replies] Last: yeah, exactly. But B doesn't have access to it either so it would be p... (by Gamer2015)
by iR3MiX
Array-Temperature Calculations
 
I'm sure someone has seen this exact problem before but I never found a solution.. so I built my own version but I'm having some trouble. My output is going cra...
[18 replies] Last: Wouldn't I need brackets around: if (numElements < 1){ return numElem... (by MikeyBoy)
November 2015 Pages: 1... 1617181920... 53
  Archived months: [oct2015] [dec2015]

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