Beginners - August 2011 (Page 20)

Help with boost::thread
 
Well, I have two functions: void function_to_boost ( int a, int b ) { // some code } void main ( ) { boost::thread thread ( boost::bind ( func...
[5 replies] Last: I have checked everything, thread starts and ends, but it not pas argu... (by Scottas)
Why do i use cout<< "a:"; in this program?
 
#include <iostream> using namespace std; int main () { int a, b; // a:?, b:? a = 10; // a:10, b:? b = 4; // a:10, b:4 a = b; // a:4, b:4 b = 7; // a:4, ...
[5 replies] Last: Oh... got it! that was so easy:) Thx lads. (by Captain1832)
Linking Forms
 
I have created a form (Form1.h) and want to link it to another form (Form22.h). #pragma once #include <Form22> namespace IndianCricketCoach2011 { us...
[8 replies] Last: Your Form22 is actuall Form21 (by coder777)
To upper & to lower problems?
 
Hi, I have run into an error on an exercise and I can't figure out why. The goal of the program is to intake characters(letters only) and repeat them with th...
[9 replies] Last: you are awesome, thanks a ton(sorry for the delayed response) (by georgewashere)
First Battle System Any Suggestions?
 
Hey guys, I'm brand new to C++ (Like this is my first day) and I plan on making a simple TextRPG game and I was wondering if you guys could suggest anything I s...
[4 replies] Last: Well, apparently the player can't die, and the damage is hard coded, b... (by firedraco)
what did i do wrong? Classes
 
first of all, to learn about classes i figured i would mess around with it see what i can and cannot do, and why things do and dont work. i cant figure out w...
[9 replies] Last: ahh yes thank you naraku9333 so inside a member function of a class ... (by metulburr)
Can't find my mistake?
 
Don't really know what I am doing wrong with this code, although there aren't no errors and it debugs without a problem, i'm trying to figure out why is my thre...
[2 replies] Last: While the cin.ignore() method does work, save yourself some space. Thi... (by packetpirate)
When unsigned long long isn't long enough
 
I am trying to solve a project euler problem just so I can get more experience. The problem states: The prime factors of 13195 are 5, 7, 13 and 29. What is ...
[10 replies] Last: ULL is a suffix that tells the compiler "interpret the number as an un... (by firedraco)
header questions
 
I'm finally starting to make projects that aren't that small. I'm working with about 2% of the project and just testing it. It's 4 pages with incomplete functio...
[no replies]
Access trouble with pointer vectors / class interplay.
 
(I know this looks long, but I have bolded and annotated everything relevant. I've tried to be detailed as possible without making you read too much.) Beginne...
[1 reply] : Double_t Get_Position() { if (!pos) { /* Computes pos based on isTop ... (by shacktar)
Need Help Reading Data from Text File into an Array
 
I have no idea how to get started on this homework assignment and would really appreciate some assistance to help me get started: "Create base class Person ...
[9 replies] Last: ummmm.....so, this undebugged(and incomplete and bad, but i think it c... (by blueberry)
Class Choosing Screen (Multiple Things)
 
Firstly, I'm new to C++ so don't pick on me. Thank you. I'm making a text-based-adventure game (original, right?) and I need some help on a few things Ca...
[2 replies] Last: Why am I such an idiot, I hadn't realised that I'd put char instead of... (by scelton315)
Trouble Setting up Doubly Linked List
 
I'm trying to use a class to set up a doubly linked list so that the pointers to the first and last nodes are returned correctly. my_DLL("987"); cout <...
[4 replies] Last: Never mind. I figured it out. I forgot to put a type in front of fir... (by joatmon)
Pointer, heap memory, neither?
 
My array goes "out of scope" in the following code snippet, any ideas on how I should get around this? I'm not good with pointers or with declaring variables us...
[14 replies] Last: Oh, i get it now, thank you andy and shack, you have been very helpful... (by VanPepto)
why use structure if class is better?
 
why use structure if class is better? isn't class just plain better than structure. if so why use structure?
[3 replies] Last: (also default inheritance works same way as default access). (by jsmith)
is there a better way for this random 500-1000?
 
is this the way you would generate a number from 500 to 1000, or this there a more efficient way, cuz when i run this it sometimes takes awhile to come up with ...
[3 replies] Last: Any number modulo 1 is 0, and 0 + 12 == 12. (by jsmith)
Can't acces structure in class
 
I have defined stucture in class, example: class my_class { struct my_struct { int my_var; }; }; Then trying to access it: my_class ...
[4 replies] Last: Thanks. (by Scottas)
by RichL
Printing out
 
I've nearly given up on trying to find out how to send output such as Hello World to a printer. I'm new at this, and have googles a lot but still have no idea....
[11 replies] Last: Another possibility, if you are happy with a very basic solution and y... (by andywestken)
how to change random number
 
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int generate_random(int ran); int main(int random) { int your_number = gener...
[7 replies] Last: Or you could simply call srand(time(0)) only once at the beginning of ... (by Zhuge)
by eidge
Sockets is MSDN good reading?
 
I'm moving on to sockets and I was wondering if this: http://msdn.microsoft.com/en-us/library/ms740673%28v=VS.85%29.aspx is a good place to start or do yo...
[no replies]
August 2011 Pages: 1... 1819202122... 39
  Archived months: [jul2011] [sep2011]

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