Beginners - September 2012 (Page 26)

How to record different inputs in textfile
 
This program records a name in a text file, anybody can help me how to record multiple names in text file every time I run the program...tnx in advance #in...
[3 replies] Last: Yeah, use getline() instead of cin cause, cin accepts characters until... (by Aceix)
Help with strcat function
 
i have the code something like this:- char buf ; int main() { char *mc_no ="002"; int a=99; //i did something like this:- strcat(buf,mc_no); strcat(b...
[2 replies] Last: #include <cstring> #include <cstdio> char buf ; int main() { con... (by vlad from moscow)
syntax understanding
 
I was looking at one of the c++ based frameworks. There is a class QMainWindow which uses the below syntax ..... class QMenu; class Q_GUI_EXPORT QMainWin...
[5 replies] Last: No worries, read some of the other docs on the website, or google Qt Q... (by TheIdeasMan)
by l3st3r
About saving to file
 
Hi guys.. I was wondering how can I write at the beggining of the file?? file inputs Lester Mark I want it to be Samonte Lester Mark ...
[1 reply] : You will have to put the write position at the beginning of the file, ... (by Fransje)
by MW130
Help me installing sdl
 
Hello I have spent over 3 days trying to figure out how to install sdl into xcode. I am on a part of tutorial by lazyfoo and I dont understand the part to add s...
[6 replies] Last: It should be upper case #include "SDL.h" http://www.libsdl.org/cgi/... (by Peter87)
by cramey
Capture a space
 
Hi all I struggle to capture the space when it is entered as part of the name The 2 lines commented out is how I try to capture the space but it doesn't work....
[10 replies] Last: Correct. I see the actuall issue was that i tried to enter a name like... (by cramey)
by clodi
how can you store data?
 
Hello, I am a real begnner in C++. I know that you can store data with vectors etc.. the queston is: How can you store data into a program, so that the next t...
[2 replies] Last: Thank you very much!!! I'll start working on it :) (by clodi)
by Maygs
toString problems
 
I'd like to return all this information from my toString like how it does on line 6. I have a strong feeling I've done something wrong and/or could do this a be...
[5 replies] Last: Ok, I see what you are doing. Why not append the payslip info to the ... (by TheIdeasMan)
Using a do/while loop with a switch statement.
 
This is definitely a homework problem, so hopefully I don't get some ToS breach warning, but I can't seem to find any help in reference as to why I keep having ...
[3 replies] Last: Also the cmath header file has built in constants for Pi, E etc. You c... (by TheIdeasMan)
Need help on how to start and do this homework problem?
 
For this assignment, write a program that will calculate the amount that a customer spends on tickets at a movie theater. The program should: Prompt the u...
[1 reply] : This is exactly the same problem as your other post in the General C++... (by TheIdeasMan)
by letsgo
Please help me with this question!
 
Good night guys, this is my first post. I am a student of Computer Engineering (beginner) and found it difficult to answer the following exercise from a list. W...
[1 reply] : This seems that this answer is located within the book. (by pogrady)
by fcanto
I want to learn this
 
My teacher gave me this code but I don't know exactly what the code is doing: newPtr->nextPtr = tempPtr->nextPtr; I was asking if someone could please ...
[5 replies] Last: Looks to me like it is inserting a new node at index n-2. So if there... (by kevinkjt2000)
dynamic memory allocation and reuse
 
Can any one plz provide some example how to implement dynamic memory allocation for employee record in the below example and how do i delete record from multipl...
[2 replies] Last: Well, first off you don't declare a destructor for your class. While ... (by pogrady)
Reading Textfile using pointers
 
solved
[15 replies] Last: Hmm thats very interesting, I'll try making a new text file. Once agai... (by topchef)
Class Program
 
I am new to the C++ so here i have one problem. I am not able to understand what i have to do in the below problem so please help me. using class Employee,...
[5 replies] Last: fname = new char ; lname = new char ; This code doesn't do what y... (by TheIdeasMan)
Clearing memory for variables
 
Hi everyone. I was running through one of my chapter exercises and used this program as an exercise. It compiles and runs yet when I enter the three test scores...
[3 replies] Last: Code tags: code goes here Just helps the helpers read the code. ... (by kevinkjt2000)
by mcal24
How to ask the user to repeat this program?
 
Im very new at this. I want to ask the user if he wants to repeat the program again by inputing Y or N or something like that. How can I do this. Sorry if it is...
[1 reply] : google c++ while loop (by Aramil of Elixia)
••Key press at any time. HELP!••
 
I want to make a simple game using the console and X,Y coordinates. I haven't started on this project because if I can't figure out how to make the computer re...
[14 replies] Last: OK. It turns out I'm just going to make a program that you use arrow ... (by Forseth11)
Practice program
 
I'm trying to create a program that can help me with some statics problems I've been doing. I have it set up to where I input the coordinates for each impor...
[3 replies] Last: I fixed it. I had a small mistake in variable placement. Program can d... (by bowlbase)
by fcanto
Sorting a link. list
 
Anyone has and suggestions in code in how to sort a link list
[3 replies] Last: I completely understand where you're coming from. I have no problem up... (by fcanto)
September 2012 Pages: 1... 2425262728... 62
  Archived months: [aug2012] [oct2012]

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