General C++ Programming - November 2011

Clarification on a Tutorial..
 
So in this section about String functions: http://www.cplusplus.com/reference/string/string/replace/ Theres an example at the bottom: str.replace(9,5,s...
[2 replies] Last: Ah yes you're right, I was thinking about it differently. Thanks! (by arsenic)
include file
 
I have a function in header file, because I want to change input matrix size when running. When I include this header file and compile, it seems it cannot dete...
[4 replies] Last: You could pass a simple unsigned char pointer and the sizes (x, y and ... (by bbgst)
C++ Road Trip Planner
 
Hello all! I am an applied mathematician that has always used C++ for purely computational purposes. I am trying to branch out and learn how to use C++ in m...
[1 reply] : Sounds like a massive project. Really C++ would only be used for the ... (by mik2718)
wired input character,can't read by input stream function
 
Problem: Today,when i am trying to read a file with c++ file stream, but always failed. the function in.get() always return EOF, and the in.eof () is true. I...
[2 replies] Last: thanks a lot. with your help,i solve the problem. But, i still have a ... (by youtubezou)
by Meziee
Dinosaur classes.
 
I am supposed to create a class program of dinosaurs. I have to create special attributes for each dinosaur how do i do that? Dinosaur Class: #include ...
[5 replies] Last: SetBehavior - you have called it SetBehav in the base class. Using th... (by mik2718)
char in if statments
 
Im not sure how to right it to so that if i input c for car then it will use the carcharges an so on. type is a char if (type == 'c') carcharges (hourin...
[6 replies] Last: I don't see how getdata works. You are passing in pointers to ints an... (by mik2718)
Include an external library in my .lib file
 
I'm using MS Visual 2010 and I've created a static library (.lib). Now, my library uses #include <winsock2.h> in one of the header (.hpp) files. This means ...
[4 replies] Last: You should be aware that doing that has legal implications when it com... (by Duthomhas)
105 errors on build but none of them point to a spot in the file T.T
 
Hey, I am working on a project and when I build the project it gives me 105 errors and when I go to them it doesn't tell me where in the program the error occu...
[6 replies] Last: nvm i know whats wrong (by ozarka30)
While loop help
 
This code is meant to do a combat simulation for an RPG but the while loop does not end. Please can somebody tell me where Iv'e gone wrong. #include <iost...
[3 replies] Last: Yes, that while loop said: while Hero is alive OR while Monster is al... (by LB)
I need to know this, plz help
 
Someone recommended this in order to learn c++: ISO 14882:1998 (the original language definition) ISO 14882:2003 (the bugfix and still current legal standard...
[1 reply] : btw: Is ISO 14882 the same as ISO/IEC 14882? (by malvado)
Question
 
I've just downloaded this book tittled: The C++ Standard Library Extensions - A Tutorial and Reference, by P. Becker, Addison-Wesley (2006). Ia it the same boo...
[3 replies] Last: "ISO/IEC TR 19768:2005 C++ Library Extensions" is not a book. It's an ... (by Moschops)
How to catch newlind on Win in getline
 
Hi, all How to distinguish difference between stdin and string supplied with “<”. I care only about Windows platform, so th difference is new line char...
[2 replies] Last: Hi, Duoas !!!!! That's really helpes and saves my project !!! THanks... (by mario17)
unresolved external symbol
 
Im writing a code to calculate the cost for parking in a parking lot based on time and vehicle type. i know the code inst even closed to finished im just lookin...
[6 replies] Last: Or if a switch statement would work better i can use that too (by Sspangler)
Task: Write a C++ program !
 
Dear everybody I got the task to write a C++ program, but unfortunately as a newcomer, I have absolutely no idea in terms of the C++ programming language. ...
[no replies]
Lottery program using class need help!
 
First of all, line 43 doesn't work for some reason i have to get it fixed so that numbers need to be in the range of 1-50 where u cannot pick the same numbers, ...
[1 reply] : Try this function void TexasLottery::MatchNum() { match = 0; for(cou... (by junior7667)
by Johnb5
A little assitance..
 
Im trying to get this program to work, but instead ive gotten at least 14 errors after i complied it...and idk why! its supposed to continuosly show the menu an...
[10 replies] Last: ive gotten my loop to stop, but i need it to continue after everytime ... (by Johnb5)
Help with programming a bot
 
Hey guys, need some help reprogramming the source code of a bot. The bot works by using various modules and I'm reprogramming the function called "FLATROLL". Fl...
[no replies]
by SeanR
Problem: successful build but program displays nonsense in output (programmed in C not C++)
 
This is my first semester doing any kind of programming whatsoever and I have a series of functions to write for an assignment. I've written this function to r...
[11 replies] Last: Thanks, Duoas. That was brilliant code but I didn't fully understand c... (by SeanR)
2 questions
 
first one do you guys like my game idea it's a multiplayer cardgame like yugioh but different rules and if you ask me the graphics in the yugioh games are horri...
[3 replies] Last: You sound young and I applaud your enthusiasm BUT... Can you implemen... (by cnoeval)
help me understand linked list
 
How do you implement this example code? The comments say what to do, but I'm having problems with the whole node and linked list thing. Please help. I'm a visu...
[no replies]
November 2011 Pages: 123... 47
  Archived months: [oct2011] [dec2011]

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