Beginners - April 2008 (Page 16)

Freezing at Constructor
 
Hello, I am working on a school assignment to make a 20 Questions-style guessing game. The program stores the information in a tree with question nodes and name...
[1 reply] : Well, I've been trying to solve the problem and I'm now fairly certain... (by ElkFlipper)
by rr23
HELP WITH REPEATED ADDITION
 
Write a program to compute the volume of a cylinder by repeated addition NOTE: you are not allowed to use multiplication, division or any predefined functions...
[3 replies] Last: #include <iostream> using namespace std; void main() { double ... (by rr23)
by Deimos
Fist Post, multiple questions ;)
 
Hello everyone, I am a 15 year old trying to lean programing by myself, I have read some books and online tutorials and I have several questions for you experi...
[3 replies] Last: Sometimes you need to help the compiler specify the order of operation... (by psault)
color
 
how do you go about changing the color of the background and/or the output text?
[1 reply] : i think i figured it out, but i was wondering if there is a way to see... (by mxjabber)
by sladeb
string class object
 
can anyone help me "write a function to count the numbeer of lines entered using a string class object. consider a line as any sequence of characters followed b...
[1 reply] : Actuallty, numberical code 13 is for a carriage return, #10 is a line ... (by psault)
by Kvakac
exiting a loop by pressing a key
 
Hello I have a do-while loop that compares some variables stored in a file with new data captured from a device. What I want to do, is when a certain (or any...
[2 replies] Last: Thanks a lot, that is exactly what I needed! I'm using MSVC++ by the ... (by Kvakac)
loops...?
 
i am trying to program a neural network using back propigation. but when i enter the weights, and if they are not between 1 and -1 then an error message appear...
[1 reply] : Use a while loop. while ((-1 < WA > 1) && (-1 < WB > 1) ) { co... (by psault)
I'm Lost...
 
I am trying to create a file and then have the file come up in Word. #include <Windows.h> #include <stdio.h> #include <string> #include <fstream> #inclu...
[1 reply] : Try to use this commands: int main() { FILE*f1=fopen("c:\\FILE.d... (by EWu)
by cr3
dynamic memory - need for clarification
 
I'm confused. Tutorial says the difference between 'normal' array and 'assigning dynamic memory to a pointer' is that normal array has to have declared size, wh...
[2 replies] Last: I'm using linux's c++ compiler (gcc, however the command is 'c++')... ... (by cr3)
2d graphics?
 
I am currently using microsoft MVSE (Microsoft visual studio express 2005). I seek to do 2d graphics but I cannot find any information on it. I have two books o...
[5 replies] Last: If you want to do 2d graphics you should use Borland C++. This is an o... (by EWu)
pyramid number
 
how to make a pyramid number
[5 replies] Last: I figured you might wanted to do something like the following. ... (by peterhansen)
Re-running program! displayed unreadable charactes..
 
hi all guru, here, my problem is re-running the program, the vector attribute was retrieved and displayed unreadable characters.. WHY?? Below is my follo...
[no replies]
Help me please!
 
Hello everybody! I am trying to write UMS(University Management System). but i can't create header files in truely! How can i create them plz. help me it is ver...
[no replies]
by sladeb
string class object
 
i need to know how to "write a function to count the number of lines entered using a string class object. consider a line as any sequence of characters followed...
[no replies]
getCharacter()
 
Let me write the question out the way it is in the book. That may explain more what I am looking for: Write the C++ code for a function that prompts the us...
[5 replies] Last: Anywhere in your program right before you call your getCharacter funct... (by psault)
recognition
 
i was wondering if there was a way to make it so that the program saves a string to a certain value, given by a variable i.e. str-a and then after the use...
[2 replies] Last: ok, that makes sense. but is there a way to make it so that an array o... (by mxjabber)
need your help!!
 
QUESTION You may choose a file format. You are required to read the header of the file and display all the information about the file. 1. Give an overview...
[no replies]
Concatenate a single char to a string?
 
Hi - I'm a newbie C programmer. Why doesn't this work and how do I fix it? It give an error on strcpy(sName, sTemp );: char sName = {0}; char sTemp = {...
[3 replies] Last: Try this code: int pos; for (int i=0;i<128;i++) { if (sTemp !=... (by psault)
ending loop
 
i am trying to make so when the user types in the letter 's' the program starts over from the top of the first loop #include <iostream> using namespace...
[4 replies] Last: thanks i got it (by gregv21)
gameprogramming
 
ok. i obviosly wanna program games and i wanna know where i can learn how to program 2d stuff. i love this site 'cause it has the best tutorial( although i don'...
[2 replies] Last: learn SDL: http://www.libsdl.org/ tutorial: http://lazyfoo.net/SD... (by cr3)
April 2008 Pages: 1... 1415161718
  Archived months: [mar2008] [may2008]

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