Beginners - May 2011 (Page 25)

Check if a DLL running
 
Hello all, I have a question to ask here. How do I check if a DLL running in c++ code? Hope someone able to help me, I've tried some ways and it's always faile...
[no replies]
srand and rand
 
I'm working on a Dice game for a school project and am having trouble utilizing the srand and rand functions. I know which function it is supposed to be impleme...
[4 replies] Last: I put the srand in the constructor but am still having problems, even ... (by Brianzor)
help
 
ok so im a beginner on c++ and have got two error's can any one help here they are 1>c:\users\billy\documents\visual studio 2010\projects\internet browser je...
[5 replies] Last: i fixed it all i had to do was actually copy and past the name of the ... (by eckonian)
by db863
Completely Confused: Sending Hex Values
 
Hi, I need to build up a message which is to be sent down a TCP socket, but I am completely confused as to how to do so. I've created and connected the so...
[5 replies] Last: You to think about how you send the data and how you might receive it ... (by kbw)
by ascii
Too Large of an Array
 
Hey! I've been trying to get the answer to Project Euler problem 10 and am having some troubles :o I'm using the standard Sieve of Eratosthenes approach to t...
[3 replies] Last: thank you both! thank you for the article moschops, when i allocated ... (by ascii)
by JoeyS
Why is this text file turning into an executable?
 
Hello, I am having a strange result to my following code: string text ; text = "amz"; text = "AMZ"; ofstream myfile_0("/Desktop/myfile_0"); myfi...
[no replies]
by masta
Whats wrong with my code?
 
#include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; } I keep on getting two errors: "there were build error...
[10 replies] Last: Don't use system("pause") Instead use cin.get(); std::cin.get... (by lordmat)
Inventory System Help Adjusting the supply
 
Hello, Ive been working on this inventory for practice for quite some time now and this is the last thing i need to do ive been trying everything i know to get ...
[2 replies] Last: Sorry I am very new to c++ and decided to give this project a shot. Bu... (by GamexCoder)
Strange Problem
 
Hello there guys ! I m new here, and almost "new" to C++ ( Managed ) I created new project ( Standart CLR Application ) from scratch. This project is just for ...
[no replies]
How to make the console wait until a key is pressed to continue?
 
I have to make my program display a bunch of data and at the end of the data report I want to display a message that says "Press any key to continue." How wou...
[2 replies] Last: Windows 7 and Visual C++ 2008 Express. (by AndrewGary)
I need to create a control structure to run a hangman program
 
Hi folks, I'm praying for a speedy response. Right now I have a hangman program that runs on a while loop, using the conditions: lost, won or still play...
[3 replies] Last: yes, 2 times(i - 1) + 1. examples are : so word number 13 is at 2*... (by btucho)
return 0;
 
Hi, Why some compilers do not complain about missing the return 0 statement ?
[6 replies] Last: Thanks all :) (by Thuraya)
Histogram Problems
 
Im a first year C++ programer using unix and have no idea how to do this question. I think ill either have to use a 2D array or a 1D array with multiple do for ...
[11 replies] Last: the code i just posted prints them vertically, read it. (by ascii)
by codder
how to alloc this
 
Hi all, void myfunc(type **t) { // i want to alloc it } int main() { type *a = NULL; myfunc(&a); if(!a) //error... a->.... ... return 1; } ...
[5 replies] Last: Run your debugger and you should be able to discover exactly where the... (by anonymous23323124)
by kh9876
Please help with blackjack program
 
These are the two errors I am receiving: Line 21: error: expected constructor, destructor, or type conversion before '(' token compilation terminated due to...
[1 reply] : Hi! You probably meant to call srand() inside main(), near the top. O... (by Albatross)
multi-threaded programming lessons
 
hi I've been learning c++ for around 8 months now and have been looking to come close to be efficiently competent with it (sigh* its proving to be quite slow). ...
[1 reply] : Okay, well it depends on the platform. Unless you want to use aiso. Bo... (by ultifinitus)
Binary files
 
Hi All, I want to read the contents of a binary file (integer values ) and stor them in an array, but my code is not working ! could any body help me :) ...
[2 replies] Last: for(i=0; i<10; i++) // show values of the array cout << p << " "; T... (by Lynx876)
by chaman
Is any variable or container in c which contain more than one data type
 
Is any variable or container in c which contain more than one data type. vector, map etc contain only one data type but how more than one data type, if no nay t...
[3 replies] Last: Did I horrifically misunderstand the question there? Oops. :) (by Moschops)
confuse about a test programme
 
first of all my english is poor, i hope i make my question clear. i wrote a test programe but i cant explain why it can get a right answer. #include<iostr...
[2 replies] Last: use google translate and write in your language (just a tip for the fu... (by Blessman11)
Can you have a linked list data member inside a struct?
 
Can you have a linked list as a data member inside a struct? I have something set up like this: struct Node { int data; Node * moredata; Node * ...
[1 reply] : This is basically a binary tree.. I'm not sure how should a printed bi... (by hamsterman)
May 2011 Pages: 1... 2324252627... 48
  Archived months: [apr2011] [jun2011]

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