General C++ Programming - December 2010 (Page 12)

fatal error C1075: end of file found before the left brace '{'
 
I really don't know what is going on with this guys. I know there is still a little bit of work to be done but any help would be appreciated. I do not have an...
[3 replies] Last: Thanks guys. The program is running now.. Just need to sort some oth... (by Kevmesh)
by Bunty
How to pass std::smart_pointer to a library function accepting void*
 
Example: class A() { std::shared_ptr<A> x; void passShPtr() { recessive_from(x); } } receive prototype is receive_from(void* ); Note:-...
[1 reply] : well, shared_ptr has a get() function for the underlying pointer. B... (by coder777)
by aj3423
about boost regex iterator
 
Hi, I have a html tag: string html = " <a target=\"_blank\" href=\"http://www.google.com\"> "; and I need to get the http://www.google.com I know there is...
[no replies]
Sending commands to a CoD server
 
I decided to try to make a rcon tool for my clan. I'm working on the interface right now, and that's going along smoothly. However, once that's done I don't kno...
[3 replies] Last: Once you get your sockets up and running, you would want to think of t... (by sohguanh)
by alnews
Strange behaviour of overloaded '>>' operator.
 
Hello guys, I'm just getting in overloading, I'm trying to overload the stream, sum and product operators to correctly use them with a class named "Complex", t...
[3 replies] Last: It's the enter key. It was still unread, so you should clear the buffe... (by rocketboy9000)
Problem with Backtracking!
 
Hello, i have a homework to do, and im really messed up! I need to do the knight's game void Echiquier::Placer_Cavalier(int i,int j) { int x = i; in...
[no replies]
by MissG
Saving a string to file?
 
void ascii (int number); bool raffle (int number); const int cArray=5; int main () { int value; char option; while (1) { ...
[2 replies] Last: Wolfgang, Thank you so much! I made the changes you suggested and it ... (by MissG)
Data file
 
Can you take a look at my work below and post your thoughts? I am new to C++ and the assignment is to open a data file with employee info and run a payroll syst...
[1 reply] : is the file really there, is it made out of numbers, are you sure ther... (by hamsterman)
generate reports
 
I do not know any way to generate reports automatically, wanted an indication of a tool or library for generating reports in C + +. Thanks in advance!
[7 replies] Last: Qt has printing to PDFs built in IIRC. Just set the output to pdf in q... (by closed account z05DSL3A)
Is it possible to make two member functions of two classes each other's friend?
 
Hi, all: I am troubled by the following problem. Suppose I have two classes X, Y both have a private part. Then X::f and Y::g are two member functions of X a...
[2 replies] Last: Thank you so much! That's indeed enlightening! (by mathwang2)
Doubt about delete keyword and char*
 
Hi, In the code snippet below, the program gets crashed at delete operator.What would be the possible cause, after doing lots of modification with this code. I...
[7 replies] Last: Thanks a lot u all! (by dearvivekkumar)
by trig
making a GUI program, what program should i use
 
Hi, basiclly i am making a GUI program that has multi touch functions, but i dont know which would be easier to make it in.....visual basic.NET or visual studio...
[4 replies] Last: Hi, thanks for your reply I am not a completely new started i under... (by trig)
Runtime error with Activator::CreateInstance
 
Hi all, I have taken over a piece of code developed by a contractor. This code appears to run fine on him machine from Visual Studio, however when I try the ...
[no replies]
by goldn
compiler error: undefined reference to etc...
 
I'm new to c++ programming and started to work my way through the book Accelerated C++. When I tried to compile the program from Ch4 which had header files and ...
[2 replies] Last: Edited, yes I did include Student_info.h When I searched to find a so... (by goldn)
segmentation fault
 
I get segmentation fault with this code: #include <iostream> #include <fstream> #include <string> #include <vector> #include "Class_Equipment.h" #includ...
[3 replies] Last: It was indeed what kbw was thinking off, thx for the help guys! (by Toongun)
by primes
nothing
 
nothing
[2 replies] Last: Are you expecting someone to do your homework for you? (by closed account z05DSL3A)
Dynamic memory allocation
 
I was studying for my exam, and I came across the following question: How many instances of MyClass exist in memory when program execution reaches point X? ...
[6 replies] Last: Thanks. (by dalbir4444)
by kdub
dynamic method binding in destructor (or lack thereof?)
 
Hello, Could anyone shed light on any different static and dynamic binding rules during execution of a destructor? I expected that RTTI and dynamic binding ...
[3 replies] Last: Ok. So, I can't expect the overriding method to be called. Thanks, j... (by kdub)
code not compiling when i run it
 
#include <iostream> #include <string> #include <stdio.h> #include "GeneralHashFunctions.h" using namespace std; struct NodeType { int x; N...
[3 replies] Last: first DJBHash() results an unsigned int you should stick to it whe... (by coder777)
error c3767
 
My program was running fine. Suddently i have this error and i dont know how to fix it.Anyone please help me!!! it says candidate function not accessible. pr...
[2 replies] Last: Try: private: System::Void btnPlay_Click(System::Object^ sender, S... (by closed account z05DSL3A)
December 2010 Pages: 1... 1011121314... 24
  Archived months: [nov2010] [jan2011]

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