Beginners - June 2011 (Page 37)

Problem with inheritance
 
Hello, I am new to c++ and I can't seem to get this code to work after following everything exactly as it was in the tutorial: #include <iostream> #incl...
[2 replies] Last: ok, thank you, I tried it both ways and they both built successfully :... (by JohnPringle83)
System commands and multiple inputs
 
i was playing around with a program i just started making and that brought up some problems.. Problems: How do i accept multiple inputs on one line...
[8 replies] Last: The solution seems like a very general string parsing algorithm, but I... (by Mathhead200)
Split code into two files
 
I am trying try split my code into 2 files. What I want to do I split the game up so that each dungeon is in a different file. The dungeons include the shape, s...
[6 replies] Last: This is my same question. I downloaded an Open Source software called ... (by Capt Volcan)
Reading and Writing an array to a binary file
 
I've been stuck on this for a few nights now and although I have found some examples for pointer arrays and single objects, I have not found a solution. I ha...
[3 replies] Last: Is this because string can be of any size (ie grows)? Yes, you can'... (by shacktar)
Weird string preceeding function declaration
 
size_t __cdecl wcslen (const wchar_t *) ; What does __cdec1 mean here? Is this something specific to windows programming? Why doesn't cplusplus reference...
[1 reply] : Yes, I'm pretty sure it is a Windows function. _cdecl stands for "C... (by Zhuge)
throw instance error
 
Hey everyone, So the user input is in the form of "##:##:##" Variables: Hour Minute and Second respectively. I create a string and split it. The parts are sto...
[2 replies] Last: Thank you I spent a solid hour trying to solve that. Your awesome! (by edithsong)
Can someone please write a C++ code for this question using safe user IO, arrays, and dynamic memory?
 
Write a program to cross check two lists of employees and pay cheques, to identify if anyone has been missed. The list of employees is stored in a text file wh...
[3 replies] Last: A small hint for this question: no where does it ask for input from th... (by mverc)
compiling problem
 
i m tyring to compiling the program of variables but it shows some errors and i have written everything same as the input of variables on this site what should ...
[5 replies] Last: Based on Zero One's experience, it's more than likely it's the commo... (by closed account zb0S216C)
Visual C++ 2010
 
So I'm having some difficulties with Visual C++ 2010, or so it would seem. I take examples from either the web or the school text for learning this language and...
[2 replies] Last: I unselected the precompiled headers option, that seems to have done t... (by playstation60)
I need help by opening an xml file
 
I am working now with xml files and I want to extract some information without need to parse the whole file. Therefore I used the string and I/o stream objects,...
[6 replies] Last: Thanks for reply, You can use a simple text file instead. I should... (by snipermann)
wierd error
 
This post iIn this code I have an error about not having a while at the end. Also I don't think that the loop is working. I am going to have somewhere in the sc...
[6 replies] Last: Thank you for the answers. This is a basic title screen for a game I a... (by coderninja)
passing char* to function
 
void func(int *p) { *p = 11; } void func1(char *t) { cout<<t<<" in function\n"; t = "new"; } void main() { int k=10; func(&k); ...
[3 replies] Last: thanks Zhuge and webjose... (by ankushnandan)
question of pass the end pointer
 
int main() { int a = {0, 1, 2, 3, 4}; int const *aPtr = a; aPtr += 5; //save and reliable //what if aPtr = a; aPtr -= 1; //? } T...
[3 replies] Last: Neither are technically "safe", as both will be pointing to memory you... (by Zhuge)
use of substr find and []
 
ok guys this is my code here well my problem is the code wont show up the way its supposed this is what it should do: //Read a line of 5 words separated by colo...
[6 replies] Last: You look for the position of the first delimiter before removing the c... (by Zhuge)
Using Mouse as Input device
 
hello everyone...i am making a checkers game.....for the users input i can take it using coordinates with the keyboard ...but i wanted to do it with the mouse....
[6 replies] Last: @hamsterman ....about SFML i am having problem setting it up on window... (by ChanGeZi)
Using 2D vector as a member of class matrix
 
Hi, I am trying to declare a class matrix (containing 2D array) with following members: int d1, d2; //dimensions vector<vector<float>> p; // All values o...
[4 replies] Last: Anyway, shacktar, can you tell me how did you figure out the source o... (by shacktar)
Image Insertion
 
I am making a checkers game...and i wanted to know if i can insert a background image of the checkers board instead of making it all by graphics...because i don...
[2 replies] Last: i have windows 7 ...and i am not getting the options that they are sho... (by ChanGeZi)
for Loop Issue
 
OK, still working on: http://www.cplusplus.com/forum/articles/12974/ I am all the way up to the fourth exercise, Pancake Glutton. Everything works. My progr...
[4 replies] Last: sebgar, Removing the function resolved both issues. I'm just baffled a... (by killingthemonkey)
problem with code
 
hi... I was making a program in c++...the coding includes multiple inheritance and array of objects as its base. I have made 3 objects...for the first object ,...
[1 reply] : Use getline. http://www.cplusplus.com/reference/iostream/istream/getli... (by closed account N85iE3v7)
understanding the use of system("cls")
 
hi...can anyone tell me what is the use of the function ,system("cls"), and fflush()? and when they are used?
[2 replies] Last: If you are getting information about these from the same place, then t... (by Duthomhas)
June 2011 Pages: 1... 3536373839... 41
  Archived months: [may2011] [jul2011]

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