Beginners - May 2010 (Page 23)

Tic-Tac-Toe
 
So I had to make a Tic-Tac-Toe final program for my C++ class and I was wondering if anyone could take a look at the code and see if there are anyways I could s...
[no replies]
Pointers Fuctions
 
I am currently doing a practice problem for an upcoming exam,but I'm am unsure of what to do when the instruction says to "Return the pointer to the first appea...
[5 replies] Last: Ahh I see. Figured it was something like that. No worries. (by closed account Lv0f92yv)
new to character array
 
i need guidelines with searching for a character within a character array from a file. and more importantly, i need to understand the logic behind this a lot be...
[6 replies] Last: ahh thanks. it works now. thank you! (by youtubester)
Stuck on a problem
 
What does ptr_thing; display? #include <iostream> using namespace std; void main(void) { int thing = 20; int *ptr_thing; ptr_thing = ...
[2 replies] Last: Indeed, it will not display with the code above. If you deference p... (by closed account Lv0f92yv)
Shellexecute (1,2)
 
Hi guys i am trying to open a URL (internet site) via code (C++) i tried the Shellexecute thingy but it gives me the same error no matter what here is the error...
[23 replies] Last: Hey again guys, i have been going through it and now it works properly... (by Melander)
by zcpp
const function
 
we know that const function cant change object.can they change a static member of object? i try that,and it can change it!why? class c{ static int d; void...
[7 replies] Last: thank to Dufresne and others. @Disch : sorry ,im new with forums (by zcpp)
Grabbing Time?
 
I was running a benchmark-esque program in Ruby and was wandering if C++ has a time function? If so, how can you grab the time and manipulate it? Here's what...
[6 replies] Last: Okay I've re-wrote parts again and am getting better results just stra... (by MottMan)
by Hanno
strcmp() comparing parts
 
Hello, im trying to compair a text BEFORE a space is giving.. strcmp(msg, "/name") for example.. /name Hanno how can i split /name and Hanno ? in ph...
[3 replies] Last: Like this: strncpy(buffer, (str + 9), 11); Adding 9 to str2 makes ... (by chrisname)
by ToniAz
Using recursion to determine no. of letters
 
Hello everyone, I am required to use recursion to determine the number of occurrences of a certain character in a given string. Now the non-recursive function i...
[3 replies] Last: When using recursion, you must keep what you would ordinarily use as l... (by Duthomhas)
visual c++
 
I need to learn visual c++ programming. But the problem is that all books on visual c++ are focussed mainly on windows programming environment and the c++ prog...
[5 replies] Last: This all depends on what you mean by "need". If you "need" to learn th... (by Computergeek01)
SDL - Can't get it working very well.
 
Hello, Andy here - With a very embarassing and noob-ish problem. I've wanted to make a simple little game with some simple 2d/3d graphics (with SDL, i'm g...
[3 replies] Last: I have to ask what we are all wondering, why even though the thought o... (by Computergeek01)
structures
 
hey guys! i'm wondering for this question i'm not exactly sure what it is asking me to do: Consider the following struct definition struct Triangle {...
[11 replies] Last: Yes. -Albatross (by Albatross)
vector
 
Hi . i want cout vector form end to begin for ( int i = v.size(); i >= 0 ; i--) cout << v << endl ; this way is true ?
[1 reply] : Array indexes start at zero your loop must start at int i = v.size()... (by Null)
by mini
beginner issues - nested for loops!
 
Hi everyone, I'm trying to write a program to 'simulate video feedback' so I've chosen to use some 2-dimensional arrays representing a screen/camera etc. ...
[2 replies] Last: Thanks for the advice! I tried taking everything out of the code apart... (by mini)
by Cheged
Working with Directories in C++
 
I am new in C++ programming, i am trying to add some codes to my programme, to enable it process several input files automatically during runtime and give resul...
[1 reply] : Use code tags ;) Otherwise - your code gets unreadable. (by AngelHoof)
by neeko
Deallocation of an array of pointers to objects
 
I've declared an array of pointers to objects like this, Appointment* appts ; and am creating in a for loop like this, appts = new Appointment(persons ...
[1 reply] : Nevermind, I found my foolish mistake. delete *appts; is the correc... (by neeko)
std::cout why i didn't get an output
 
Hi all, when i put a message with std::cout<<"hello" <<std::endl; in the cxx file it works but when i put this message in the .h or .txx I don't get the m...
[7 replies] Last: Hi Galik, thanks i fixed the problem... I had two copies of the .txx ... (by loisir1976)
pointers?
 
types of pointers avilable in c++?
[1 reply] : what is a 'type of pointer'? http://www.cplusplus.com/doc/tutorial/po... (by Bazzy)
by Morph
Why "not" use system("")
 
I was searching for font colors in console app. and some guy was suggesting using system("Color XX"). But all the users was complaining about people who uses sy...
[3 replies] Last: Besides which, system( "color XX" ) changes all the colors on the sc... (by Duthomhas)
by cidron
Inheritance problem
 
Hi all! I really thought that I understood the aspects of inheritance, but when I run this program: http://pastebin.com/P51bzYdf , so there must be that I ...
[3 replies] Last: If you need to use stuff inside of it, you will need to include it. I... (by firedraco)
May 2010 Pages: 1... 2122232425... 33
  Archived months: [apr2010] [jun2010]

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