General C++ Programming - July 2013 (Page 18)

by otman
How can assign a class value to another nested classes in C++
 
this is the first time to ask my question on Cplusplus. my qustion is i got this message when i trying to run this code: object.h #ifndef __NCTUNS_nslobjec...
[2 replies] Last: your calling a constructor you didnt make (by closed account Dy7SLyTq)
shared_ptr in boost library
 
hi can some one tell me how shared_ptr works? i read this page but i can not understand... it doesnt have example in this page http://www.cplusplus.com/refere...
[3 replies] Last: shared_ptr has two members 1. the pointer to the object 2. the pointe... (by coder777)
casting problem with virtuals
 
Hi all, I have a problem where my derived class is losing its state data. some isolated code is below, the problem manifests itself in CClassD::DoExtras(). C...
[7 replies] Last: @JLBorges my mistake, CClassB has a virtual dtor() but CClassA doesn'... (by Jaybob66)
by kaiwei
a simple problem for output
 
If I write the following code: #include <iostream> #include <string> using namespace std; int main() { int a; cin >> a; cout << a << endl; ...
[4 replies] Last: Again, thanks! (by kaiwei)
unknow error
 
my compiler is giving me an error that vector is not template I'm using visual studio 2012 template <> class vector <bool> { // interface priv...
[4 replies] Last: then the compiler again give me same error Because you're still not... (by andywestken)
How to use Excel Libraries in C++ Project
 
I want to read/write the excel sheet using C++. Can please anyone suggest me how to add the excel library or include the headers ? Inot possible than is t...
[4 replies] Last: The project that coder777 provided a link to looks rather dated (it's ... (by andywestken)
Destractor
 
Hello I am trying to understand when i need to use "delete". I want to understand if i have dynamic declaration for object called X inside the class(named my...
[1 reply] : > myclass* first= new myclass(); give me one good reason to have t... (by ne555)
error help
 
Hey Programmers I have decided to write my own camera calibration program instead of using findchessboard corners because of its inability to detect corners wh...
[4 replies] Last: because calibration.cpp is a pre built function file that is in the op... (by asda333)
Adding large integers
 
I am working on this code, and it will not run. I cannot tell what is wrong with it. Please help. In C++, the largest int value is 2147483647. So, an integer...
[7 replies] Last: Thank you so much. I couldn't figure it out to save the life of me. Bu... (by Boomers)
Encrypting/Decrypting strings
 
Hey guys i just registered and I love this forum, I had my love for programming revived even though I'm a beginner. I have a simple decryption program but I can...
[3 replies] Last: Thanks guys, my program works now (by nutty craze)
by Snaksa
Functions Error
 
Hi! I have this code: template<class T> void map(int (*f)(int), Node<T> *node) { if(node == NULL) return; map(f, node->Left); f(node->data...
[4 replies] Last: Lol, thanks. I didn't expect that the template can be the problem :) (by Snaksa)
goodfeaturestotrack
 
Hey guys Does anyone have experience with goodfeaturestotrack. I am using it to detect corners and i have printed a sheet with an L shape on a green backgrou...
[no replies]
Please help me find relationship b/w 2 hex strings
 
Hi Everyone! I'm actually trying decode two hex strings to find a relationship between them. I have logged some communication between ECU and a trouble code sc...
[no replies]
Database Connections in VS2012
 
Hi, I'm currently working on a program that needs to access information from a database. I'm using Microsoft Visual Studio 2012 to compile my project and know t...
[no replies]
sscanf.
 
So, as I was searching for easier ways to parse tagged txt files, I came across this amazing function, sscanf from <stdio.h>, which seems to be the perfect thin...
[3 replies] Last: Thanks guys! That worked! And I will check this regex implementation i... (by CPlahPlahLearner)
Please help !!!
 
#include <iostream> #include <iomanip> using namespace std; int main() { char * str; char * str2; char b ; b = 'H'; b = 'e'; b = 'l'; b ...
[2 replies] Last: Appreciated. (by vFreeman)
by minak
TCP server
 
Hi I trying to learn tcp server and client that runs on different machine! this code works when they are running on the same machine. when I set the IP addrees...
[1 reply] : And did you look up in google what does that error code mean? they po... (by tath)
Website API in C++
 
I am trying to make a program for the web game Nationstates.net using their api http://www.nationstates.net/pages/api.html and I want to know how do I call that...
[4 replies] Last: @Zhuge I am using Visual Studio 2012 Express for desktop, plus I've ad... (by snova332)
Object Inheritance
 
I have to debug/add code to this incomplete program. I implemented it as given, and no errors pop up so I have no idea what's wrong. I have already went through...
[5 replies] Last: Yep, I think you hit the nail on the head. Good work. (by Zhuge)
by tp11
Hash Table Question
 
I'm trying to create a hash table, but for some reason its not working. Maybe it has some logic error. I'm trying to do linear probing.
[2 replies] Last: I guess this code should show you some error. You have only one return... (by MatthewRock)
July 2013 Pages: 1... 1617181920... 34
  Archived months: [jun2013] [aug2013]

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