Beginners - April 2009 (Page 15)

for loop problem
 
Hi all, I am new for this forum. I have a question about a for loop in c language(sorry it is not a c++ question): I try to get 5 characters one by one from...
[7 replies] Last: Sigh. http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=10528... (by Duthomhas)
Rand() doesn't really work?
 
The rand() function is always returning 41 for me. This obviously makes the function pointless. Any ideas as to why this is happening? #include <iostream> ...
[7 replies] Last: #include <stdio.h> #include <stdlib.h> #include <time.h> Tr... (by MSRK)
Datamembers and Objcet doubt
 
Hi All, In a class when we will decalre datamembers(variables,methods) poiner type and creation of object as Dynamically when i am writing a class ? on what ba...
[no replies]
Trouble compiling code from book
 
So i bought this book, "Programming Game AI by Example". Read about the first 2-3 chapters then finally had a chance to sit down and play with the source code. ...
[2 replies] Last: Okay, i posted on gamedev.net as well and someone said that using the ... (by mikeb570)
C++ Test Project
 
Hi I am new to this forum and relatively new to C++. I have read about 2 books on it already and I understand stuff like loops, when to use for loop and when to...
[15 replies] Last: Well, you can come tomorrow to my Data Structure Course and take the 8... (by PSPMAN90)
"atoi" error?!?!
 
for (int count = 0; count < length; count++) { if (isdigit(expression )) { //temp = atoi(expression ); mystack.push(...
[2 replies] Last: Great help! Thanks a lot!! =P (by imadude1990)
Short, hopefully easy question... Complex numbers
 
bottom... // Lab 2: Complex.h #ifndef COMPLEX_H #define COMPLEX_H #include <iostream> using std::ostream; using std::istream; class Complex { ...
[3 replies] Last: So this... if (cin.good())....should work? (by harshkey)
files
 
#include <cstdlib> #include <iostream> #include <fstream> #include <string> using namespace std; void inscreverAluno() { string aluno; cout ...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by eker676)
resolutions
 
Postem aqui a resolução dos exercicios do teste.
[1 reply] : Escribe en ingles, por favor. We are not going to give code for prog... (by eker676)
I can't open a file
 
#include <iostream> #include <fstream> #include <string> using namespace std; int area(int alt, int larg){ return alt*larg; } ...
[1 reply] : try to get rid of all that white space and use code /code tags please ... (by Mashed Pwntato)
inheritance and friends
 
So I have a parent class called window, and a child class called border_window. Now I know that friends aren't inherited but I was told that you can call the p...
[1 reply] : window& str << win; 1) you're trying to cast to window , not W... (by Disch)
Concatenating files (juntar ficheiros)
 
#include <iostream> //header files needed for the function and vector #include <string> #include <fstream> using namespace std; int main() // declaration ...
[1 reply] : Remember, each file can consist of any number of lines. So you must re... (by Duthomhas)
by Bv202
Case - 2 things do the same
 
Hi, I have a case statement, but two of the options do the same. Like this: case 'n': *code* case 'N': *code* It can be coded like that, but the co...
[4 replies] Last: maybe trying taking the users input and then altering it to a way you ... (by mcleano)
sardine
 
BAIIII
[no replies]
multiple output files
 
Hi all, imagine that you have a file (for instance .txt) where there is a line with a date. Below that line there's information for that day. Then, again ano...
[5 replies] Last: First of all. I'm Sorry for the hard words and all. I was tired and an... (by Skainstein)
stuff
 
axo que a resoluçao esta no post anterior...
[2 replies] Last: #include <iostream> #include <fstream> #include <string> #include <... (by tonepreto)
by Brutal
runtime error around a[] need assistance
 
nvm I figured it out.
[no replies]
by GANTOR
math program suggestions
 
Hey, this is my first post; as I am quite new to the website. Anyway, I just wrote this program and decided to see if anybody had any suggestions or thoughts on...
[2 replies] Last: Just a quick tip for you and others new to C++ - it's very helpful for... (by epiqu1n)
Problem with computer??
 
I am trying to run a C++ program using my note pad and saving it as .exe this is what it says: "The version of this file is not compatible withthe version o...
[5 replies] Last: Look in short, the way C++ works is that you write a program wherever ... (by epiqu1n)
rectangle files
 
#include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; void imprimirRec(int alt, int larg) {...
[2 replies] Last: Also, what is the desired outcome of the program? (by epiqu1n)
April 2009 Pages: 1... 1314151617... 28
  Archived months: [mar2009] [may2009]

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