General C++ Programming - April 2010 (Page 20)

C++ question
 
Hello all you pros out there. I have a question. First off I have taken an intro to c++ class last semester at my local community college. This semester I am...
[11 replies] Last: Wait... fifth? I have the fourth from last summer... Where's the fift... (by tummychow)
Next C++ book to read?
 
I am finishing up reading "C++ Programming, 4th Edition: From Problem Analysis to Program Design" and I was wondering what the next book I should read is. I'm l...
[1 reply] : http://www.cplusplus.com/articles/Grey_Wolf6/ It's going to depend a ... (by tummychow)
by RET80
using const char*[] and compile time errors
 
Hello folks, new to the board. I have a compile time error in my C++ program that reads: error C2440: 'default argument' : cannot convert from 'const char ...
[2 replies] Last: bingo, totally fixed. Thanks! (by RET80)
by meesa
[C++] for_each() gives errors C2896 & C2784
 
Here is the code: #include <algorithm> #include <iostream> #include <vector> using namespace std; template<class T> void squared(T &root){ root*=r...
[5 replies] Last: Thanks. (by meesa)
what is the function of "extern" in C++
 
Dear all, I have problem to understand what is the function of 'extern' and how to use it..?..Hope you all will explain to me about this function and give s...
[7 replies] Last: dont forget to put extern "C" inside #ifdef __cplusplus, otherwise c c... (by writetonsharma)
question about boost static library linking
 
maybe not a right board to ask boost questions. but it is quite intriguing for me and may be helpful to better understand c++ compiler. when I link a static ...
[3 replies] Last: probably some #pragma nested in a million #ifdefs magic/hell. (by Disch)
vector definition question from a beginner
 
I have a code which defines a variable in a function in the following way: vector<vector<char> > const &data Does that mean the &data constant is a vector...
[4 replies] Last: Take this for size: #include <vector> using std::vector; v... (by closed account S6k9GNh0)
Cyclic dependencies
 
Hello, I am currently in the process of creating a small game using SDL. I have been working on a state manager that manages switching between for example th...
[5 replies] Last: All those are talking about cyclic dependencies between modules, which... (by helios)
fastest way to get the type
 
Here's what I have: struct Apple{...}; struct Banana : Apple{...}; struct Cyanide : Apple{...}; struct Donkey : Apple{...}; //and so on... void Eat(Banan...
[15 replies] Last: ha! next exercise...triple dispatch! (by choisum)
Which is faster static or dynamic linking?
 
Which is faster static or dynamic linking? How much performance improvement can dynamic linking yields in comparison to static linking.
[7 replies] Last: In my scenario, it would be the "link time of whole project + load tim... (by imi)
can anyone explain this for me?
 
function A*(start,goal) closedset := the empty set // The set of nodes already evaluated. openset := set containing the initia...
[1 reply] : This is how it works, but its been a while since I looked at it. ... (by caswal)
compile error with inline/non-inline function
 
I have a class with an enum and a simple method like this; class MyClass { enum Code { A, H, M, Q, S}; Code foo( char ch) { switch (ch) ...
[4 replies] Last: because MyClass::foo can not see the Code (by wellman)
DLL files for Excel
 
I am a relative newcomer to C++ and am limited to writing console applications at the moment. I would like to write functions in C++ for use in Excel via DLL f...
[1 reply] : I imagine there should be something of use here: http://msdn.microsoft... (by helios)
Binary
 
This is a question on generating a binary executable for a specific purpose. I have a tool (pintool), that I am using to instrument the number of instruction...
[2 replies] Last: You have to separate the compile and link stages. So you can control t... (by choisum)
Priority queue push and pop operations
 
Hi, The STL tutorial on this site says the push and pop operations of a priority queue is O(1) in complexity. Though they do mention that push_heap and pop_h...
[no replies]
Adding c-string
 
This assignment requires that I allow a user to enter a string of numbers without any spaces and add them up and find the high and low numbers in the string. E...
[1 reply] : You can convert the ASCII character '0' to the decimal value 0 by subt... (by jsmith)
HugeInt class/data type
 
i am doing a project at school but i am having problems that even my instructor can't help me figure out. exercise: (HugeInteger class) create a class Huge...
[7 replies] Last: Both Duoas and I pointed out the problem in our posts. (by jsmith)
Array Creation at run-time in c++/Linux
 
Dear Friends, I have a text file from which i read a number of names with their lengths at the run-time. Now i want to created a char array having the length...
[9 replies] Last: Well c++ is a totally different language. I'm not sure why it matters... (by kempofighter)
Does this modulus operator function work for all integers?
 
Does the following modulus operator function work properly for all integers? /*------------------------------------------------------------------------*/ /*...
[1 reply] : The built-in integer type operators are defined for all built-in integ... (by Duthomhas)
by qabil
without registry
 
how we make our program can runing at start up without using add key in registry
[5 replies] Last: roger that.. thnx brot (by qabil)
April 2010 Pages: 1... 1819202122... 24
  Archived months: [mar2010] [may2010]

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