General C++ Programming - January 2014 (Page 13)

Passing classes to functions
 
I know that it is possible to pass a class instance to a function, but in my experience, if said fun...
[5 replies] Last: Ah, alright. Thank you! (by TsarLenin)
Object inheritance and encapsulation
 
I want to define a base class A which allows different type of logging (file stream, console, etc). ...
[1 reply] : Make B a friend? #include <iostream> struct B { struct logger ;... (by JLBorges)
Simple program to prepare result of n students using structure
 
This is the program below..can you spot the errors in it.. I am getting lots of errors...!! #inclu...
[12 replies] Last: Nothing now... Fixed all.... Good that you made me itself do it, fee... (by neonano)
float as template parameter
 
Unless I'm missing something, it's now possible(ish)? A little concept is below, very rough around ...
[7 replies] Last: > Non-IEEE-754 compliant systems ruined it for everyone. In C++11, s... (by JLBorges)
C++ Library
 
Can anyone provide me the information about C++ library DiaGen? How can I download it?
[1 reply] : http://lmgtfy.com/?q=DiaGen+download (by MikeyBoy)
171 7 [Error] expected unqualified-id before 'while'
 
#include <iostream> #include <Windows.h> using namespace std; char Map = {"#########", ...
[6 replies] Last: can sombody help me with my player @ its slide right and down (by apina058)
file program
 
int main () { string filename; cout << "Enter the file name: "; cin >> filename; ofstream myf...
[13 replies] Last: Maybe the emails are going to your spam folder? I don't know, I've nev... (by LB)
head of linklist passed as argument having problems changing value of head node
 
I am attempting to change the value of the head node in my list. I thought due to having pointer de...
[1 reply] : You can pass a reference to the pointer: #include <iostream> using ... (by closed account 3hM2Nwbp)
Why do you use C++?
 
Why do you guys write code in C++? What made you choose C++, and what are you making with it? (games...
[5 replies] Last: It was the first language I ever learned; and it wasn't a choice more ... (by Smac89)
by hilft
iter-swap help
 
I'm not quite convinced about the output 1 5 9 6 2 4 7 8 3 1. Can someone clarify? I wrote some not...
[1 reply] : your function multiply takes its argument by value, multiplies it, and... (by Cubbi)
by hilft
Help
 
Can anyone explain why I get a compile error? What do I need to change to make it work? #includ...
[2 replies] Last: class B is missing a default constructor, which is required at line 22... (by Cubbi)
Conway's Game of Life with std::set
 
I have planned out a implementation of Conway's Game of Life which will (hopefully) give the impress...
[5 replies] Last: Your question is not stupid at all, it is quite interesting to conside... (by LB)
Read Text file-Store info w/ Vector
 
So in my C++ course we were given instructions to: Write a program that reads a text file tha...
[4 replies] Last: Sorry I just figured out about what you mean't about the "Student" hah... (by atrapier)
by aqil
variable being used without being initialized
 
hi i would to ask has some error at my code need urgent to be completed... there is error that said ...
[1 reply] : Please edit your post and wrap your code between code tags: http://www... (by LB)
Problem with getting an array from a file
 
trying to load an array from a file into my program. I have the ifstream inFile already declared ...
[1 reply] : have an array of std::strings and then use std::getline (by closed account Dy7SLyTq)
Count no of uppercase lowercase alphabets, digits & other sysmbols
 
I am trying to fix this program. It should count from the text entered how many alphabets in upperca...
[15 replies] Last: I am able to run in turboC++ as well (by neonano)
Sorting a struct
 
I am trying to sort an array declared as a struct but it doesn't work. What am i doing wrong? ...
[1 reply] : once ok is set to 0 it never becomes equal to 1. put int ok=1; ins... (by Null)
MapReduce
 
Hello. Can Any one please help me to get one MaapReduce program run(using Hadoop)? This is the l...
[6 replies] Last: http://hadoop.apache.org/ (by LB)
help in search/edit/delete in text file(urgent)
 
can any one help me solve this problem?i had no idea to solve it!!!and need it fast....my search fun...
[4 replies] Last: ok done edit (by Yuki Ling)
Need suggestion on c++ headers
 
#include <allegro5/allegro.h> #include <allegro5/allegro_image.h> #include <allegro5/allegro_prim...
[7 replies] Last: There is no equivalent headers. OpenGL is an entirely different librar... (by Peter87)
January 2014 Pages: 1... 1112131415... 25
  Archived months: [dec2013] [feb2014]

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