Beginners - September 2008 (Page 2)

Video Games
 
Was wondering if there's a good book out there that can be recommended bout making a game from start to finish in 2-d using c++,also some good websites besides...
[2 replies] Last: Hi xstabless, I think Dark GDK is a good game-engine for you. With... (by Fawa)
Unknown error wanting to fix this
 
I am getting an error C2533 this says my class is not allowed a return type but I do not see where this is coming up with a return type. #include<iostream> ...
[1 reply] : Time::getHour() { return hour; } // ends getHour function ... (by Warnis)
Please just look....
 
Ive givin up on the idea and will try something else
[1 reply] : It doens't seem that all your variables are relevant to the execution ... (by xabnu)
Creating and writing to a file
 
Hi, I'm new here, but sure could use some help. I'm trying to create a file, enter data and write the data to a file. I know I need to "write" the data to the ...
[2 replies] Last: Going off of Bazzy's example, here is what your whole code would look ... (by CheesyBeefy)
by mrmts
parse an int?
 
Im fairly new to C and C++, having been learning for four months now. I'm curious to know if I can parse an int to check for a non-digit character entered. ...
[3 replies] Last: Have you ever tried it? 'Cause I have, and that's not what happens. ... (by helios)
by wela
Deleting in a linked list
 
Hello, I'm relatively new to C++ and I'm writing a program that is to include a delete function which will allow the user to delete any node in the linked list ...
[2 replies] Last: Wouldn't it make more sense to compare the head to the input before s... (by wela)
ifstream returns wrong output
 
Hello, I was ttying to write a letter into a file and to extract the letter aftwerwards. The writing does work. The reading returns "-1". What is wron...
[2 replies] Last: Thank you. It works now. (by int main)
Improvements Required
 
I have made a Common Multiplier (you enter 2 numbers and the program will find the lowest common multiple). I have tried it out and it works perfectly fine but ...
[6 replies] Last: LCM, not LCD, jsmith. (by QWERTYman)
Sum of all even numbers?
 
Hey I have been in C+ for two weeks now and my teacher asked this question Write a program that calculates and prints the sum of all even numbers between 10 ...
[11 replies] Last: You must not have tried my code. Or don't know what convaluted means. ... (by xabnu)
'A' || 'a' problem.
 
How we can check if a variable (example "choice") is 'A' or 'a', but without using ||?
[5 replies] Last: Thanks both! (Sorry for not saying that earlier...) (by HeatMan)
Calendar/Days of the Week Program
 
I have this assignment, in which I'm supposed to output the hottest and coldest days of the year based on ranged random numbers. The output needs to look like t...
[6 replies] Last: haha. Yeah I knew that, but I just wanted to work out the logic and se... (by sundaysad)
Question about an error I am getting.
 
>I am very new using C++ and I am doing my first programs but in this case I am running the following program with problems: > >Prompt for user to enter the ...
[3 replies] Last: This is th enew result I am getting m = 2.62964e+291. This is the ... (by mestrada)
reading files into arrays?
 
Hi I am having some trouble reading my file into an array. I have a file that has multiple lines of chars the first line is a test key the subsequent lines are...
[1 reply] : Well, one thing you need is to know when you hit the end-of-line, give... (by xabnu)
Erasing Text
 
Is it possible to erase text in the C++ console? For Example: [code=cpp] #include "stdafx.h" #include <iostream> using namespace std; int main() ...
[7 replies] Last: Wow, if you want to split hairs, at least qualify yourself: A C++ ... (by Duthomhas)
by erico
Don't know what's wrong with the code
 
Here's the problem. I've written a code but can't correct the errors in it.Here's the question and the code: "Write a C++ function named quadratic that given...
[10 replies] Last: Wow, that makes me wonder why my compilers gave me 0 grief over that.. (by Philsonpot)
by Danik
Initialising a vector of object pointers
 
Hi, I have a problem when I try to make a vector with pointers to objects of my class Ball. The line that generates an error is the fourth line below. Ba...
[4 replies] Last: I see, thanks! (by Danik)
Sudoku game output problem
 
Hi! I'm having problems creating a sudoku puzzle. I'm using functions srand(); and rand(); to generate numbers from 1 to 9. I also constructed a whole lot o...
[16 replies] Last: Oh wow! Thanks a lot for the code jsmith. Don't worry, I'm not doing t... (by ponki d monkey)
Calculating Day of the Week
 
EDIT: Gah... sorry, just found the fmod function... sorry about the thread. Could a mod please delete this? Okay, sorry about the massive amount of thr...
[1 reply] : Or you could just simply use the modulo operator (%)... (by ponki d monkey)
Obtaining a Compiler
 
You can go ahead a call me a noob, but I don't know how to find out if I have a compiler on my computer or not, and if I don't where I can download a free one. ...
[5 replies] Last: Go to this website. Check out their MinGW compiler. I love it so much.... (by LacViet)
Changing Text Color
 
I've heard in the past that System("anything"); is "bad, slow, and OS dependant". Now I've heard of only one function that changes the color of the text in the ...
[1 reply] : I used the little search box in the upper-left corner: http://www.cpl... (by Duthomhas)
September 2008 Pages: 1234... 16
  Archived months: [aug2008] [oct2008]

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