Beginners - June 2010 (Page 8)

by Kuci
Run code from Tick
 
Hi everybody please i need help with run code from tick. This i have in Tick: if (Neons) { Ped ped; Vehicle vehicle; f32 vx, vy, ...
[4 replies] Last: Tick is piece of code, where you can write somethink what if you run i... (by Kuci)
program of taking loan from bank
 
I created a very small program but, its not working correctly. I will be very grateful if someone may help. here is my code #include <iostream> #include <c...
[4 replies] Last: in the function void Money::output() but never mind, i got it workin... (by Maimaje Bello Abdullahi)
by svexo
Window Mangement
 
How Do you Change the Height And Width of an extern aplication. from c++ for example: youre browser Tnx , Svexo
[1 reply] : Im guessing you're using a SDK? If so, what? (by patryk)
Problem with multipication code and loop
 
Hi all I'm new to the CIS field thought it would be a great new career at 40 years old. LOL the first week was great, but wow this second week is crazy with i...
[3 replies] Last: thanks a lot with a few minor changes everything was ok. Here's the n... (by willduval40)
Libraries
 
Are there any good pointers to how to create libraries correctly that can be linked in C++ applications? I've written a library that I want to access from C+...
[3 replies] Last: Very nice. Here is how I did it to keep my RemoteNode.h file from hav... (by linxdev)
by cyzero
Whats wrong with the "If" statement here? (1,2)
 
#include <cstdlib> #include <iostream> using namespace std; char play, PLAY, Play; char ans; char user ; int iD; char CorrectUser ; int iD2; int m...
[28 replies] Last: It's because you're leaving newline('\n') characters in the input stre... (by mcleano)
else if problems
 
Here's the section of code I'm having trouble with. Its supposed to assign a fee based on how many checks a person wrote: //Determine check writing fees if (...
[1 reply] : else cannot have a condition, so just remove it (or change it to else ... (by Athar)
map.empty() giving anomalous segfault
 
Hi, I'm trying to set up some code which uses a map to store data but I've been completely confounded by a segfault. Here's the outline: In code.cc, I ...
[6 replies] Last: the empty() function seems like a benign function to me which implies ... (by kempofighter)
by michy
array
 
hi pros, i have a coding: class a{ private: int x; int y; public: a(int x1, int y1):x(x1),y(y1){} }; class b{ private: a aa ; public: b(a z...
[4 replies] Last: oh..thx alot for the answers problem solved!~ (by michy)
Heap corruption
 
I'm getting a heap corruption and I don't understand why I am getting it. In my main procedure I have the fallowing: Main.cpp wchar_t* tmp; tmp = (wchar_...
[3 replies] Last: Is there any reason you are using malloc() rather than new? tmp = ... (by Galik)
Movie Data
 
I'm in a computer programming class and having trouble. The assignment is: Write a program that uses a structure named MovieData to store the following inf...
[5 replies] Last: I'm not sure why your MovieDisplay() function takes two parameters her... (by Galik)
by samb96
why won't this code work?
 
/* a program that changes uppercase to lowercase and lowercase to uppercase. */ #include <iostream> using namespace std; int main() { unsign...
[9 replies] Last: I won't let you win this! :D /* a program that changes upperc... (by m4ster r0shi)
by suny
How to save a file in memory
 
This might be a rather unusual question but could anyone help please? For some reason I need to save a file then reload it later on. The file is not very big...
[7 replies] Last: For some reason I need to save a file then reload it later on. What... (by moorecm)
by kaduuk
Making longer calculations in a calculator program
 
Hi guys! I've made a basic calculator, and I'd like to improve it. One of the ways doing this is by making the calculator capable of doing more operations at...
[6 replies] Last: maybe what you need is this: int main (int argc, char * argv ) ... (by chipp)
map of object pointers
 
Hello Why does this code call the conctructor and destructor twice? im know stl::map creates a copy but dont fully understand why both are called. Does an...
[6 replies] Last: [quote=judas97]Ive change rMap[pRoom->vnum] = *pRoom; to r... (by m4ster r0shi)
Explanation of this quicksort please?
 
Hi there, I don't want to waste the time of everyone with an incorrect post but... If I was to display a quicksort example that comes from Herbert Schildt...
[5 replies] Last: See, we swap if we found a pair of values if any of the following cond... (by mgupta)
by Hashtg
Getline() function taking all inputs
 
Ok, so I have been following the tutorial on this website, and I have been trying to use the getline() function input with cin, as it appears on the C++ tutoria...
[10 replies] Last: Yeah it was. That and because it would have problems if you type anoth... (by Hashtg)
Any sites with C++ practice questions?
 
Im a self-taught c++ programmer, and kind of new. Reading the book is fine, but I want to practice my knowledge sort of question. Like a given situation where y...
[2 replies] Last: There is a thread in the Articles forum dedicated to beginners program... (by Galik)
Software Engineer vs. Developer vs. Programmer
 
I was asked this question recently and was surprised at my inability to come up with a good answer... What is the definition and what are the differences bet...
[13 replies] Last: Some good replies. Keep them coming, if anyone else has input... (by closed account Lv0f92yv)
by fafner
Random sorting within array
 
I have an array of std::strings I need to sort into random order. The thing is that no element can be repeated. To do this, I thought I would remove each elemen...
[14 replies] Last: I'd also recommend using a struct to define a card. It'll be a lot ea... (by kempofighter)
June 2010 Pages: 1... 678910... 26
  Archived months: [may2010] [jul2010]

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