General C++ Programming - April 2015 (Page 18)

Operator Overloading
 
I have a question about overloading operators my program works like this but I was told about overloading operators and I didnt understand it...at all I know I ...
[9 replies] Last: This topic is continued at http://www.cplusplus.com/forum/general/1621... (by LB)
Save Chart to File
 
How would I syntactically create a function that asks a user for a file name, and then saves a chart (previously opened in the program) to that file name. T...
[1 reply] : You are not writing the row number (by ats15)
what could i have done differently?
 
Hey fellow programmers, I have started doing some problems and I feel very giddy and happy when I am able to solve an issue. I am a beginner but I feel like I c...
[8 replies] Last: You could do using std::cout; using std::endl; if you really don't w... (by giblit)
by Addsy
Snake Game
 
Hey guys, i'm wondering if anyone can help me with some code. Below i have some code for a controllable circle (representing a snake head) what could i modify/...
[4 replies] Last: The basic idea is this: Suppose your snake is moving left (Direction:... (by mgoetschius)
Determining Rows and Cols in an Array
 
My program is supposed to be a seat reservation system for a passenger airplane. I am having trouble with option 2 "Reserve Seat." The function should ask the...
[5 replies] Last: Underline means I added or changed the code from your original code. ... (by LB)
void functions
 
QUESTION 4: VOID FUNCTIONS A function named printDescription (with no parameters) displays the following message: ******************************************...
[3 replies] Last: Please note, that this is not a homework site. We won't do your homew... (by TarikNeaj)
Difference between std::cerr and std::clog? redirecting std::clog
 
Hey there, So, I've worked a little bit with the std::ostream objects and I know how to redirect std::cerr and std::cout to files but I can't find any informat...
[14 replies] Last: Okey thank you, still thanks, I learned some things about streams toda... (by Gamer2015)
Display a menu and then use an option in that menu to display a text file
 
//I'm having trouble figuring out how to open the file "chartIn.txt" in my menu under option one. I am able to get the menu to display but when I press "option ...
[4 replies] Last: This thread is continued at http://www.cplusplus.com/forum/general/162... (by LB)
fstream/function/switch
 
Need to know where to put the cin for option 2 of my switch so the function will correctly ask the user which seat number they wish to reserve. The place wher...
[2 replies] Last: This thread continues from http://www.cplusplus.com/forum/general/1620... (by LB)
down-casting to unknown derived class
 
Hey there, Is it possible to cast a pointer to an Object to a pointer of the real derived type without knowing the exact type? Something like this: clas...
[9 replies] Last: okey thank you! :) (by Gamer2015)
by AceK
Is it possible to explicitly call a superclass constructor within a subclass?
 
Hi guys, Is it possible to call a superclass constructor within a subclass? If it is, how do you do it?
[1 reply] : "superclass" and "subclass" are Java terms; in C++ we say parent/base ... (by LB)
please help with reading/converting text file
 
Hello, I'm having a lot of trouble with this program. I need to extract things from lines in file. for example one of the lines would be: 2013-05-07-1430, DTW...
[no replies]
Game Programming - First Steps (Point Structure)
 
I'm starting to move into game programming using Allegro 5 as my graphics library. I'd like feedback on the point structure below. This is the base structure ...
[4 replies] Last: No. You only need to use delete when you have created something with... (by Peter87)
Advices for cross platform code? (1,2)
 
Hi, I'm working on a sdl/opengl game on linux. I want the game to run on windows too(mac eventually, but I don't have one so that's harder), but I don't have an...
[27 replies] Last: thank you all for the info, it has been really helpful. Iwont bother y... (by Twk Amz)
by OMG1
access the elment inside 2D array
 
Hi, I used dynamic array to create 2D matrix, which ask user to enter the size and elements of array. My problem is how to access elements inside the matrix...
[1 reply] : int arr ; // 2D array. 5 rows, 2 columns. If you want to acess the t... (by TarikNeaj)
ChessBoard game
 
Hi,I'm trying to create a chess board program using pointer, object and class. This is my header file #ifndef BOARD_H #define BOARD_H class Board; #include...
[3 replies] Last: Here is the specification: okey, good to know ;) [quote=code] So...... (by Gamer2015)
need help with my code
 
Write an application in C/C++ to process library book records. The library book records should be read from a text file containing the following data: ISBN, aut...
[3 replies] Last: this is what i modified from others code.. (by liangliang)
by yj1214
SFMl for 3D programming?
 
I heard that SFML is not for 3D programming because it does not support 3D stuffs but SFML uses OpenGL, right? or is it because SFML uses its own OpenGL? if so,...
[8 replies] Last: https://en.wikipedia.org/wiki/Game_engine https://en.wikipedia.org/wik... (by anup30)
Linked List Help!
 
Basically what I need help with is the initialization of my find_person and print_person methods to work in main.Right now when I run the program, nothing happe...
[1 reply] : [code firstline=68]Link<person> * find_person(string Fname, string Lna... (by norm b)
How to used string Array
 
Hi My Problem is Im trying to figure it out how can i used string of array that initialized to a text and how can i read out character by character, i know how...
[8 replies] Last: Hi TarikNeaj Thank you very much your time and help, this is what i w... (by tauaketia)
April 2015 Pages: 1... 1617181920... 28
  Archived months: [mar2015] [may2015]

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