General C++ Programming - August 2014 (Page 20)

Return to menu in main program
 
my assignment is to enter employee id and their respective hours and pay rate, i have to keep asking the user if they want to enter more then they could enter m...
[no replies]
Calling a method in a method of another class
 
Hey guys :D Situation: I have created a "CSprite"-class in a separate header-file. It contains two functions called "Load (Param, Param, Param, Param)" a...
[18 replies] Last: main generates CPlayer CPlayer generates CSprite so main would have t... (by Disch)
changing header C++ 6.0
 
hi everyone can i use header VC++ 2008,2010,2013 with C++ 6.0 ?
[4 replies] Last: is clear and new method for me i can understand this. Re... (by int man)
How to edit text file?
 
May I know how to change a certain part of a text file? I want to +1 to a text file every time the user does a particular input. For example my text file has na...
[3 replies] Last: Modifying a file in-place (such as with a File Mapping) assumes that t... (by Duthomhas)
header folder lookup
 
Hello. I do not know when and how to use this $ CC -I/usr/local/include main.cpp Do I use this before g++ or after or together in cmd line?
[7 replies] Last: It tells the compiler where to find its standard include files (like ... (by Duthomhas)
Problem with getline
 
I have a problem with my code. I was writing a code to encrypt N number of sentences and when i enter the number of cases the program skip the next line (just l...
[2 replies] Last: It worked, thank you (by ahmadk3)
initialize char matrix
 
Hello to everybody! I have a global variable initialized like that: char matrix = {{'1', '2', '3'}, {'4', '5', '6'}, {'7', '8', '9'}}; The matrix is modi...
[2 replies] Last: Using std::array<> to wrap the c-style array: #include <iostream> ... (by JLBorges)
finding the location of a vector after using rand(), srand()
 
hi there! i'm doing a card game and i'm unclear on how to retrieve the card by doing vectors. after i use use srand() in main and create a rand() in a function...
[3 replies] Last: thanks Chervil that's exactly the answer to my question. i guess i di... (by numLOCK)
Template method
 
I need help with my code please... it compiles successfully but when I run it, it throws out a segmentation fault and can't see the mistake. The purpose of th...
[2 replies] Last: You need to declare the `Sorter' destructor as virtual , because you'... (by ne555)
Assigning char to an array
 
Hi, i want to assign a char to an array inside an if statement after the user has input the grade as an integer, but it has to fill an array with characters, su...
[4 replies] Last: Is the compiler not giving a warning on the comparisons in the if stat... (by wildblue)
need help using <fstream> as a function
 
i've made different functions and my text file does have words in it but nothing seems to print out. could someone check and see? void display_score_text(if...
[4 replies] Last: The parameters are redundant. They can be local var of display_score_t... (by Nikko YL)
String class problem
 
Hi, I try to learn string class, resolving some problem, but i have some dificulties. The is ok, but when i print the longest string it does'n print on the ...
[3 replies] Last: The default delimiter is EOF . You should specify '\n' as the delimit... (by Nikko YL)
writing a code for non-English speakers
 
Hello guys. I want to know how to setup and enable unicode for a program I wish to write for non-English speakers? Have searched forums but they do not directly...
[5 replies] Last: You first need to choose an suitable GUI framework (qt would be my fir... (by kbw)
UpperLower Casing
 
Is there any way to convert a string to lower casing without using std::tolower ?
[1 reply] : Yes, you could write the code to do it yourself, or use a library that... (by Peter87)
by sahan
error checking help i need help asap! pleease!
 
i have a task to do for a ousb board just need help with some error checks " ERROR CHECK 3: VALID NUMBER RANGE If the data read from file contains a numb...
[no replies]
Stuck in infinite loop
 
I'm working on an assignment for my c++ class and can't seem to get out of a loop. The assignment is as follows: Write a program to help a local restauran...
[3 replies] Last: Great, thanks. I see my mistake as soon as you pointed it out. Sometim... (by Freetoroam)
\n won't work with system("cls")
 
Hey guys, I'm coding a .dll, and from that .dll, when injected, it opens a PromptCommand window, and there i'll print out some instructions. First of all, I...
[2 replies] Last: @ wallpatrol There is more to associating a stream in Windows than yo... (by Duthomhas)
Adding an entry into array.
 
Hey guys! My program is suppose to be as a virtual phone book that allows you to add,search, display names and numbers. At the beginning you are able to a...
[5 replies] Last: You know the next index for data since you've saved it here. i = get... (by wildblue)
Input file not being read (yet not error)
 
Sorry to bother this forum once again but I've got a program to read the input file as records. The problem is all it does is cout Record Number etc but it does...
[5 replies] Last: Fixed reader.close(); i = 0; Was in the wrong place, runs fine now ... (by NewCComer)
JUST BEEPING NOT WORKING
 
Hello everyone.My name is Raymond and I am an Indian student from Kuwait.In my school they dont teach in depth about programming in C++ I am also very new to ...
[7 replies] Last: Let me see if I understand what you are trying to do. You want to dis... (by Duthomhas)
August 2014 Pages: 1... 1819202122... 25
  Archived months: [jul2014] [sep2014]

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