Beginners - October 2008 (Page 11)

Returning False?
 
Well, I in my PlayGame() function, if you guess the correct number, the bool variable, 'Victory' is set to true. But even though it IS being set to true, my if ...
[3 replies] Last: I would just move it to below where they guess, so it is actually set ... (by firedraco)
Confused About Sentinal Controlled Loop Problem
 
I'm currently working on a program for my computer science class. We need to read several lines containing integers from a file and output to another file. ...
[4 replies] Last: Thanks for the help. I was finally able to make it work with the code... (by rbot10000)
Don't understand what keeps me from running it correctly.
 
Hello, I'm new to C++ this year and decided I should take the challenge. Before you see the code let me explain to you what I'm to be doing. I have to create...
[1 reply] : Try this: #include <iostream.h> using namespace std; int main ... (by CheesyBeefy)
Header files / libraries with Visual C++ 2008
 
Just started studying C++. 1. Reading a book "You can Program in C++" by Francis Glassborow. 2. Installed Microsoft Visual Studio 2008 Express Edition (C++)...
[7 replies] Last: Well, this is strange to me. Have not solved this case yet. The co... (by TapaniS)
by INK
How to read from a file
 
Hi How can I ask the program i'm using (visual c++) to read the file that I have stored I wrote it this way #include <iostream> #include <fstream> ...
[3 replies] Last: First thing u should do is give space after namespace and use buzzy ex... (by grey127)
by Rob B
Output to paralell port.
 
I've decided to have a go at C/C++ programming after many years of not doing so. I have no major issues so far excet being able to output the data to anywhere e...
[1 reply] : http://www.mattjustice.com/parport/par_vc.html http://en.allexperts... (by Zaita)
memory allocation problem
 
I am writing a program that requires some very large vectors. I keep getting bad allocation exceptions, despite the fact that there is plenty of memory availab...
[1 reply] : Store pointers in your vector instead of variables. This should reduce... (by Zaita)
by Tripic
if else if statment not working
 
ok below is the source to a console app i am playing with while trying to learn c++. I am trying to use a if else if statment to determine the cout after the ap...
[6 replies] Last: Change "c" to 'c' to indicate that it's a single character and not a c... (by Warnis)
by Hazer
Search for files
 
How can i search for a file and use its adress? (find file and write text to it) Thanks for help!
[1 reply] : Do a google search for file i/o in c++ (by Poke386)
by ridlas
Hello
 
Hi guys im new here, just wanted to start things off by saying hELLO i have to wright a C++ prg. in which I ask the user to input his Employee ID (which is ...
[1 reply] : Being small positive numbers, I suggest using an unsigned short ... (by Bazzy)
by aks
std::bad_alloc
 
hi all, i am using a matrix (P) (of size n^2) whose each entry is a structure (pmNODE) of size 10 bytes. so for a input of n=15000, the matrix P has size n^2...
[2 replies] Last: Also, are you using a 64-bit OS? 32-bit OSes will tend to limit the p... (by jsmith)
Number Game
 
Alright I have been working on this game for like a week or 2 now, but I am having some trouble towards the end. I need it for c++ work, but I have gotten so fa...
[5 replies] Last: HeatMan, I appreciate you citing references, though I answered your qu... (by jsmith)
by umen
convert Recursion to linear can it be done ?
 
Hello all i have legacy code that preform Recursion calling this Recursion is very heavy and long and sometimes it gives me stack overflow exceptions i wande...
[1 reply] : In general yes, a recursive algorithm can be rewritten as a non-recurs... (by Faldrax)
by Evote
Strange function problem!!
 
#include <iostream> #include <windows.h> using namespace std; void about(){ cout<<"Expence-List 14/10/2008:"<<endl <<"Brought to you by www.**...
[6 replies] Last: I think I would drop the function pointers idea, and go with a switch ... (by FireStarter James)
Where can I find missing header files
 
I have been trying to gather the header files my compiler seems to be missing without much luck. Can yall give me some tips on how to run a successful google se...
[5 replies] Last: Ok then, good luck with whatever you are doing :) (by firedraco)
std::bad_alloc
 
Hi there, I'm getting a strange error with a program I wrote to do some math. The program runs correctly for some short computations. But when it attempts ...
[12 replies] Last: ok. done !! (by aks)
C++ code generators
 
Are there any good, free, C++ code generators out there? Being very new to C++, I have looked at the source code of some programs at planetsourcecode.com th...
[7 replies] Last: Thank you Bazzy. That seems to be exactly what I was looking for. Now ... (by Cerburos)
Replacing a string with variable sizes
 
Hi, I am working on a program for school where a user enters a search term (ie. abcde) and also a sentence to find the string in. I am almost done it but a...
[2 replies] Last: Ahh yea. I was going to answer this earlier. Find the location of t... (by Zaita)
Compiler error LNK1104
 
What does this mean, or where can I find this out?
[3 replies] Last: Do a search on MSDN for "error LNK1104", if you can't understand it, g... (by firedraco)
double exclamation point
 
Hey!! I am curently studying this code. I could not understand/find what the double exclamation point means! could anyone help me please?! Has it anything t...
[2 replies] Last: I got it :) Thank you very much jsmith!!! (by Daniel A)
October 2008 Pages: 1... 910111213... 20
  Archived months: [sep2008] [nov2008]

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