Beginners - March 2008

for loops and arrays
 
i am probably doing something wrong with the for loop and i don't fully understand arrays but i basically want the program to count resistors in parallel an...
[2 replies] Last: when i put resistor[i-1] = 1 / resistor[i-1]; it says "invalid... (by gregv21)
beginner
 
i don't know how the programming start in the c++, how to begin with thnx
[1 reply] : The tutorials in the documentation section of this very site would be ... (by peterhansen)
The while loop
 
Hi I want to input a list of day temperatures and count the number days with temperature above 20 degrees. I want this program display the result number of d...
[2 replies] Last: thanx roflzombie you the star, i think the program is not giving a ... (by velaphi)
NULL==0?
 
NULL==0? well the quoestion is quite obvious.
[2 replies] Last: http://www.cplusplus.com/reference/clibrary/cstring/NULL.html (by vince1027)
Not sure what's happening w/ fstream.
 
As far as I know, when you invoke ifstream/fstream::open, specifically in ios::in mode, and the file you want doesn't exist, it's supposed to .fail(), right? Th...
[6 replies] Last: I do not know what's inside the "fstream.h" that Microsoft is using so... (by vince1027)
by optima
application file
 
Hi I did a simple win32 program with visual studio 2008 and everything works good. But how do I convert the project to application and use it on other compute...
[5 replies] Last: @Grey Wolf thanks for cerrecting (by guruplus)
by Rope
Convert int to string without itoa?
 
Hi all, I'm searching for a way to convert an int into a string without the use of itoa. I can't use itoa because I run the code on a unix machine and it on...
[1 reply] : #include <iostream> #include <sstream> int main() { int numb... (by ropez)
The if Statement
 
Hi i want to swop the values of a and b if a < b: if (a < b) { a = b; b = a; }
[5 replies] Last: thanx again.. (by velaphi)
by Deej
Debugging options
 
Hi, Anyone know how to stop stepping into the standard library source files in VS2008 while debugging? It's really annoying to jump into ostream and go throu...
[no replies]
HELP in C++, simple console program
 
Hello everyone, im new to programming and i need a little help. I have to create a console program which shows a tennis scoreboard and functions as it would li...
[2 replies] Last: Thanks a lot "yang", I really didnt expect such a quick reply. (or one... (by Need Help)
by nizbit
input from file to string array
 
I have this file: 4 2WE34 12 1 2 3 E324R 1 1 1 1 5QAE2 2 5 4 4 QWE34 0 0 0 0 The first entry is how many types of units. The f...
[no replies]
by Senne
assertion failure
 
Hy, I have an assigment for my programming class to program a diffusion problem. i have completed the programming and when i compile it Visual Studio gives ...
[1 reply] : The most likely cause of this error is indexing the vector beyond the ... (by closed account z05DSL3A)
by nizbit
File input and arrays
 
deleted post
[1 reply] : deleted post (by nizbit)
by Fasine
Array Declaration.
 
Greetings! I'm currently writing a collision detection algorithm for my game and have hit a snag. I was previously using a 500x500 array of bool's to represent ...
[1 reply] : By doing some step by step dynamic initialization, I think your proble... (by vince1027)
by umen
what does it means if function or struct that declares outside the class
 
Hello all i notice that there something like declaring function outside of class what does it means ? for example : this is the header void * getSom...
[1 reply] : It's a C++ convention for class implementation. Class declarations ... (by vince1027)
Multiple Multiply symbols?
 
Hi I'm quite new to c++ and I have run into a problem. I tried compiling this program and got a strange error I cannot fix. I know that the documentation says t...
[2 replies] Last: Oh my gosh thank you I don't know how I missed that. I make that error... (by TheHunter)
Help! Pass Value & Reference
 
I need to create a program that is a table to convert between centigrade and fahrenheit temperatures. My solution must must utilize functions to perform the con...
[2 replies] Last: Note that 5/9 is 0 in the language of C and C++. Since both operands ... (by Ganon11)
help please
 
#include <iostream> #include <cmath> #include <ctype.h> using namespace std; int arr , Array ; bool swp; int main(){ // User entered numbers ...
[no replies]
Visual C++ output window
 
Hi, i am really really new to C++, i'm using Visual C++ 2008 express edition. I'm trying to print a word on screen. its very simple program, but i can't see the...
[2 replies] Last: thanks :) (by doleczki)
by Rope
Output file is not the same as input file
 
Hi all, I have a school assignment for which I have to create a Lexical Analyzer in C++. Up until now I've had only a few small problems. However, I've co...
[no replies]
March 2008 Pages: 123... 15
  Archived months: [feb2008] [apr2008]

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