General C++ Programming (Page 41)

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 Duoas)
class 'A' is no direct base of class 'B'
I have something like this class A{//interface}; //implementation class B{//interface includes a...
[2 replies] Last: Oh! what the socket, I'm too stupid, I was using 'A' the class name in... (by danicpp)
logic behind initializer list
Well if I have code like class a{//interface}; //implementation for class "a" class b{//interf...
[4 replies] Last: Oh yess!!! this makes sense like B::B(){ aobj.somework(); } ... (by danicpp)
Question: constructor in constructor question (heap vs stack)
Hi guys, I have a questions that's been bothering me for some time. Here's the scenario... ...
[3 replies] Last: Thanks guys, that anwsered my question (by toomanystars)
by bw119
Functions and ofstream
I have one function(s) that's purpose is to write back some information onto a file, and also in my ...
[1 reply] : Instead of creating a new ofstream in function1(), it needs to use the... (by Chervil)
How to link a Switch statement to a if/else.
Hello, I'm just a newbie to programming, could you help me solve this problem of mine. The sample ou...
[1 reply] : scanf("%d", &x, &y, &d, &m); This will never change y, d, or m becau... (by dhayden)
static variable initialization problem
When I try to initialize static variable from within the constructor the compiler exits and return e...
[2 replies] Last: Thankyou kbw, I got it constructor could do with static member too but... (by danicpp)
by fi50
SDL Animation
I'm not really sure if this is the right place to post a question like this, although the question i...
[4 replies] Last: Ah. Thanks for your time mate. You've been a great help. :) (by fi50)
Range based for loops
Can anybody explain Range based for loops ?
[7 replies] Last: It's a bit inconsistent compared to the rest of the tutorial code. (by Peter87)
by bw119
Problem with functions in classes
Hi, this is my code #include <iostream> #include <vector> #include <cstring> using namespace st...
[2 replies] Last: Thank you so much. You are a life saver! (by bw119)
Struggling with Vertex Shaders
I am learning to render objects with vertex shaders after just getting the hang of rendering objects...
[1 reply] : I figured out how to translate the rendered objects with a shader thro... (by jheard901)
please help
I cant figure out why my program goes into an infinite loop when i exit my entries. // LinkedL...
[1 reply] : for(NameDataSet *pIter = pHead; pIter; pIter -> pNext) Did you mean p... (by helios)
How to output console display to a txt.file?
Hello people! i am currently doing a complex number calculator ,and i wish to output my data to a tx...
[6 replies] Last: JLBorges redefines what std::cout does. Other code does not need chang... (by keskiverto)
generic linkedlist in c
I am currently learning the C programming language, and I decided to implement several data structur...
[1 reply] : I found the correct solution to the problem. Upon creation of the lin... (by haglerchristopher)
Function matching and Argument-dependent lookup
#include <iostream> #include <string> std::ostream& operator<<(std::ostream& os, const std::str...
[3 replies] Last: The declaration shown in the link you provided is a simplification. Y... (by cire)
Why is the exception?
Hello. All I know in that I get an exception. I don't know the reason.Here is my code snippet: ...
[1 reply] : If you run this from a debugger and reproduce the exception, the debug... (by Disch)
Input does not enter buffer when sleeping
When the program is processing/sleeping, those char input at that time would not goes into the buffe...
[3 replies] Last: C++ streams do not have time stamps. What are time stamps? Does othe... (by Nikko YL)
Pages: 1... 3940414243... 47
  Archived months: [jul2014]

Cannot post in this page. To post a new message, go to the first page.