Beginners - August 2013 (Page 36)

Defining a templated class method
 
How do I define a foward declared templated class, This is what I am trying to do #include <iostream> using namespace std; template< class T > struct data_...
[no replies]
How am I doing?
 
Hello. I am trying to learn c++, and the first project I decided to do on my own now functions as I intend. (A simple mastermind program) I would love it if you...
[no replies]
by nimnav
Beginner, How to loop to the beginning of the program from an IF statement.
 
Hey guys, I have been playing around with c++ for about 3 months now. I am not very skilled at the moment ( and certainly not on the level of most people here)....
[5 replies] Last: Thanks guys! I'll rewrite this simple program with the switch statemen... (by nimnav)
by Willy
using external libraries with Xcode 4.6.2
 
I am taking the CS106B(stanford) course online named programming abstractions, I installed the libraries from the course web page: http://www.stanford.edu/class...
[no replies]
"For" vs. "While"
 
Can someone please explain simply the difference between using "for" and "while" loops? Thanks! -Incline
[5 replies] Last: You get ninja'd when someone sneaks in a reply before you finished typ... (by Disch)
Wrong output displayed
 
Im supposed to be getting the following output: -- Write that should fail -- The filename is blank or the file could not be opened so the write/append oper...
[4 replies] Last: Ok it worked thank you soo much for your help :-) (by firstTym)
How to create a Makefile?
 
Hi, I've been looking around on the internet for the use of makefiles and the make command. I found some great tutorials regarding syntax and how to write a ...
[7 replies] Last: [quote=man make]-C dir, --directory=dir Change to directory dir before... (by ne555)
Importing data from text to array
 
I'm trying to write a program that will import data from a text file, pass that data into a set of functions that I have created, and export the processed data...
[1 reply] : I was thinking of using getline(data,arr ,'\n') and inputfile >> ws at... (by jkevin)
how to make my code runs like any windows program?
 
how to make my code looks like any windows program? i mean i want to my code open just like any other windows program and no in the command prompt windows. i wo...
[15 replies] Last: your getting terms mixed up. consoles not a level of programming. its ... (by closed account Dy7SLyTq)
Were to start?
 
In advanced, sorry if this is the wrong place to post in. So, I was wondering. I am new to C++ and wondering were would I start? e.g Books/Things to keep me...
[8 replies] Last: @fafner thanks! that looks like exactly what i was looking for! i just... (by MarketAnarchist)
by nmn
string to char*
 
if I have: string line = "ABCDE"; and I want to break this down to A,B,C,D,E where each is a char. I've tried this. char *lnPtr = new char[line.length() ...
[9 replies] Last: I don't see any reason to use a char array here. std::string already ... (by Disch)
file writing/appending
 
How do you check if a file appended successfully or has written to a file successfully. I thought it would be something like this: //appending to file ...
[3 replies] Last: void bool test_append_to_file() { (by cire)
c++ Dynamically allocating arrays through functions
 
Hi, so I learned a basic gist of dynamically allocating information, namely in the form of arrays. I first learned by creating a temporary pointer to copy infor...
[2 replies] Last: Thanks! I revisited a section on passing by address, and it said that ... (by doctorlove5295)
by Klikko
A small problem with my first program using structures
 
First off, this is not a homeschool assignment, I wanted to make this after completing Einsteins Puzzle /link available on request/. This code is supposed to...
[2 replies] Last: Thank you a bunch, didn't know that! (by Klikko)
inheritances
 
Hello i am studying now inheritances and i want to understand what the difference between 1)if a base person was created as private in H file .but the ...
[2 replies] Last: @iliya24 Hello i am studying now inheritances and i want to underst... (by vlad from moscow)
The point of return?
 
Hey guys! I´m new to C++ and don´t really understand the point of return 0 and other return functions. Can some 1 please explain what it is? and what ...
[5 replies] Last: Thanks everyone for the reply! I understand it now :) (by Gulogomi)
strange Array behaviour
 
class Bird { public: Bird():age(1){ } void print() { cout<<age<<"\n"; } private: int age; }; class peng : public Bird { public: pe...
[9 replies] Last: thanks cubbi.. (by ankushnandan)
[Win32api] Creating countless of dialogs instead of 1
 
nvm fixed
[no replies]
Why Struct if we have classes
 
my question is why to use struct. if i have classes that i can hold with them not only different data types but also functions and access specifiers
[5 replies] Last: just one thing: and C++ was designed to be as compatible with C as po... (by closed account Dy7SLyTq)
Unions in C++?
 
im very fail to understand why unions are good for
[12 replies] Last: > apart from critical memory intensive applications wherein the memory... (by JLBorges)
August 2013 Pages: 1... 3435363738... 51
  Archived months: [jul2013] [sep2013]

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