Beginners - August 2010 (Page 4)

displaying square and square root symbol
 
Hi, I would like to ask how am I going to display an ASCII character, especially the square ( 2 ) and square root symbol. These two character are in the ASCII t...
[3 replies] Last: Assuming you're on Windows, check out SetConsoleCP() http://msdn.mi... (by Disch)
insert a node at the start of the list
 
i'm having trouble on how can i insert a node at the start of the list. i figured out on how can i insert a node at the start of the list if it's empty but i do...
[3 replies] Last: @ hamsterman: isn't that a little redundant? Why do you need the if/... (by Disch)
Searching a file
 
Hi guys, I finally got my 1st program compiled and going, I created a mini database (it's pretty simple, just one class) and it generates a binary file in the ...
[1 reply] : Well, you will want to make sure you null-terminated your strings. Tha... (by LB)
adding the individual digits in a int value
 
HI guys, i need to write a function which involves me taking in a int value and repeatedly adds the individual digits in the value and if the resulting value co...
[1 reply] : Hint: number % 10 "extracts" the low digit ( 12345 % 10 = 5 ) num... (by Disch)
cross pointing between two classes
 
Hi guys. Is there a way to do the following: class b{ a * as; } class a{ vector<b*> bs; } If not, and I have this: class b{ ...
[2 replies] Last: thank. I think I my meaning wasn't clear. The segment of code ... (by yotama9)
Magic Square
 
i want to ask abt the source code of magic square in C++ i am confused on how to build this program as shown by my cousin \ thanksss
[no replies]
Random monster generator txt RPG?
 
hey im working on a random monster generator and im getting a lil problem with my GetName() function and list something about it not being able to access class ...
[4 replies] Last: i agree i shouldnt be using something that i dont fully understand in ... (by L E G I O N)
by sebc2s
Question about Visual Studio 2010?
 
First off I want to say that I started to learn C++ about a year ago but stopped because of school. I decided to learn it again and I noticed that my code is no...
[10 replies] Last: im using vs 2010 ultimate you gotta open a win32 console app and then ... (by L E G I O N)
when click on .exe(console app) it flashes away
 
after compiling in release mode when i click on .exe it flashes away when i debug it in ide(vs 2010) it stays. what can i do so it should stay & not flashed awa...
[5 replies] Last: you can either do that or download std_lib_facilities.h and us... (by L E G I O N)
problem in exchanging values
 
#include<iostream> #include <tchar.h> int main() { int fval; // for first value int sval; //for second value int sum; std::cout << " Enter first value...
[8 replies] Last: uhm.. tnx.. sorry for my stupidity.. i'Ll try my best to learn this... (by dontgetit)
transferring a structrure
 
Hi again, I would like to ask, how can I transfer a structure from a subfunction to another function. As example, I would like to assign three members with diff...
[1 reply] : You can pass by reference, so the passed object itself will be modifie... (by Bazzy)
by Mazd
The best style of practising C++?
 
Hi, C++ dot com programmer :)....TO EXPERT:Give us advice on fighting with this complex programming language..I mean good ways of doing it, where to get resour...
[1 reply] : while(true) { write code } (by xander333)
Need assistance with combat calculations.
 
I'm pretty new so now im getting to the really juicy stuff. I need to create a combat system for a game i'm programing. I want to do random dice rolls and calcu...
[1 reply] : So far ive come up with this, if there is anyone that can help me buil... (by Snaef98)
I am having alittle issue with a function.
 
I'm trying to call a function from another one and instead of running the function and returning back to the previous one. its not running it and going straight...
[6 replies] Last: WOOT victory for me i figured out my mistake!!! yay i now got an activ... (by Snaef98)
varying number of input values
 
I need to accept input like: 22 56 43 11 34 6 8 7 and put it into a vector, but I don't know how many values there may be I need to do something like: ci...
[4 replies] Last: Then you can do what wasabi suggested. You could use std::stringstream... (by filipe)
How to pass a vector to a method
 
Hi everyone, i started to study a bit of C and C++, and i wish that you guys could give me some help :) I have an exercise that gives this method declaration...
[3 replies] Last: Answer to your problem -> http://cplusplus.com/forum/general/24655/#ms... (by m4ster r0shi)
Setting Up A nice Console Programing Environment
 
So I want to learn C++, I've found this nice looking learning guide on this site. At first I thought I'd use the Visual C++ Console Template since I know how to...
[2 replies] Last: The second code is not C++ ( it's C++/CLI which is a different langua... (by Darkestaxe)
What's the point of Dynamic Allocation?
 
Hi there folks. I'm back with a new pointless discussion. Lookie, here is a program. #include <iostream> using namespace std; int main(int argc, char *...
[10 replies] Last: int array ; array = 42; //this is legal (it's not a syntax error) ... (by ne555)
I'm kind of new to the forums so i thought i would say hi to everyone.
 
This is sort of just a hello message and a quick question about functions. I am in the progress of making my own text based role playing game and doing quite w...
[15 replies] Last: I guess I wasn't being very helpful earlier. Sorry. I just get frust... (by Disch)
sizeof () doesn't work when called for an argument of a function. Ayudarme!
 
Code: #include <iostream> using namespace std; int generate(char charSpace ) { int spaceSize = sizeof(charSpace); cout << charSpace << endl; ...
[13 replies] Last: It is a common STL idiom, pass the first iterator and the one-past ... (by Duthomhas)
August 2010 Pages: 123456... 28
  Archived months: [jul2010] [sep2010]

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