Beginners - January 2009 (Page 9)

Pointer confusion when returning from method
 
I have commented the following class with my questions. Basically, I'm just trying to figure out the differences between them. #ifndef LISTNODE_H_ #define ...
[3 replies] Last: Ok, the snippet above seems to be working. #ifndef LISTNODE_H_ ... (by Sammie22)
DISPLAYING THE RESULTS OF A PROGRAM
 
Hello and good day. I am having a little problem Here is how it goes. Created and compiled a simple program in Dev C++. This program would display New pa...
[4 replies] Last: Read Console Closing Down http://www.cplusplus.com/forum/beginner/19... (by closed account z05DSL3A)
Ummm... Recursion, what am I missing
 
Here is the function: int Factorials::recursion(int userNumber){ return userNumber != 0 ? userNumber * recursion(userNumber - 1) : 1; } All i get a...
[6 replies] Last: Awesome... (by switcher)
by Wolf
Bit sequence !
 
hi everybody I'm wondering how can i work out in "C" the bit sequence and the values used to store an integer. "using the easiest way" for example If t...
[3 replies] Last: google "displaying bit patterns in c" (by closed account z05DSL3A)
by Rush
Visual C++ Problem (1,2)
 
Hello, I've recently started to learn C++ and I've come across an error when trying to run my programs, I am using Microsoft Visual C++ 2008, whenever I try to ...
[28 replies] Last: I guess what I am trying to say ( with no insult intended ) is that; i... (by closed account z05DSL3A)
Subway system scenario
 
Hey there guys, This scenario I am working with is supposed to be a subway system. The program is supposed to count how many ways a person can go from Station ...
[14 replies] Last: Now I can get it to compile alright, but the answers are much too low.... (by dontpullajeff)
why doesnt this work
 
#include <iostream> using namespace std; int main () { int x=0; int y=10; do { cout<<"5"; }while((x>1)||(y>1)); } it works if i put while(...
[1 reply] : You're never changing the values of x or y. || (OR, also known as "in... (by helios)
Is this the correct expression?
 
I have to write a C expression that yields 1 for the condition described and 0 for otherwise. X is an integer . Any bit of x equals 1 is !!X right?
[6 replies] Last: ok, not sure if matters but I was supposed use bit level & logical op... (by uscuba2)
error LNK2001: unresolved external symbol
 
My head is bleeding but I can't figure it out... main.cpp #include "cs187_week1.h" int main(){ int menuOption = 0; while (menuOption !=5){ whil...
[2 replies] Last: Me and my brain thank you... it works perfectly now. (by switcher)
cannot output text properly
 
#include <iostream> #include <conio> #include <fstream> #include <stdlib.h> double openAccount(); void updateAccount(double bal); int main() { int mon...
[1 reply] : You're being somewhat schizophrenic with your variables: Your functio... (by helios)
by masiht
USe of C++ in engineering
 
Can any one tell me how can we use C++ in engineering ?
[6 replies] Last: There are most definitely stupid questions. Asking an open ended q... (by Zaita)
by masiht
question about C++
 
Why do we compile the program first before running it ? what is namespace std and why do we use it ?
[4 replies] Last: Clearly you cannot use the search functionality of this site. http:... (by Zaita)
string with fstream & designated directory
 
hi im haveing a bit of a dilema. I am using this to create a txt file in a cetain place. ofstream file("C:\\Documents and Settings\\All Users\\Documents\\f...
[5 replies] Last: Errr yea, that's correct. I was in a hurry :P (by Zaita)
keystroke c++ that doesnt pause the program
 
so like ch key=getch(); is something i dont want i have a program that is in an infinite loop but if i press 1 it would do one thing if i dont press anything...
[6 replies] Last: Put 0x infront of the number to make it a hex. (by Zaita)
Visual C++ 2008 problem
 
OK I'm just starting to learn C++ and I was told to use Visual C++ for my compiler. So I started with the first program, but I get these errors every time I run...
[1 reply] : add #include "stdafx.h" to the top of your code, or turn off use pre... (by closed account z05DSL3A)
by Wind
cin non integer values to integers
 
Hi everyone, I recently started programming with C++ and I created a program that acts as a simple calculator that does basic arithmetic. The program works fine...
[3 replies] Last: Thanks for you help that did it! (by Wind)
C++ IDE for large projects
 
Hi Currently I used Turbo editor for c++ development. In company level (for commercial projects),which IDE they are using ? Thanks in advance Varathan
[2 replies] Last: http://www.cplusplus.com/forum/lounge/4953/ (by Zaita)
by Tomn
Eclipse Problem
 
I couldn't find my problem so here goes: I downloaded Eclipse plus the MinGW files but when I type the following code, it doesn't work and gives errors sayin...
[11 replies] Last: Hey, it worked out :) So to anyone who was wondering, it worked aft... (by Tomn)
by mzd72
Refrence
 
Hello I can't understand functon refrences can somebody say difrences btween this code #include "stdafx.h" #include <iostream> using namespace std; in...
[7 replies] Last: Thanks alot (by mzd72)
Starting Borlan Compiler
 
I have just downloaded the compiler, I created the two files it said to create, and I have also added the BCC55 file to the place they said to add it. I have ne...
[1 reply] : BCC 5.5 is old, and only comes with the command-line tools. It does no... (by Duthomhas)
January 2009 Pages: 1... 7891011... 16
  Archived months: [dec2008] [feb2009]

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