Beginners - May 2010 (Page 3)

Using SFML library.
 
Hello, So - I'm really amazed by how easy to use SFML is - but I've got some questions regarding installation and usage of the library. When I follow the ...
[14 replies] Last: Raawr... I tried the PATH environment variable right after i posted, a... (by AngelHoof)
by agauad
overloading the casting operator
 
Hi every one. First of all I'll excuse me for the misspellings you'll find in the following text. I'm trying to find out a way to encapsulate the primitiv...
[1 reply] : You are overloading operator()() here. It doesn't compile because o... (by R0mai)
function return structure
 
i have a function that returns type FINDRETURN which is defined in a header. FINDRETURN holds an integer and a bool. but when i say FINDRETURN ret; ...
[3 replies] Last: I think this here might cause the problem -> ret.position = lns.find(... (by m4ster r0shi)
by human
Program not working
 
Can someone inform me on what im doing wrong? thank you! #include <iostream> using namespace std; int main() { int num1,num2; cout << "Enter your ...
[9 replies] Last: 1. sqrt() can only be used with data of type double. Actually, as... (by filipe)
by nammae
Function and Pointer
 
Hello everyone, I have a fragment code: #include <iostream> using namespace std; // Increases value of variable pointed by ptr by one and returns its ...
[3 replies] Last: int GetNumber() const {return m_iNUMBER;} double GetSaldo() const ... (by Vexer)
by LEESI
classes function problem
 
I recently added a new function to calculate a volume of a cone, eventually looking to do another for the area, i cant seem to get it to work though,ive played ...
[5 replies] Last: Thanks a lot for the help,i never noticed to be honest it work great n... (by LEESI)
by cmccmc
question about opening files with fstream
 
im trying to open a file located at C:\Users\*USERNAME*\AppData\Roaming\FileZilla The problem is everyones username is different so I used char homedirectory...
[7 replies] Last: What is that Desh? Appending to char * with operator+?? Yea, quic... (by closed account Lv0f92yv)
why don't i get a different number?
 
Using a rolltest program trying to get 6 different numbers. Activates both functions but gives me the same result 6 times. Where am I going wrong? #include ...
[2 replies] Last: Freakin A. Thanks man. (by Aramoro)
where am I going wrong?
 
Create a class called strMetric that will give information about a string. You should provide a default constructor and an overloaded constructor that takes a ...
[1 reply] : [/co de] tags. Also, what is the problem? (by firedraco)
by declan
When passing optional arguments, which parameter gets chosen?
 
Hi! If I have a function: void myFunc(int arg1, int arg2=1, int arg3=1); And I only pass it one variable, myFunc(8), it will choose 8 to be arg1, t...
[9 replies] Last: Aw... that's cheating. ;) -Albatross (by Albatross)
Pulling an Argument from a Method
 
Hey, I'm writing a program that converts the English language into a fictional language I am developing for a video game. One of the things I'd like to do is be...
[13 replies] Last: Hmm... something doesn't add up here. I would think it depended on the... (by Albatross)
Getting array from another function...
 
Im trying to make this so when it saves the file, it goes to another function and grabs the whole array then prints it to another file. Here is the save file: ...
[2 replies] Last: So exactly how can I make it so I can make Saving go into statvault, r... (by b1gb0y2013)
by wasabi
Draw and select library
 
I am looking for a library that deals with 2D drawing and selection of objects, including areas. I've looked at the Boost page, but didn't find anything of inte...
[4 replies] Last: I am not sure if SFML has that function.. But it shouldn't be to hard ... (by AngelHoof)
by cmccmc
read data from a file
 
how do you read a specific section from a file. I don't want to get the whole line just part of the middle of it.
[1 reply] : http://cplusplus.com/reference/iostream/istream/seekg/ http://cpluspl... (by Albatross)
if statements
 
Hello As I write this I realise that my question is most likely not specific to C++, but I encountered the "problem" while writing C++ with openFrameworks. ...
[7 replies] Last: [quote=crazzyguy101]Grey Wolf : huh ? Long day (week) at work = misr... (by closed account z05DSL3A)
SEARCHING AND SORTING
 
Hello, any help of any kind will be very much appreciated. I've done the other part of the question but my code is actually useless without this first part ...
[no replies]
Error when running program
 
What does this error mean? I get this when I try to run my program. It compiles fine but I can't find the problem because I have no idea what it means. ter...
[1 reply] : Did you try to assign NULL value to std::string ? (by crazzyguy101)
Char pointer doesn't return address...
 
Hi there! Smaller text this time. Basically tried to get a pointer of char array to return the address of the elements as well as the values of said eleme...
[5 replies] Last: I think he meant: &(*pcpointer) (by firedraco)
What is the first step?
 
Hello, I'm pretty new at C++ and need to create a Excel like table via C++. This table will have temperature formulas and also be able to hold data entries, s...
[3 replies] Last: Similar to this assignment? http://www.cplusplus.com/forum/beginner/2... (by moorecm)
C++ Pause
 
Hello. I am trying to understand a C++ snake program I encounted on the net and can't seem to understand the following line: for (int i=0;i<(speed*pause_l...
[3 replies] Last: Simply copy and paste the code I gave you. (by Duthomhas)
May 2010 Pages: 12345... 33
  Archived months: [apr2010] [jun2010]

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