Beginners - January 2011 (Page 37)

by Leppie
Code review on text RPG
 
My remarks at the top of the code explain where I'm at and what my main problem is. Sleep was not part of my original design but for the game to be more playabl...
[4 replies] Last: Well don't I look silly now! Thanks Disch, no seriously I mean it than... (by Leppie)
C++ classes
 
hi I am trying on a simple c++ program. I am trying to make flights related program. It has four files main.cpp, flight.cpp, flight.h, clock.h. When i run t...
[3 replies] Last: function bodies either need to be inline, or they need to exist in a c... (by Disch)
by tsaro
Missing dll
 
I created an application which works fine on my computer. I zipped the whole thing up and emailed it to a family member who then unzipped it and tried to execut...
[5 replies] Last: To redistribute a dll you copy and paste it to the right place. But I ... (by Computergeek01)
Double to int warning.
 
I'm getting a warning that my variable is being converted to an int from a double, however, I see nothing in my code which would indicate a floating point numbe...
[3 replies] Last: You also shouldn't be using pow to square things. It's overkill. Jus... (by Disch)
replace letter in a string
 
#include <iostream> #include <string> using namespace std; int main(void) { string test; test="this is a test" test.replace(' ','~')// replace the spa...
[14 replies] Last: Sohguanh, I think you're kind of missing his point; he said that altho... (by Kyon)
by gilbo
Sorting array of type string, with strcmp
 
I am going round and round in circles with this and researched everywhere I'm at a wits end. I have two strings string amounts ; string names ; ...
[9 replies] Last: alphabetical: { for(int i=0;i<SIZE-1;i++) { ... (by gilbo)
setter and getter function
 
Hi....please someone help me in this code.i have a PC problem. help me in solving this code.thanx in advance. Detailed Description: • Employee ID a...
[7 replies] Last: are you begger?...duffer.nai te naa si..:@ (by student302)
Total of vectors Problem
 
Ok its me again. Im getting really frustrated with my practice project... :s I cant figure out what i have done wrong when adding the total of vectors. Also...
[6 replies] Last: oh yeah i found the problem, i shouldnt have put there y<=moneysaved.s... (by pcultras)
by Doth
Random number function
 
I want to make a function that returns a random number but everytime i call the function it returns the value same as when i first called it. #include <iostre...
[2 replies] Last: Thank you , its now working how it should :) (by Doth)
proper usage of setw
 
Hello everyone. i'm a beginner in C++ so please don't scold me too much. My problem is: i've got a set of columns in the console wizard, which looks like this...
[no replies]
Simplifying a practice project!
 
I have been teaching myself c++ for a few weeks now and searched for some beginner projects to do. I decided to add on to one of them and make an inverse asteri...
[2 replies] Last: Sweet, thanks heaps. Thanks for the help and also the link! (by jesselattarulo)
Cant open file
 
void atidarymas(string pav, char a) { bool skaityti=false; string pav; cout << "Enter file name: " << endl; getline(cin, pav); ifstream Open(pa...
[1 reply] : ifstream Open(pav .c_str() ); (by kbw)
Reference
 
Reference are pointers that are automatically dereferenced Great. That's what vb.net really used isn't it? Why not declare reference then rather than p...
[4 replies] Last: As for Zhuge first reason you can't change a references. Well in vb.ne... (by teguh123)
confusing about **pointer
 
Hi First off all,excuse me for this dummy question. Unfortunately I have not understood "**pointers" yet. what differences are between one "*pointer" and "**...
[1 reply] : a **pointer is a pointer to a pointer: int x=32; int* y=&x; int*... (by JoR)
by tsaro
How do you convert finished project into an application?
 
Hello this is my first time posting on here. I just got finished with my c++ program that I was making on Visual Studio 2010. How can I turn my project into an ...
[4 replies] Last: You could link MFC statically or redistribute MFC dll with your applic... (by modoran)
typedef question & passing by reference
 
if I do something like this typedef const Uint32 Key; do I still need to declare const in arguments such as void DoWhat(const Key& akey); is it righ...
[8 replies] Last: Thanks for the replies all. So passing by value incurs a cost to co... (by Gladdok)
by exe
c++ fundamental
 
Hi, i'm trying to learn c++ reading an english guide, but since english isn't my language and in mine there isn't a good c++ documentation i'm having some doubt...
[7 replies] Last: it's italian but in english c++ is explained more better then the shor... (by exe)
char* function doesn`t work
 
hi, I have a problem in function returning char into string variabille. Code: char*DROP(string dropped,string equiped){ char item ; .... ch=getch(); ...
[2 replies] Last: Thank you very much!!! :) I gave there string DROP(-||-) string item... (by julof26)
if statment problems
 
here im trying to double the population if there is food and half the food if there isnt any food, But for some reason its always halved if (iFood < 0, 0) ...
[4 replies] Last: I assume when you wrote the post, you meant double the population if t... (by closed account SEbf92yv)
graphics in turbo c++
 
i wanna to make a graphics program in turbo c++...i have included all header files ....but still it is not working....i tried it on some pc in my univ...it was ...
[2 replies] Last: I think your editor was missing some libraries. Try to check. Try to c... (by thecodewall)
January 2011 Pages: 1... 3536373839... 42
  Archived months: [dec2010] [feb2011]

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