Beginners - May 2008 (Page 7)

warning: comparison between signed and unsigned integer expressions
 
Hi folks, This is my first post so I'd like to say 'Hi' to you all. :) I've arrived here because I'm having problems with my script and was wondering if y...
[2 replies] Last: Wow...I can't believe how fast that was! :) That's probably a very ... (by devilfish)
functions
 
Hi guys, i am trying to write a function that will return character 'F' if mark is 0 - 39 'E' if mark is 40 - 49 'D' if mark is 50 - 69 'C' if mark is 60 -...
[7 replies] Last: Line 29 should be: symb = funcSymb(mark); and you should have re... (by closed account z05DSL3A)
audio sound
 
I'd like to play an audio in a snake game, I knew that there are libraries to do so, but I do not know them, thanks for attention.
[2 replies] Last: thx for reply (by didodidio)
weird error
 
I'm getting this weird error in my code. Error Message: c:\documents and settings\owner\my documents\visual studio 2008\projects\helloworld win\helloworld ...
[5 replies] Last: Gamer101 wrote: Damn tutorial made an error in the code. Slaps the ... (by closed account z05DSL3A)
DirectX 9 question (1,2)
 
I'm looking to learn directx 9 - 2d for C++ only, where is the best site to go for that? not direct 8 or 7. not directx 9 3D, not directx 2d in vb or c#
[20 replies] Last: It's a very specific technique. Not something that is "C++". You are g... (by Zaita)
Shifting elements of an array?
 
I thought I read something about shifting all of the elements of an array to the left or right but I can't find anything on google. Is this possible or am I wro...
[6 replies] Last: Agreed. Any of the standard containers (vector, deque, list) allow ver... (by Duthomhas)
Enumerations and my mini-project.
 
I just have a little project that takes your name, age and a grade and than spits it back at you, but the grade is one lower than you wanted. (Ie You want an A,...
[8 replies] Last: I'll try that out, thanks. I probably made this whole practice excerci... (by Dirtrider)
by pikohn
Visual C++
 
Hello all, I've downloaded a new copy of visual C++ express last night and would like to know how to compile simple cpp files that are not part of a project....
[7 replies] Last: Yea I had figured as much :) I use Visual Studio for C# and it's the s... (by Zaita)
on writing to files
 
#include <fstream> #include <iostream> #include <string> using namespace std; void inputLine(ofstream&); void getNum(int&, string); int main() ...
[2 replies] Last: fsTxt.open("data.txt", ios_base::app); (by Zaita)
How to pass a two sided array to a function where it is altered and returned.
 
What syntax is used to pass a two sided array to a function where the array vaules are changed and returned to the calling main() program. What is the syntax...
[3 replies] Last: I'm working with a fixed array. Your answer solved my problem. Thank... (by msw0306)
by Rope
Need help with console
 
Hi all, I'm trying to read the console after I press CTRL+C. Now I've been able to catch the CTRL+C and then do some stuff. However I can't get the input. I...
[10 replies] Last: That has nothing to do with the functions. It is an OS-dependent quali... (by Duthomhas)
What's causing this?
 
The program crashes right before it closes. I have no idea what is wrong. #include <iostream> using namespace std; int main() { int Array ; ...
[3 replies] Last: No problem. It is always the simple stuff that is missed. (It took me ... (by Duthomhas)
Console Window Input
 
Hi, I was wondering if there's a way to limit the amount of characters a user can input WHILE they are typing in the console window? Cheers.
[3 replies] Last: Google "msdn console functions" and hit "I'm feeling lucky." You'll... (by Duthomhas)
function help plz
 
I have an error (big surprise) It says "conversion from 'string' to non-scalar type 'ifstream' requested." Here's my code: // Margaret Xu Programming...
[1 reply] : never mind. The program works. =P (by margaretrxu)
Error codes with class and struct
 
ok i have wrote this program and been trying to break into a class called football , but i keep getting an: error error C2228: left of '.Season' must have ...
[4 replies] Last: so would this be correct ??? also i wanted to allocate a variable for ... (by shadowfire36)
Initialze array with value
 
Hi, I have following problem, I want to pass an array to a function and at one point of the programm I want to delete the whole array, so I thought of using ...
[3 replies] Last: vector will probably be very slightly slower than a bare array, but mo... (by jsmith)
by gem925
Not understanding string array & do while loop together
 
This is a project that I currently working on this is where I am struggling trying to put this together the string array with a do..while loop! Listed below und...
[3 replies] Last: Use the fstream objects. You want the ifstream to read from, and the ... (by bnbertha)
string does not name a type
 
My code: #include <iostream> #include <string.h> using namespace std; class Menu { private: String choices ; String title; public: int Sel...
[4 replies] Last: thanks, that was simple (by icemanfan)
Dynamic Memory
 
I've been trying to write a little thing. I want to have a new variable added each time the user adds an item to a list. I'm thinking of having another variable...
[1 reply] : The Tutorial has info on this, try looking at http://www.cplusplus.com... (by Faldrax)
Files!
 
can anyone tell me how to open a file, create a file, and write to a file. And please dont send me to the tutorial on the home page.
[2 replies] Last: what exactly is ur problem?can u show your code? (by nyl)
May 2008 Pages: 1... 56789... 12
  Archived months: [apr2008] [jun2008]

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