Beginners - May 2013 (Page 7)

returning a 2d array
 
How do you return a 2d Array from a fuction
[2 replies] Last: const int SIZE = 3; int** return_array() { int** array = new int*[... (by Fransje)
Help me this exercise plz
 
Write a program that generates a vector of dimension 10 and its components are assigned to the first ten square numbers. I'm a beginner with C++ here is my co...
[2 replies] Last: #include <iostream> // library for standard input output #include <v... (by Ramzi89)
Try/Catch
 
Does the catch section of a try catch have access to variables within the try section? In the following example how does the catch section delete the list? Does...
[2 replies] Last: OK thanks a lot Fransje. You wouldn't have any idea what my lecturer w... (by Ramzi89)
'A' help me
 
(31) bet.. #include <iostream> #include <ctime> int race (int a, int b, int c); void race(); int hold (int b, int c); void init (); int money = 200; int...
[9 replies] Last: it's wrong and the int placebet() function confused me (by unagidon)
Ostream_Iterator Question
 
Hey Forum, Sorry for the general question but I'm still very new to C++ (and programming in general). I am trying to teach myself about the STL and its uses...
[4 replies] Last: > So the back_insert_iterator is, in effect, turning copy() algorithm ... (by JLBorges)
by Vigii
How to call GNUPLOT from C++ program
 
Hi All, I'm a beginner seeking to know how the gnuplot can be called by usage of c++ program. My main purpose is to plot a graph/contour which changes fo...
[1 reply] : http://www.gnuplot.info/links.html (by keskiverto)
template ,h and .cpp full of errors
 
So in my nativity and rush into templates I made the mistake of splitting the template class that I created into an h file and cpp file. After reading http://w...
[3 replies] Last: You're doing all sorts of weird and non-standard things to try and get... (by MikeyBoy)
LNK 2019 LNK1120 error
 
I'm using Microsoft visual studios and cmake wrapper to write a script with the insight toolkit package... just beginning and having some I/O errors. I'm very ...
[5 replies] Last: That's got it. A few other minor bugs and it worked. thanks cire. (by sjkruger)
loosing significant figures
 
I am reading data in from a file and I loose the last digit when I cout. // read from file and fill arrays double data ; // array reads angle, w...
[3 replies] Last: Yes and yes. (by Cubbi)
Error no suitable constructor exists
 
I've got a function that returns the object that is being checked. It is giving me an error telling me that I do not have a copy constructor. I do have two co...
[3 replies] Last: Thanks! (by catdance)
Filling an Array
 
I am filling a multidimensional array up from a file and inside the loop when i print the value of what i want it is correct but when i cout outside of the loop...
[4 replies] Last: AHHH!! Understood Thanks ! (by dhilchie)
Learning Scanf
 
So I am trying to enter a competition and they said that cin and cout in iostream are just too slow for that kind of stuff int testcase; scanf(...
[5 replies] Last: You forgot the space before the first %c. To make it similar to cin >... (by Cubbi)
by orionn
Help with file I/O
 
Hello CPP! I'm new to this forum but I'm hoping I can start contributing at later times. I need some help with a certain program of mine. It saves 3 integers, n...
[3 replies] Last: In line 3 of read you open an input stream for output. Don't do tha... (by cire)
by symbit
Book recommendations?
 
I've recently bought Jumping Into C++ by Alex Allain (incredible book), and am using C++ Primer Fifth Edition by Stanley Lippman as reference. I am aware that t...
[4 replies] Last: Your using C++ Primer 'as a reference'? I don't understand why you are... (by closed account ypfz3TCk)
How to get a job as a c++ programmer?
 
to be a self educated computer programmer is my choice but to get a job, what do i need?
[6 replies] Last: [quote=jasonrobertz357]what do i need? Without a degree is hard. What... (by coder777)
list iterator not incrementable
 
I'm following this tutorial: http://devmaster.net/posts/3232/how-to-structure-a-game After reading this I wrote a practice program and my problem came when I w...
[4 replies] Last: @Rowan836 Haha, works perfect thanks! But why? Because before ... (by vlad from moscow)
Insert a reference into a vector<>
 
Hello everybody, This is a simplification of my code. The error is on the last line, when i execute the push_back. The error is: error: no matching function...
[9 replies] Last: Make abb non-const and pass address to push_back() and take care that... (by coder777)
by yingC
Edit Data in file and updating it to file
 
Hello, Im trying to edit some of the data in a file, and updating new data into a same file. I was read the whole data into a memory, and edit it in memory....
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ http://www.cplusplus.com/... (by MiiNiPaa)
Program on Show menu and calculate bill
 
Hello friends, i have got a project work on a question. Write a program to create a restaurant menu and enter the choice of the user on the basic of choice mad...
[1 reply] : I dont know abot that but u can do the same using a stucture of array... (by cyberdude)
float fucntion in class
 
Hi guys: How are you.... I have a problem an dont know how to solve it,,, I used fucntions in classess, 2 fucntions, one is for addition and other is for percen...
[2 replies] Last: Try the following float percentage() { float per = a * 100.0f/total;... (by vlad from moscow)
May 2013 Pages: 1... 56789... 66
  Archived months: [apr2013] [jun2013]

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