Beginners - November 2011 (Page 14)

by dr8086
Defining Environment Variables
 
Hello all I'm using Visual C++ 2010 Express on windows. I'm quite new to C++, and I'm writing a program using a third party library. In the documentation it ...
[2 replies] Last: Thanks! That's all I needed (by dr8086)
Problem with includes
 
I have a simple program, but I can't get the classes to recognize each other. I have a Point class: Point.h #include <string> using namespace std; ...
[4 replies] Last: Thanks, that was the trick! (by danelav)
QUESTION: Convert numbers to words
 
Create a program that prompts the user to enter a number (0-100000 only) then output the number in words. Enter a number: 10012 it outputs " ten thousand t...
[3 replies] Last: I see a basic problem in your logic... When you do "num%10" for the on... (by Caprico)
ctime/libraries/about the program
 
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main () { int a,b; for(;;){ cout << "please give me your max numbe...
[1 reply] : srand is a function that seeds the random number generator. Random n... (by Moschops)
fstream
 
I've read the article on here about it many times before, but I'm still confused about it. Can someone help explain it to me? I know it has to deal with files a...
[4 replies] Last: .txt and .bin is just file extensions and doesn't tell what's in the f... (by Peter87)
Create a User loop
 
im new to the forum and this is my first class in computer science and need a counter for this program so when the user finally says no to continueing the progr...
[1 reply] : You already have a counter (namely counter)... What do you need then? ... (by Caprico)
SDL with Box2D
 
Hi everyone, I'm in the process of trying to use the Box2D physics engine with SDL for visualisation but am having trouble getting the two to talk to each other...
[no replies]
how do I tell if there is byres <4 (1,2)
 
Do I declare a variable and have it read in exactly four bytes from a file then process the data then read in the Next four bytes from the file untill the numbe...
[22 replies] Last: Thank you (by Onceler)
Illegal use of floating point error
 
Hi,below is a source code when i compile it compler gives the error "illegal use of floating point" does any one could tell me that where is error.and how to re...
[1 reply] : while(gallons |= -1.0 ) That's a bitwise OR assignment operator. Yo... (by Gaminic)
HELP IN C PROGRAM URGENT
 
Hey Guys, Am a newbie in programming i have been assignment in school to write and print out the following below; C program to solve Quadratic equation. ...
[3 replies] Last: 1) sqrt() need a prototype header file, viz. <math.h> 2) Put a check f... (by Caprico)
chips and salsa
 
Am I following this right? and can someone help me with the double array. I don't get them quite yet, i know you have to use a for loop within a for loop but th...
[6 replies] Last: I guess you're missing the array in which the names are stored... Let ... (by Caprico)
write a program to print the following pattern of numbers
 
write a program to print the following pattern of numbers 1 2 3 4 5 5 7 9 11 13 13 16 29 22 25 25 29 33 37 41
[6 replies] Last: See, firstly, figure out the logic and algorithm. What is the relation... (by Caprico)
by dpan
Trouble with an access violation involving strings and rand()
 
Hi everyone, I'm getting an access violation with a program I'm writing to generate random sentences. When I run the program, it asks me to break or continue as...
[4 replies] Last: You do know that your findlast() is a rework of the standard strlen() ... (by andywestken)
I do not see it
 
Whats wrong with this code it will allays run no matter what I put char Menu() { char ch; // store menu choice do { cout <<"\nWhat do you want to ...
[7 replies] Last: thanks everyone for the time and help (by detroit)
by Hotice
Multiple problems...
 
For some reason, there are multiple problems with my program, that is supposed to print data from a physics project (both onscreen, and to a text file). I encou...
[11 replies] Last: Thanks a ton! Good timing too! (It's Thanksgiving, get it?) This actua... (by Hotice)
Skipping input? (1,2)
 
I posted this problem in another thread, but the thread had been marked as solved for some reason. In my code, I have the user input a command, and it does stuf...
[37 replies] Last: Ehh, dont worry about it, I guess I probably should have paid more att... (by jp01cf01)
Problem with random number generator
 
Hello. I have a problem regarding a random number generator: #include <iostream> #include "time.h" #include <stdio.h> #include <stdlib.h> using namesp...
[4 replies] Last: I note also that you've made an array with 11 elements, but you only u... (by Moschops)
question about constructors
 
I am not sure what I am doing wrong but I can't get this constructor working. Can anyone look at it and point out what my mistake is? Header file: #inclu...
[6 replies] Last: Peter, I feel like an idiot. The program works properly once I cre... (by rinnamorato)
Writing a simple calculator, trouble with the decimal
 
Hi, Im new to C++, Im trying to write a calculatop app. Im using MVC++ and using the windows form designer to make the GUI, I have it working with simple int...
[1 reply] : no bother i solved this one on my own wrote a container class for the... (by maxta85)
by Bluex
[Linker error] ?
 
Hey, i've been learning from a book called Beginning C++ Programming and i've just finished chapter 6 - the tic-tac-toe game. For some unknown reason whenever i...
[2 replies] Last: That's why it's weird, because the computer AI needs to be able to edi... (by Bluex)
November 2011 Pages: 1... 1213141516... 65
  Archived months: [oct2011] [dec2011]

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