Beginners - December 2009

How to send Tic Tac Toe game program?
 
I have a question regarding a file sending. Well, my friend his finished his Tic Tac Toe game program and I just want to know if someone can tell me what he nee...
[9 replies] Last: An economist would say that this proves that there is a first-mover ad... (by PanGalactic)
by August
Problems understanding source code
 
I have a problem with understanding the source. #include<iostream> #include<cstring> using namespace std; void char_permutation(char str ,char appe...
[12 replies] Last: I Figured it out... Now the only thing is to apply a SendKeys function... (by August)
template function problem
 
template<class T, int size>int getLength(T(&) ){return size;} this template function gets the length of an array. can anyone explain how this works. i know...
[3 replies] Last: thanks Disch. i knew i already knew the answer, im just not so sure ab... (by blackcoder41)
Why does this compile?
 
Hello! I'm completely new to programming and have been learning C++ with the help of tutorials provided by Herbert Schildt(I'm using Visual Studio 2008). Recen...
[8 replies] Last: so your question is the difference between the two examples right? ... (by blackcoder41)
Macros of functions
 
Hi there ! I have a question about macros. I've read that macros can be dangeurous and it's better to use a function than a macro. For example: a macro like:...
[9 replies] Last: @jsmith: that trailing semicolon on the macro definition means you can... (by PanGalactic)
Sockets, eh ?
 
Hi. Well, simple, could anybody give me a working sockets-client example connecting to the given IP and Port, it would be nice if someone could make a sockets ...
[2 replies] Last: Also, you might consider the book "UNIX Network Programming" if develo... (by jsmith)
by phhs80
Error when passing array to function
 
Dear All, Could you please help me with the compiling error of the following code? prog.cpp:17: error: cannot convert 'float (*)[(((long unsigned int)(((l...
[7 replies] Last: Many thanks again! I will have a look at STL containers. I am still le... (by phhs80)
Reading from a file?
 
Hello. I'm experimenting with this simple two programs to see how the "read and write to files" works. Ok, the first part makes sense, I put a few numbers and a...
[11 replies] Last: No, I meant what I wrote. Take this program for example: #includ... (by mcleano)
Extending dynamic memory allocation?
 
Here's an example situation I think would best describe what it is I want to do: Allocate a dynamic array of size i (some int). Then, when that capacity is r...
[7 replies] Last: Sorry I didn't phrase my question very well, but I think you've answer... (by helloworld922)
Run window query
 
I have been testing my compiler (Bloodshed) by inserting simple programs (cout), and I find that the run window closes too quickly for me to view the results. I...
[7 replies] Last: Thank you! It works now. (by Cyraeth)
question regarding conditional statements
 
hello... first - i'd like to clarify that i am in my first few hours of using C++, and have very very little programming experience prior to this (a few hou...
[5 replies] Last: thanks so much very obliged, brendan (by brendanm6)
What's wrong with this simple code?!
 
I have a pretty simple Doubly Linked List implementation (only the constructor and destructor so far), but I get this error (ide is VS 2008): Error 1: Desc...
[2 replies] Last: stingBlah: Don't double-post. http://www.cplusplus.com/forum/beginn... (by helios)
outfile.open() problomes
 
hey, im trying to write a program that will create a outfile and open it but the name of the file will be detimermind by a variable in the program. is there any...
[3 replies] Last: Odd. That shouldn't compile. std::fstream::open() takes (for some r... (by helios)
Query: Where to start
 
Hello everyone, As an intro I would like to say that I am a college student on a very tight budget, so any recommendations for my following question would be...
[3 replies] Last: Thank you for the replies. I found the tutorials on this site very ... (by Cyraeth)
What's wrong with this simple code?!
 
I have a pretty simple Doubly Linked List implementation (only the constructor and destructor so far), but I get this error (ide is VS 2008): Error 1: Desc...
[7 replies] Last: thank you, solved! (by stingBlah)
are both syntax equal????
 
Hello everybody i just want to know that Are both the syntax equal int *ptr=new int(10); and int *ptr=new int ; help would be appreciated...
[1 reply] : The former allocates an int initialized to 10, the latter allocates an... (by helios)
Pointers & Functions
 
Hey Folks, I am looking for some help. I'm learning pointers and functions right now, and was hoping someone could give me some problems to work out, or introd...
[4 replies] Last: thanks lumbee thats just the type of problems I am looking for, ones t... (by BettyBoopTS)
passing variables
 
I have a function that requests an integer value, so I made another function to handle the request and I wanted to pass the integer value back to the original f...
[1 reply] : Since you are reading it with cin, you don't need selectedAttack to be... (by Bazzy)
Simple query: sum of random integers
 
Hi there! I've just started trying to learn C++ and am using the book "C++ by dissection" Been trying to generate a list of 100 random integers and its c...
[18 replies] Last: Heh heh heh... Just having fun with this. (by Duthomhas)
by btripp
I need a challenge.
 
Hey guys. I just finished my second programming class. I got an A in the class. Im bored during my christmas break and am looking for something to do. I would l...
[7 replies] Last: if in security start looking into RSA, DES algorithms. HUFFMAN coding ... (by manojr)
December 2009 Pages: 123... 23
  Archived months: [nov2009] [jan2010]

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