General C++ Programming - March 2012 (Page 37)

curl library errors
 
I am getting the following errors when i try to include easy.c : easy.c:318: error: expected identifier or '(' before '__extension__' easy.c:318: error: expec...
[3 replies] Last: > I couldn't find curl_easy_init in curl.h Then you don't have curl/... (by JLBorges)
by viliml
polish notation
 
I am trying to make a code for polish notation, but it doesn't work. Here's my code: #include <cstdlib> #include <iostream> #include <stack> #include <cstr...
[2 replies] Last: no i mean single digits becouse it won't work with multi-digit numbers... (by viliml)
by cbrew
Iterative inorder traversal BST
 
it outputs 7 infinite times. 7 is the smallest number in the tree. void iinorder(treetype *stack , int &top, treetype *root) { treetype *c; c = root; b...
[3 replies] Last: That's because you are trying to pop from an empty stack. while(!do... (by ne555)
who can help me in this poblem
 
Hello there i'm a new student in c++ and I need your help guys please in my assignment ------------------------------ • Write a program that will contain ...
[9 replies] Last: @therockon7throw thanks bro I appreciate that (by thepoor)
Public vs private inheritance?
 
In my comp sci class today, we learned that C++ allows the inheritance itself to have a visibility. What does that mean? I don't really understand the concept.....
[3 replies] Last: What does that mean? public inheritance is the "is-a" relationship.... (by Cubbi)
Returning a value from a function
 
I have almost figured this program out...but I need to be able to return the values from the function. It should return the number of perfect scores there were ...
[7 replies] Last: Congrats :) (by Krahl)
std::sort implementation
 
Can someone point me to the std::sort implementation? I need to know if it uses new to allocate memory at all. It should, but I want to be certain. Thanks...
[4 replies] Last: No, it does not use new (or any other allocation function) to allocate... (by Cubbi)
Game structure
 
Ok so ive been working on a mario clone game for a while and i realized that if my code continued to grow larger at the rate that it was, it would become extrem...
[7 replies] Last: http://code.google.com/p/cpp-events/ (by Azagaros)
Placement new operator
 
Does it make sense to catch for exceptions after placement new operator? Thanks!
[2 replies] Last: Well, if I understand correctly, placement new will construct an objec... (by webJose)
How can a function return an array?
 
I read some article that said that this was possible: declaring the function Double GetNumbers() ; and then later defining the function Double GetNumbers...
[4 replies] Last: Are there any good alternatives? Normally such functions return vect... (by Cubbi)
Encrypt string or source
 
hi guys i have source c++ i want encrypt source or some string... coz after compile the c will be exe.. i want if some body edit exe in hex editor do not se...
[3 replies] Last: Giving complete solutions is frowned upon here. Depending on how stron... (by shacktar)
by nivek
Class pointer.
 
class class1 { //variable declaration }; class class2 { public: int func(void *msg); // others func... }; int class2::func(void *msg) { ...
[2 replies] Last: Thanks..now i get it (by nivek)
Debugging
 
missing function header [old-style format list?] what does it mean? what are the things i need to do?
[2 replies] Last: Based on all his other posts, I'm guessing he stuck a semi-colon after... (by Moschops)
HEX to DEC
 
Hello Does someone knows a good HEX to DEC converted written in c++? I wrote one but it only works if user inputs a code and not when a code is programmed. (i...
[19 replies] Last: Sorry, I'm just sloppy and impatient sometimes. My code should have b... (by Texan40)
Structures and Limits ? Need help
 
hi guys, saw this code and added a structure...is it possible? if not is there another solution ? thanks #include <iostream> #include <limits> struc...
[1 reply] : You have an array of profile called voter. Accessing any profile with... (by Texan40)
Static vs dynamic binding
 
What's the difference between static and dynamic binding. I'm reading my C++ book and can't wrap my head around it. What impact do they have on the behavior of ...
[4 replies] Last: In a very simplified explanation, static binding occurs at compile tim... (by clanmjc)
abstract methods?
 
What is the equivalent in C++ of an abstract method in Java? What's an example of the C++ syntax for implementing that. What is the C++ equivalent of a Java abs...
[1 reply] : look up the `virtual' keyword (by Texan40)
friend
 
What is the conceptual purpose of the C++ reserved word friend? What does it enable that would not otherwise be possible?
[1 reply] : The friend of an object can access private and protected members from ... (by ciphermagi)
error C2447: missing function header (old-style formal list?)
 
#include<iostream> using namespace std; int main(); { //1 char board = {}; bool inviboard = {}; int turn = 0; int n = 1; char ans...
[7 replies] Last: You ADDED cdecl main(void) ? Why would you do that? What are you com... (by Moschops)
copy one string into another
 
how to copy one string into another using LOOPS.(i am talking about default string class)?? the code given below does not work. please teach me void function...
[7 replies] Last: [quote=LB]It is more efficient to either use operator= or to resize st... (by LB)
March 2012 Pages: 1... 3536373839... 49
  Archived months: [feb2012] [apr2012]

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