Beginners - April 2011 (Page 23)

template class
 
Ok - so i'm attempting to create a template class, for creating arrays. Sort of a bit like what vect...
[2 replies] Last: ah, excellent - it was the ; in the wrong place!! typical :) thanks v... (by jazpearson)
help pleezz
 
my program writes wawawa, but i need to wwaaawawawwaaa, just write this randomly. #include <iostre...
[3 replies] Last: Now i dont know where to include -sleep- element Before line 24. You ... (by coder777)
ANSI C++, ISO C++, library, API, structure
 
Please use simplistic explanations so that I could fully appreciate your help. Thanks. 1: I have ...
[1 reply] : 1. ANSI = national http://en.wikipedia.org/wiki/American_National_Stan... (by coder777)
operator overloading
 
hi, I have written a program for operator over loading ad below and i am getting an error as 3...
[3 replies] Last: ya, but here i am trying to overload operator "+", and i am getting th... (by sagu072)
c++ searching in a file
 
I have such a program: #include <iostream> #include <conio.h> #include <stdio.h> #include <cs...
[1 reply] : this funktion is displaying one product and then program is bracking ... (by coder777)
Print a checkerboard (8-by-8 grid).
 
So I'm trying to work through a c++ book and I'm stuck on one of the exercises. Exercise 8-1: Pri...
[2 replies] Last: As a start, two points: 1. You need an extra element in each array.... (by Alrededor)
by ascii
help me understand this example
 
when reading my C++ book (Beginning Visual C++ 2008 by Ivor Horton) i came across this example, and ...
[3 replies] Last: For a one dimensional array the name of the array functions as a point... (by Alrededor)
Running Console Applications
 
Is it possible to run a console application on a computer that doesn't have a compiler on it? i.e ...
[2 replies] Last: The program I am talking about is a .cpp file, I would guess an execut... (by bassoondude101)
multidimensional array within classes
 
I've been working on this all day. My actual code is more complicated, but for now I'm stumped with...
[4 replies] Last: The answer is that I must declare the two dimensional array as #incl... (by helasraizam)
Classes and objects with strings
 
hey guys, Im working on a small text based RPG, and im creating a class called obj to create all my...
[1 reply] : use a string, not a char array: #include <string> // <- class obj... (by Disch)
Bitwise operator
 
if a = 3 b = 4 c = 6 what is (a|b&c) and how you find that out?
[2 replies] Last: Don't forget about operator precedence either. (a|b&c) is equivalent t... (by Browni3141)
Classes...?
 
I have a class for player health and battle. Then i have an integer for player health. Heres My ...
[6 replies] Last: mkay, I got the random number working. I moved User.Luck = rand & Fire... (by Widget360)
Input file trouble
 
#include <iostream> #include <fstream> #include <iomanip> #include <string> #include <cmath>...
[no replies]
emulators
 
#include <iostream> using namespace std; template <class T> long int funnyfunc(T val1, T val...
[no replies]
String
 
So I am making a program that lets you enter in a random string of 1's and 0's and it will output th...
[4 replies] Last: .... Don't read it into a char array, read it into a string. You don't... (by Athar)
by ascii
returning references
 
my question is involving returning a reference. from playing around, i have only been able to get i...
[4 replies] Last: in that case thank you good sir :) (by ascii)
templates
 
How to write a function template that simple takes two variables of the same data type and swap them...
[1 reply] : See the tutorial on templates. (by firedraco)
by wtf
need help remembering what a function call does.
 
I encounted the following line of code in one of my programs. I have no idea of what it does. I be...
[5 replies] Last: No, I'm just trying to think of why did I do such a stupid and pointle... (by wtf)
passing objects to functions
 
So i wrote a collision detection function for a game im creating and it works as i want it to but no...
[5 replies] Last: Have you considered refactoring your conditionals into a function and ... (by PanGalactic)
Don't understand error - Declaring class functions
 
I am getting an error in my code. I am using Visual Studio 2010, if that matters. The code is as fol...
[3 replies] Last: Yeah, but that still isn't all correct. (by guestgulkan)
April 2011 Pages: 1... 2122232425... 55
  Archived months: [mar2011] [may2011]

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