
please wait
Boost-like matrix of smart pointers? |
Hi all, For performance reasons I need to build a matrix of pointers to objects instead of plain objects. Whenever I require a big matrix I usually go for th... |
Jul 1, 2014 at 6:11pm
[1 reply] : Line 11: Node is on the stack. Although Node is pushed on the stack ... (by AbstractionAnon)
|
by venkatacplpl
c++ program:unexpected output
|
#include<iostream> using namespace std; struct elem{ int a; int b; }; void display(elem *ptr); int main() { elem *ptr=new elem(); displ... |
Jul 1, 2014 at 5:48pm
[1 reply] : Do you realize that you have computed the difference of the pointers i... (by jlb)
|
by Reaper2984
pseudo code
|
i'm reading c++ how to program by paul deitel. im having some problem with ex 4.13. Drivers are concerned with the mileage obtained by their automobiles. One dr... |
Jul 1, 2014 at 2:43pm
[2 replies] Last: Thanks (by Reaper2984)
|
by Salman0349
C++ Gui
|
Since i m new to c++ gui so tell me how to use QT .... I mean how to make simple hello world program in QT ..... I dont know How to open the correct wizard to... |
Jul 1, 2014 at 2:38pm
[12 replies] Last: Thanks to all of you i have got it working .........yeahhhhhh (by Salman0349)
|
When displaying the months with the highest and lowest rainfall amounts, it displays month nan. |
#include <iostream> using namespace std; int main() { const int NUM_MONTHS = 12; // Constant for the array size double rainfall ; // An a... |
Jul 1, 2014 at 1:56pm
[3 replies] Last: What is the value of count ? Consider this code: for (count = 1; co... (by Chervil)
|
C++ Primer thousand pages? |
Why is c++ Primer contain a thousand page? I mean most books teaching c++ is not that long. Is there a reason for this? Is there a book that is close enough... |
Jul 1, 2014 at 1:46pm
[11 replies] Last: nope :) (by mutexe)
|
by f8al
Help understand a class question
|
I had a question like this You are writing a computer game and you are going to allow the player to possess various items in the game, such as weapons, armou... |
Jul 1, 2014 at 1:42pm
[2 replies] Last: But if I was going to put this in C++ wouldit by like this Not exac... (by Z e r e o)
|
by manolismi
Class constructor problem
|
Hello can anyone tell me what's wrong here: #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include <cstdio> class Button { public:... |
Jul 1, 2014 at 11:25am
[1 reply] : printf is displaying 1 for me. Everything in my code should be same as... (by Ganado)
|
by ibdv4521
First Application Idea
|
Ok, my question is that I want to make a program that pulls a certain string of characters from amazon websites url in the address bar(the characters right befo... |
Jul 1, 2014 at 9:13am
[5 replies] Last: I would love to use firefox, but the guy I am trying to write this fo... (by ibdv4521)
|
by LsDefect
Extract word from string
|
I've never really spent the time getting into more string manipulation than I thought necessary so it's beginners forum section time. Let's say I have a long... |
Jul 1, 2014 at 8:48am
[3 replies] Last: Yep those two functions made it easy, thx. (by LsDefect)
|
by Winter
cout a string variable?
|
A little confused here, I'm getting this error. http://i.imgur.com/PKJp2eF.jpg EDIT: char* works for me, i'm not quite sure what strings are used for. #inc... |
Jul 1, 2014 at 6:42am
[4 replies] Last: String is much more convenient than char*. http://www.cplusplus.com/re... (by keskiverto)
|
by Rockyy
Writing Hexdata to file
|
Can any one let me know a small function which write hexdata to file. Suppose if i give input ffff,0x42.. Output should be written to file similar as input. ... |
Jul 1, 2014 at 6:11am
[1 reply] : Use read/write. Remember to open the file as binary. (by kbw)
|
by yepMe
File static and unnamed namespace
|
Hi all, Kindly explain these two terms, I do not want the difference between them, just explanation of them. |
Jul 1, 2014 at 6:11am
[8 replies] Last: The whole (small) program can be in one translation unit. http://stack... (by keskiverto)
|
by prodo5050
I want to learn Embeded program
|
I have been worked for 3years as a window programmer. My most work make serial or TCP/IP program. I read data from firmware. But the problem is i ... |
Jul 1, 2014 at 4:03am
[2 replies] Last: Thanks (by prodo5050)
|
by mehak
program to list all files of .txt extension
|
i am trying to list all files in the directory with .txt extension but in vain.please help me with the following code. #include <dirent.h> #include <std... |
Jul 1, 2014 at 4:01am
[4 replies] Last: #include <dirent.h> #include <stdio.h> #include <string.h> int main... (by mehak)
|
by jynx678
Compiler Error
|
This program is supposed to read data from a file and determine whether or not the string is a pangram. I had it working perfectly as a char array, but when I ... |
Jul 1, 2014 at 3:38am
[1 reply] : At line 17 you are not initializing one string, but an array of string... (by Yay295)
|
by Sharan123
Problem with compiler or IDE or OS ?
|
I have a problem when i try to debug a program sometimes it keeps on debugging forever and the break debugging doesn't work too , it's so fraustrating i have to... |
Jul 1, 2014 at 3:29am
[5 replies] Last: Throw some extra code into the program to print out where it is in the... (by dhayden)
|
by dark ninjuh
incorrect loop bug
|
hello. i am writing an Opengl application that manipulates a cube by rotating all 3 axis's using the keys on the keyboard while also having the option to modify... |
Jul 1, 2014 at 1:38am
[1 reply] : found the problem. don't know why i over looked it. i needed else if's... (by dark ninjuh)
|
by CocaCola9898
Arrays and Functions
|
Hi, Im having trouble with my C++ assignment and was hoping for some help. I need to create multiple functions and arrays. The first function needs to take i... |
Jul 1, 2014 at 1:27am
[2 replies] Last: So you're problem is that you don't know how to put this into multiple... (by gingy)
|
GCD the Brute-Force Way |
Ok. I already wrote a program to compute the GCD of 2 numbers using Euclid's algorithm, but now I have to write another program to compute the GCD of 2 numbers ... |
Jul 1, 2014 at 12:19am
[11 replies] Last: There's no such thing as a greatest common factor. Now, a least common... (by helios)
|