Beginners - September 2008 (Page 12)

by Thomas
Simple Calculator
 
Hello, I'm trying to make a simple calculator using C++ as I have just started to learn it. I get and error once it hits the case command do you know whats wron...
[2 replies] Last: Ok thanks for your help. (by Thomas)
by pyro
Rules for soundex
 
Hello, I am having some difficulty making soundex rules work in my code. I am able to get the first character and some of the following digits but am having d...
[5 replies] Last: Take lines 9 and 10 and stick them inside main() (after line 13). Then... (by Duthomhas)
[ASK]C++ beginner
 
hello there... 1. why (a=1) != (a==1)?? what is the difference of (=) with (==)? 2. what is header files? and what is <iostream> mean?what for is that? -...
[3 replies] Last: - thank you, now I understand. (My english is bad to, sorry) n thank... (by maeninkompor)
Looking for an idea
 
need an idea for a pretty basic program to code so I CAN LEARN MORE :) s
[2 replies] Last: If you know about classes and iostreams its good to make a comman... (by Umz)
Compiling a simple C++ code
 
Hi All, I am trying to compile a C++ code and it gives me the below error. /usr/ccs/bin/ld: Unexpected end of file in test.cpp The code test.cpp jus...
[15 replies] Last: I am using Unix.. (by Poornima)
by RDH37
Looking for a tutorial
 
Im looking for a tutorial on reading a txt file into a vector. If someone could give me a link or post an example here that would be great.
[5 replies] Last: Its been a couple days but I thought id post that i solved my problem ... (by RDH37)
Problem in calculator program
 
I have been programming for a week, and I am working on a calculator program, and the compiler always gives me a 'parse error'. //The Math Processor; will d...
[3 replies] Last: Hm? What compiler? (by helios)
Input/Output conversion, seeking advice.
 
Hello all, first time on here, and I'm in a bit of a dilemma. The code underneath this is code from a book that I am supposed to modify for a class. The purpo...
[10 replies] Last: I couldn't tell you, that's what the book had, and that's what I copie... (by Confuzed)
by Umz
Program output to text file fails
 
The program takes 2 strings, 1 short and a integer and outputs the data into a text file in a set format. I have another program that reads in the files which w...
[5 replies] Last: XD Uncountable. (by helios)
Manual malloc
 
I tried to code malloc function manually but it didn't work.Suppose I want to allocate 3 int (means 12 byte) and than print them. First integer is correct but r...
[1 reply] : You can't write a malloc() just like that. malloc() is a complex, low ... (by helios)
Compiling problem
 
Hi all, I'm new to the C++ programming. I was experimenting with a code provided by a book where I am supposed to show on my screen a table with numbers from 0...
[6 replies] Last: I understand now. Thanks for helping me out with this :) (by CrazyStorm)
by duney
Z Buffering problems :-(
 
Hi everyone, wondering if you would please be able to help me on a few things, I've got a Zbuffering assignment which I'm almost there on, but a few things a...
[6 replies] Last: Thanks very much for this, I'll give it a go! (by duney)
How could I convert from a class to fundamental data types?
 
Just like this: class myClass{ /* something here */ }; /////////////////// myClass myObj; int other = (int)myObj;
[1 reply] : You need to provide a function to do it. explicit class myCla... (by Duthomhas)
off-line tutorial??
 
I really love the tutorial on this site, and it's really helped me alot. There's just one problem. i can only get in the internet at my work as there is no inte...
[7 replies] Last: thanks toshiro (hope that's right, the names are a little blurred), th... (by Cambrion74)
Using setprecision w/ cprintf
 
Hi! I'm a c++ student and I'm using Borland 5.02 as my compiler. How can I use setprecision with cprintf? I want to set the number of digits after the decimal p...
[4 replies] Last: Oh it's okay. You've been a great help! The first one already worked a... (by ponki d monkey)
by pyro
Issue with soundex project not returning all results
 
Hello, I am a C++ programming student in need of help with an issue I am having with my code. When the the program runs in the console, I get the correct outp...
[6 replies] Last: Use the LUT with the provided function. For example ... int mai... (by Duthomhas)
by idono
RPG battle system
 
im tring to get the combat system the way i want it the goblin is to attack randomly but when he attacks its always the same 2 numbers for attack how do i make ...
[7 replies] Last: Thanks for posting this code, it inspired me to try to do something si... (by unknown)
by tqa
Read from text file
 
#include <list> #include <vector> #include <queue> #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; ...
[10 replies] Last: fInally I got the output! i just replace the .doc file to .txt file... (by tqa)
Turning odd to even....
 
I am having trouble finding out a way to make odd numbers become even. I am wondering if there is some kind of absolute value button or something like that. ...
[2 replies] Last: OH! yea i see where i confused you. My fault. i should have noticed th... (by Spinage209)
C++ Input File Skips Text Spaces
 
I have to make a labyrinth game using text. I input the file containing the map from an input file and put it in a 2d array but when i try to display it somethi...
[2 replies] Last: Read the file as binary to read data. Read it into an array then copy ... (by helios)
September 2008 Pages: 1... 1011121314... 16
  Archived months: [aug2008] [oct2008]

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