General C++ Programming - September 2013 (Page 23)

Constructor
 
Go to this link http://www.parashift.com/c++-faq/matrix-subscript-op.html actually i m not gett...
[1 reply] : It's not only those: there's also a destructor, and another constructo... (by Cubbi)
Expected primary expression (inside constructor)
 
Can someone help me work out this error? guidedTour.cpp: In constructor 'GuidedTour::GuidedTour...
[2 replies] Last: Don't worry I fixed the problem thanks. (by beginnercoder)
How do you insert a sentence within a loop?
 
My program will ask the user to enter the number of lines for the sentence "I will always use object...
[1 reply] : Can you post your code you have so far? because writing the code from... (by Shuruki)
Making a namespace
 
I know how to make a namespace i just want to know why someone would. because it just seems like a w...
[3 replies] Last: It is more important than that: it also keeps things separate for the ... (by Duthomhas)
Help Creating Program Object-Oriented
 
Okay, so the point of the program is for the user to input a Month/Day/Year. My Program then Validat...
[6 replies] Last: Thanks Toshen I really appreciate the reply and the explanation. I had... (by Shuruki)
what exactly does this library do?
 
so im new to networking, and found this library online and it looks really cool http://www.keithschw...
[2 replies] Last: lets say i connect to google.com, and start reading from it, what wi... (by naraku9333)
Help with a C++ Homework Problem
 
I am having issues with a C++ homework problem given to me this afternoon. MY program is telling me ...
[3 replies] Last: It should be 'a' (single quotes). "a" is a string and will not work. Y... (by Mats)
getting core dumped, cant figure out how to fix it.
 
so im getting core dumped from an out of range error, and i cant figure out why #include <iostrea...
[6 replies] Last: #include <iostream> #include <fstream> #include <sstream> #include <... (by closed account Dy7SLyTq)
Help with functions
 
This is my first time using functions. Im suppose use functions ans make a area of a rectangle calc....
[2 replies] Last: Thank you very much, i have started practicing functions with refernec... (by Jose94ji)
by kiid
Problem using templates
 
Alright so my teacher said I have to have the header and implementation files separate so I can't co...
[1 reply] : It's usually a good idea to split implementation and definition, howev... (by Stewbond)
Anyone Know How I can Integrate Images into a C++ Program?
 
The question is pretty simple. I'd like to integrate an image into a C++ program.
[11 replies] Last: It isn't a variable -- it's a constant address to loaded program data.... (by Duthomhas)
reversing linked list
 
my code is #include<stdio.h> struct node { int info; struct node *next,*prev; }; typedef st...
[1 reply] : Sorry, I'm not going to try to read that unformatted, un [ code]code-... (by Duthomhas)
by seyuup
Finding memory address for characters
 
I've recently been reading tutorials on arrays and their aquaintance with memory addresses. So, I co...
[9 replies] Last: #include <cstdint> #include <iostream> int main() { int i = 7 ; ... (by JLBorges)
by Cinolt
Custom Container
 
I need a container that 1) holds a collection of objects of an arbitrary type, such as: class foo{ ...
[15 replies] Last: Ah, now I see. Guess I was stuck in the C mindset (just switching over... (by Cinolt)
i tried my best to make a function but i failed.can any one help me?
 
question is write a function that calculate the greatest common divisor of two number..
[11 replies] Last: question is write a function that calculate the greatest common diviso... (by Hzj jie)
by Addez
Is someone deleting my arrays without my knowledge?
 
I got some code that worked a few seconds ago. Then suddenly it stopped working. static cons...
[4 replies] Last: c++ is not friendly with class definition and implementation are in th... (by Hzj jie)
How to fix error C2582: Operator = function is unavailable
 
Hey, I am copying one pointer to another pointer and am getting error C2582: operator =' function i...
[3 replies] Last: I commented everything out of that method and just left those three l... (by MikeyBoy)
Could someone help me, by telling me what this actually does?
 
I always see this code for (unsigned int i = 0; i <inventory.size(); ++i) As i'm learning i'm confu...
[3 replies] Last: Thanks people it really helped! (by kevindav1)
What am I doing wrong?
 
I am reading and learning from "Programming Principles and Practice Using C++" by Bjarne Stroustrup....
[3 replies] Last: Thanks alot JLBorges! Got it to work then I reviewed the code after I ... (by RedneckGamer)
Problems with memcpy
 
Hey, I have these two pointers and I want to copy pointer1 data to pointer2. I tried to use memcpy ...
[3 replies] Last: You have not told us enough to answer that. We do not know the proper... (by keskiverto)
September 2013 Pages: 1... 2122232425... 36
  Archived months: [aug2013] [oct2013]

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