Beginners - April 2015 (Page 3)

std::list
 
but does the std::list library has a member to use the nextpointer of the iist iterator? checkinn i didn't find it, but is it possible to use it?
[no replies]
Adding hexadecimal # issues
 
So my method to add hexadecimal numbers together is giving me issues. for my beginning while loop if i have && instead of || ill get the correct answer but the ...
[no replies]
Input validation for arrays, so that no number is repeated?
 
How would I do input validation for this code, so no number is repeated? int table ; int row = 3; int col = 3; int main() { for (row = 0; row < 3...
[3 replies] Last: Did you look at the example program in the documentation of std::shuff... (by keskiverto)
Edit & Delete function
 
Hello everyone, My final project of the year is due tomorrow and i need to get this project finished and i am having trouble getting a delete and edit function ...
[no replies]
Why is my code not compiling?
 
I honestly have no idea what "invalid types of int for array subscript" means... #include <iostream> using namespace std; int magicSquare ; int ...
[2 replies] Last: Thanks :) (by birdyrc)
2d Array help? Any advice is appreciated!
 
How would I add the sum of the random numbers in the row, and do the same for the column? It's for a magic square program. int table ; int row = 3; int...
[1 reply] : Do you know how to calculate the sum of values of a 1D array? (by keskiverto)
Returning value AND index in an array?
 
My task is to find the largest number in an unsorted array recursively. I need to return both the value and in the index. My problem is trying to store the inde...
[1 reply] : Where is your "by reference parameter"? Your code doesn't "return" an... (by keskiverto)
by savanh
please help me
 
hello, i hope you all doing well.i have this part of code but when i try to choose 2 then get to per then go inside loop dosent let me put the date when i put 0...
[2 replies] Last: Please use proper indention: class bor:public ani { subscript su... (by Gamer2015)
Inheritance
 
I am just lost on trying to fix this code. I changed everything i thought possible but i still get an error saying UndergradStudent has not been declared and ex...
[6 replies] Last: thank you so much for helping! (by mmiller03)
Read from input file and later write back to that file
 
So in my C++ program, we have to first read data from a file. So for that I have declared my inputFile to be ifstream. But then later in the program, I want t...
[4 replies] Last: Something I'm been playing with and learning how to read and write fro... (by Sanction)
Can anyone explain this to me Plz
 
hi guys, I came across this code int a =10; if (++a == a++) { cout << a++ << endl; cout << ++a << "\t "<< a++<< endl; } cout << a << endl; ...
[5 replies] Last: Have you tried to run the program several times? If there are differe... (by keskiverto)
by enemy
No time for friends->no friends (1,2)
 
Hello! Is that with friends really more complicated then it seems? Here is the original wikipedia example, what did they want to say with:" "the object ...
[21 replies] Last: Hi , xd i wasn't able to respond , i was away but my friends did to ad... (by closed account SECMoG1T)
Writing a 2048 game for final project, have a couple questions.
 
Hello everyone, I decided to make 2048 for my final project in my c++ class, and I need some advice before I start getting into the nitty gritty. I currently ha...
[1 reply] : ans 1) int x =rand()% number will give assign a random number f... (by vxk)
code reads outputs results twice for some reason
 
Hello. I am writing a code for a school project which asks me to read in certain values from 2 text files and then output them to another file called report.txt...
[1 reply] : The problem is probably being caused by this line: while (not testC... (by jlb)
by enemy
meaning of "const" before function type
 
hello! Please, does someone have a good link to where this construction can be used and whta for? many thanks!!! const int& get() {return x;} // ...
[1 reply] : http://duramecho.com/ComputerInformation/WhyHowCppConst.html (by mutexe)
by MRQ1
Understanding the use of C++ concepts in large projects
 
Hello everyone ! . I have been programming in c++ for a while now and now i am studying advance concepts but there is a problem. I have problems in understandin...
[3 replies] Last: I just went looking for a link to that book to post...got distracted b... (by closed account z05DSL3A)
minesweeper game validation help
 
hi, im relatively new to c++ and i have created a minesweeper program. so far ive got quite far but im having problems with validation of input when the player ...
[2 replies] Last: thank you :D (by baka123)
Can I output contents into multiple ostreams?
 
Like these: ofstream ofs1("test1.dat"); ofstream ofs2("test2.dat"); cout<<ofs1<<ofs2<<"Hello, Will I show up in all three terminals?"<<endl; Loo...
[7 replies] Last: boost::iostreams::tee_device http://www.boost.org/doc/libs/1_57_0/li... (by JLBorges)
Sorting the array.
 
I need to write array and sort array elements from low to hight number. This is what I have done, but dont have a clue how sort numbers by growing numbers.. T...
[2 replies] Last: #include<iostream> using namespace std; void sort (int n); void swap... (by MRQ1)
Urgent Help on MPH to KPH coding
 
I have to create a code to convert MPH to Kph. I know the formula is Mph * 1.61 What do I need to correct? #include <iostream> #include <cstdlib> us...
[1 reply] : first of all i dont think the first template is necessary. The outline... (by Aceix)
April 2015 Pages: 12345... 52
  Archived months: [mar2015] [may2015]

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