Beginners - September 2010 (Page 30)

swap string
 
I would like to create a ranking list based on scores. For example, I used structure to declare the variables. After values has entered, the program supposed to...
[4 replies] Last: thanks a lot for this information. It is more easier to understand. th... (by kenhapi)
I need to make this work
 
Ok well I'm fairly new to c++ but i've got the hang of it, unfortunately im having some troubles/questions. Recently whenever I write an input and then output i...
[2 replies] Last: #include <iostream> #include <string> using namespace std; i... (by khris)
Deleting an object in a vector of pointers
 
Hello I have a vector of pointers to objects of the Ball class. I am trying to delete the last one, but I'm not sure if I'm doing it correctly: // Crea...
[3 replies] Last: If Ball is properly copyable, then that should not be a problem. (by jsmith)
by juvan
Why the exception?
 
Hi, just for info in this project I am playing around with Allegro (library for some easy game programming) First let me paste the needed code: main.cpp ...
[2 replies] Last: G-damn it :P I found it, the problem was that I put system.Setup... (by juvan)
What's the advantage of header files?
 
What is the advantage of using header files? Ohter then splitting up the code in different .cpp's?
[4 replies] Last: lol indeed. XD (by Disch)
Iostream : No such file or directory
 
Hello everyone i am new to coding c++ and every time i try to compile and run a script on codeblocks i get Error: iostream no such file or directory. Does anyon...
[1 reply] : Don't double post: http://www.cplusplus.com/forum/beginner/28084/ (by Bazzy)
First time using classes
 
I wrote a simple function to draw a rectangle. Everything is fine except I have 2 small (i think) errors. I just can't figure out what I'm doing wrong... Her...
[4 replies] Last: Oh, so stupid! Thanks a load! (by xander333)
Reading data from file - line to line and fast
 
Hi, I have a question about performance of fgets(). My program reads a file and stores each line in a vector for later sorting the content. Usually the input...
[4 replies] Last: I reduced it like this... string linedata; while(*mempointe... (by Mynthon)
by Damia
Image processing
 
Hi. What I need to do if my error like this : 12 C:\Users\myza\Documents\MATLAB\trace4all\tt.cpp In file included from C:\Users\myza\Documents\MATLAB\trace4a...
[4 replies] Last: Oh really. Thank hamsterman. Actually I've got this codig through int... (by Damia)
by Marek
Question about String
 
I have question.. better yet problem with string... Since i just started with string.. i was wondering how to dissolve a word into letters... Like when i write ...
[7 replies] Last: Because the variable 'i' is an integer, and not a char in the string o... (by mcleano)
a way to have massive selection list without huge nesting
 
Is there anyway to have a huge list of stuff that program will auto choose from without using huge nesting. I'm trying to make a Monster Manager for a combat ro...
[8 replies] Last: oh jeez I didn't even notice that you said that already hamsterman XD (by Disch)
by unseen
Array assignment question
 
Ok I feel kinda stupid not being able to figure this out but here goes I have a working on a program for a class and its my first time using arrays and i got...
[7 replies] Last: yes (by hamsterman)
Forum Newbie
 
Hi all, I am new to this forum but no stranger to programming in C/C++. I want to comment just when I thot C/C++ is relegated to legacy systems maintenance and ...
[3 replies] Last: @Mazd: he means the forum, not c++ programs. @sohguanh: the forum w... (by programmer47)
average problem
 
I'm trying to do this exercise from the book accelerated c++ by Koeing & Moo (chapter 3), which basically it should calculate the average of the grades midterm,...
[8 replies] Last: I doubt that it works as intended. The total grade is made up 1/3 each... (by Athar)
Understanding references
 
Hi. I'm trying to understand references in order to know when I should use references instead of pointers to objects. I've created a basic example so I can ex...
[4 replies] Last: Thanks for your explanation. It really helps me out on this. (by mdonati)
Structs vs Classes
 
hey, all i was wondering is there any differences or advantages, of using one or the other?
[9 replies] Last: Structs and classes differ in a few ways. Semantically, there are two... (by moorecm)
Saving files with Fstream question (1,2)
 
Is it possible to save global variable values into a save. Then load them back into memory as the same global variables later to save ur current state in a game...
[28 replies] Last: http://www.boost.org/doc/libs/1_44_0/libs/serialization/doc/index.htm... (by sohguanh)
Creating .exe file from source code (1,2)
 
I want to create a .exe file from the source code of the program. How can I do that? The compiler I am using is Turbo C++ 3.0. Can I also have some help on the ...
[21 replies] Last: Oh... Well, I had never tried that before... I'll try today. Thank you... (by George M)
calculate the average
 
Write a program that ask for user input from 5 to 9 then calculate the average( Asked by Cisco system people)
[3 replies] Last: just joking..well try to think a bit..the average of 2 numbers: A and ... (by Mihay07)
Default input value
 
Is it possible to create a default input value that will display the default value in a console window? For example, have an input value of: Input: ...
[2 replies] Last: Yes, that looks good enough, that's pretty much where I'm at. I was t... (by zltippett)
September 2010 Pages: 1... 2829303132
  Archived months: [aug2010] [oct2010]

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