Beginners - March 2011 (Page 45)

First game in sfml/c++ (1,2)
 
I was wondering how much basic knowledge of c++ i'd have to know in order to start making very simple games in sfml with c++. right now i know basic I/O, makin...
[22 replies] Last: Reading and understanding compiler errors is a major part of programmi... (by Disch)
Imput file to output file
 
Im having trouble with figuring this out. Will someone please help me. Problem: Write a program that computes the cost of a long-distance call. The cost...
[1 reply] : Single quotes ' ' like this mean what's inside these is a character, n... (by hanst99)
by gchatt
intro C++ operator error?
 
hello. im in an intro to C++ class and i need some help on my current assignment. im having problem with my exclusionary statement for the if/else loop controll...
[2 replies] Last: ofstreams are defined to create new files when you open files which do... (by hanst99)
overloading operator and & (not adress)
 
Hello! I've been working through the tutorial in the documentation section and I'm having some trouble wrapping my head around the overloading operator part. t...
[3 replies] Last: Well, to answer your question: Yes, this is pretty much almost correct... (by hanst99)
by cth90
Having trouble obtaining an average
 
Im trying to print out the average of some numbers that have been input. For some strange reason the average prints out the correct amount but with no decimal p...
[2 replies] Last: Thank you very much, it finally worked. (by cth90)
Error C2011 using classes
 
This is my header file #ifndef H_extPersonType #define H_extpersonType # include <iostream> # include <string> using namespace std; class extPersonT...
[9 replies] Last: Because you use std::strings. If you don't write using namespace std;... (by hanst99)
[run] Killed
 
What does it mean if my run is Killed? Does it mean I have overloaded the memory somewhere?
[5 replies] Last: Sorry, I am still new to this, I thought it was just a standard error ... (by kaytiana)
Trouble with pointers
 
I am writing a game that is heavy on pointers. I have a function that is supposed to assign pointers to nodes, like so: void setPointers(world map ){ fo...
[3 replies] Last: The thing is the '->' operator says "Take the data this pointer on the... (by Computergeek01)
Bracketing Search Exersice
 
guys, I'm working on an problem in which the computer is guessing the number the user is thinking. but the guesses are not quite working. And I think is because...
[8 replies] Last: I was able to get it working passing by & reference, but what would I ... (by miatech)
Unicode?
 
Im still studying c++.I heard about unicode (which will , hopefully, make me be able to use characters other than ascii characters.).What do you suggest me abou...
[7 replies] Last: ANSI, if you have to. Though I would still recommend you to stick to g... (by hanst99)
a question on the code of transforming string into double
 
The following code segment is claimed to be able to transfer the string input into a double output int chgeNum(string str){ //Ê®Áù½øÖÆת»»Ê®½ø...
[2 replies] Last: well, the ascii value of the character '0' is 48 and of '9' is 57, so ... (by jsmith)
Changing a .dat File
 
Hello all, I am working on an appointment planner, and I need to write a function to change an appointment. Each appointment has an ID. The user inputs the I...
[4 replies] Last: I'm certain it won't. My question is, how do I edit something in the "... (by toolnard)
*** glibc detected *** double free or corruption
 
Hi. I'm trying to test an implementation of my String class. My test code ends with a success print, but afterwards I get a glibc detected error once the test...
[4 replies] Last: Nothing looks immediately wrong, except for the fact that it looks li... (by raikoshono)
Need advice on nested while loops.
 
Hello everyone, This is my first time posting on the forums. I am a beginner in the C++ language and been having some difficulty troubleshooting my assignm...
[5 replies] Last: Line 31: leastpoints = leastpoints; (by filipe)
Solving for x
 
Hello! So I think this is a beginner question, either that or I am aiming too high for a beginner. I am writing a code, and I need for part of it to be ab...
[12 replies] Last: Have you tried implementing gaussian elimination? You'd have to transf... (by hanst99)
Implementing a stack
 
Hi I'm new here and I'm also a beginner programmer. In school I was given a assignment to create a program implementing a stack using an array... I understan...
[6 replies] Last: Thank you so much! This should be enough to get me started, thank ... (by BluieJFox)
using binary search to find a name
 
Hello, I am having troubles using binary search to find a name in an array, when compared to a user entered name. Any hints or tips would be greatly appreciate...
[4 replies] Last: thanks bud (by bigchief)
by ldm
Strange problem with templates
 
Hello Today I was faced with a problem that has not yet been overcome. To explain it I wrote a little program which produces compile-time error at line 48, a...
[6 replies] Last: My mistake, I misread the OP :/ (by filipe)
clearing the buffer with cin
 
I have a function the gets user input with cin, and i need the input to be an integer between 1 and 12, the program works fine unless the user enters more than ...
[6 replies] Last: it's been a few days since i posted, but i'm jumping back into the pro... (by kernalSeiden)
Stepwise Refinement and Top-Down Design
 
I need some help, i do not fully understand either of these topics or how to go about writing out the design for my project. Just a little help would be helpful...
[1 reply] : Not that I want to be rude or anything, but this is not a C++ question... (by hanst99)
March 2011 Pages: 1... 4344454647... 52
  Archived months: [feb2011] [apr2011]

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