Beginners - September 2009 (Page 17)

Problem with repeating print commands.
 
Hey I'm working on this Roguelike game tutorial. http://cgempire.com/forum/tutorials-101/terror-ascii-dungeon-c-tutorial-codephobes-part-4-a-1556.html T...
[1 reply] : I'd need to see your code to help with this. (by firedraco)
Simple debug Sinus and Cosinus
 
This is my code for a Program that finds the Sinus and Cosinus functions // programa de calculo de funciones seno y coseno: #include<iostream> using na...
[5 replies] Last: I've made some changes in the program, but for some reason it doesn't ... (by allphex)
interface and implementation
 
why should i separate the interface from the implementation? does any body have any good material i can read about this? thanks for any help.
[4 replies] Last: oh so that is not a programming question? I thought it was basic prog... (by Rihtnow)
by rpool
new comer VC
 
I knowledge about Visual Basic 6, Simple: Option Explicit Private Sub Command1_Click() MsgBox Time End Sub VB6, is simple Windows Object. ...
[3 replies] Last: VC 2008 need .NET ? No. Will use PII computer to Runing it. Too S... (by helios)
by NGen
Template Problem
 
template < typename T, int Size = 0 > void FileWriteVar ( ofstream* File, T Value ) NOW SOLVE IT. ... Not really. I never really practiced much with tem...
[6 replies] Last: I had a reason before... I can't remember what it was. -_-' Good point... (by NGen)
Array and Loop trouble
 
Hola! I am having a little difficulty with this problem: using a loop print out the sum of five integers, provided by the user, greater than 0 and less than 15....
[2 replies] Last: *Smack forehead* Thanks helios that solved everything. (by primateboywonder)
by gong
iterators problem
 
hi I am trying to do a simple function using iterators. you have to enter values in the command line and it should print in the screen the smallest one. ...
[6 replies] Last: @R0mai and firedraco Didn't think of that. Also got the wrong opera... (by Chewbob)
stream types
 
Say I have an int and I want to write it to a text file: theFile.open("numstrng.txt", ios::out); int i = 23; theFile << i << endl; Is i automaticall...
[2 replies] Last: kbw: thanks. (by paoloricardo)
by hannes
booleans
 
I have a problem about booleans. if 'begin' and 'eind' are true, then checker must be true too. But it isn't. what is the problem? 'aantalp' is a integer var...
[4 replies] Last: i got it, thanks! I think i'm going to remove the else-statement, beca... (by hannes)
by gong
sorting problem
 
hi you have to enter values in the command line and it should print in the screen the highest one. I has trying to sort a vector and making a return of th...
[1 reply] : return valores ; Should be return valores.back(); Sorting to get t... (by helios)
by joshky
Stack vs other STL
 
Why would I want to use a stack when the containers themselves are more versatile? In fact, it seems to me that if I use a stack I am losing some of the functi...
[3 replies] Last: All else equal, I think it is a matter of personal preference. (by jsmith)
Compiler: undefined reference
 
Hi, I've a socket example that I'm trying to compile, but I get the following error: Compiler: Default compiler Building Makefile: "D:\cpp_workspace\M...
[1 reply] : Probably your compiler can't find the winsock library. If you're using... (by Null)
Just isn't working.
 
For some reason everytime I run the program and type any other option besides "1", it just runs option "1" anyways. =/ Can anyone help me out? Now it was a ...
[2 replies] Last: xD omg i can't believe that slipped passed me, one of the easiest thin... (by DBDWarrior)
by garob
CodeBlocks won't compile
 
CodeBlocks keeps telling me this "open_CMD - Debug" uses an invalid compiler. Skipping... Nothing to be done. when I try to compile a file what should ...
[1 reply] : Did you set the compiler properly? (by Bazzy)
Infinity loop, dunno why
 
hello! idk why i am getting an infinity loop when i try to get a char to 'y' idk just look int yesorno; cout<<"Go to see???\n(Y/N)" ; cin>> yesorno; ...
[3 replies] Last: #include <iostream> #include <string> #include <locale> using ... (by closed account z05DSL3A)
member funtion to add 2 objects, without overloading
 
Hi, I have a project that I am struggling with – I have a class Fraction - Constructor = Fraction(int numerator, int denominator) – and I need to create a ...
[2 replies] Last: Thank you so much - You are an Angel! (by FireNyx)
Creating a 2-dimensional array
 
Hi, I would like to create a 2-dimensional array. Searched the web and found some on creating using certain functions and equations (like y*x) but mine is a bit...
[no replies]
Class constructor error check / prohibit value problem
 
Hi, I am new to programming & I was wondering if any one could help me. I have a class that deals with fractions (entered as two int's). I am having trouble wit...
[2 replies] Last: Thank you for your help - I will try it out (by FireNyx)
can you please
 
can you help me please on how to use the squared in calculating the volume of a cone?? i am a beginner using C++... please do help me... thanks for all the help...
[4 replies] Last: #include <iostream> using namespace std; int main() { double... (by Chewbob)
verifying that input is hex
 
I need a way to make sure that input (4 digits) is in hex format. As long as you input hex, everything works fine, but if you enter a q or s or something it blo...
[3 replies] Last: It's probably the same problem as if you cin >> an int and you input c... (by firedraco)
September 2009 Pages: 1... 1516171819... 23
  Archived months: [aug2009] [oct2009]

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