General C++ Programming - August 2014 (Page 18)

Why I can't get access to a private function?
 
I've written a simple class given below. I had set the values through setab() function but the add()...
[5 replies] Last: But is it not possible to get access into a private function? Isn't t... (by coder777)
meaning of class type
 
Hi. I know what it means to say type int or bool or char but what does it mean to say class type. Fo...
[7 replies] Last: would the variables in constructor be allocated memory sequentially? ... (by AbstractionAnon)
Scientific Receipts: VecDoub problem
 
(Note: I posted a similar thread in StackOverflow but got no answers). I am working on a code that ...
[5 replies] Last: Maybe you meant VecDoub OctaveSumAll . The way it's defined now, Oct... (by helios)
getline() adds another line to the output
 
Hi, Taken from Accelerated C++ book, I modified those code to use getline() instead of std::cin >> ...
[4 replies] Last: There are a number of differences between your example and the source ... (by Duthomhas)
by Algast
Extra empty line appearing using cout
 
Hi, I am new to c++ and have started creating a dummy program to perform a simple task of writing...
[1 reply] : We would need to see at least the definitions for the functions you ar... (by Zhuge)
Help me please
 
#include<conio.h> #include<windows.h> #include<stdlib.h> #include<string.h> #include<time.h> #inclu...
[1 reply] : You have a number of compile errors. Line 20: Your functions need... (by AbstractionAnon)
by Null
Cannot upload file with libcurl
 
Hello, I'm trying to upload a file to a FTP server with curl. The problem is that I do not know wha...
[4 replies] Last: Any reason why don't you use libcurl own example ? No particular reas... (by Null)
binary file read and struct
 
#include <iostream> #include <fstream> using namespace std; struct details { ...
[5 replies] Last: Got answer here http://www.cplusplus.com/forum/beginner/70211/ (by csstudent123)
by LB
Why does an abstract class need to call its virtual parent constructors?
 
http://ideone.com/tmdzkn #include <iostream> struct A { A() = delete; A(int x) : x(x) { } vir...
[2 replies] Last: OK, so it's a compiler bug - thanks! (by LB)
by Kubani
Inheritance by using FLTK
 
Hello guys, This problem is completely understandable for who has used book PPP (http://www.strou...
[2 replies] Last: Thank you very much for your guide. The below code gave the result. I... (by Kubani)
Stacks: [Error] 'exit' was not declared in this scope.
 
So our professor asked us to make a project where we will need three files (two .cpp files and one ....
[1 reply] : exit() is declared in the header <cstdlib> (or <stdlib.h> for C pr... (by Chervil)
Does a realloc to smaller memory result in the same pointer
 
Hi all Just a quick question ( I could probably test this out for myself...but I'm lazy... ). If I...
[2 replies] Last: Cheers, I guess I'll trial the function my self and examine its behavi... (by SuperStinger)
Simpe Playing Card Deck Creator and Shuffler
 
This is a playing card deck creator and shuffler i made yesterday. It is very simple now, but i beli...
[1 reply] : #include <iostream> #include <string> #include <ctime> #include <algo... (by JLBorges)
Can I get help with this code?
 
In C++ language please!!! Suppose we have a set of data consisting of ordered pairs and we suspect...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by keskiverto)
Trying to make a Grid in DirectX
 
I am trying to make a grid in DirectX, but I keep getting the error "Access violation writing locati...
[5 replies] Last: I just figured it out thanks to this website: http://www.toymaker.info... (by jheard901)
Simple question about strings
 
Hello, can someone please tell me what I need to do to make this work? #include <iostream> #inclu...
[2 replies] Last: Thank you :) (by TheRealAnonymous)
by sambid
gui programming
 
I have previously experienced with c++ console programming with turbo and dev c++ compilers but now ...
[1 reply] : The usual multi-platform answers to this question are: Qt, SFML[+ opt... (by Ganado)
C++ Program Freezes/ Fails to Continue Randomly
 
I'm currently learning C++ and I am working on a text-based game: battleships. It all works fine exc...
[3 replies] Last: Hi, I have some thoughts to improve your code a bit. I completely f... (by TheIdeasMan)
While loop problems
 
How do i write my coding in DEV C++ using while loop for this question : Write a program to displ...
[1 reply] : You can use std::cout to display a number. std::cout << number; ... (by Peter87)
Quicksort Descending Order?
 
I've tried Googling my question, and I've tried experimenting with my code on my own, though I'm not...
[7 replies] Last: You were not messing with the correct lines. Remember, your compariso... (by Duthomhas)
August 2014 Pages: 1... 1617181920... 25
  Archived months: [jul2014] [sep2014]

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