General C++ Programming - August 2011 (Page 20)

#include <string> not working
 
I am creating a class that hold's some strings however even though i am including string.h it doesnt seem to recognise the type string, here is my class: #in...
[2 replies] Last: great thanks Disch, using namespace std; fixes it (by hastingsdirect)
error: 'class1' is not a direct base of 'class2'
 
Hello, I've got a question involving simple class inheritance. I'm trying to compile a code like this: class A { public: A() { /* construct th...
[4 replies] Last: I guess that makes sense. As long as I don't try to initialize members... (by Tanatos)
Randomizing multidimensional vectors
 
Could someone show me an example of randomizing multidimensional vectors? I found a tutorial for one dimensional vectors but can't figure it out. int a1[ ...
[3 replies] Last: You would random_shuffle( a1 , a1 +100 ); . There is a million other ... (by hamsterman)
IDirect3DVertexBuffer::Lock( ) Help
 
I'm not understanding the IDirec3DVertexVertexBuffer9::Lock( ) method. Firstly, here's my method: template < typename T > HOLOBYTE T_VERTEXBUFFER_HANDLER::...
[no replies]
Screen control
 
Alright, Couldn't think of a better title so that's it. I've actually got a couple of questions I'd like answered, though... So if you could, I'd be really than...
[1 reply] : C++ has no knowledge of a screen, a mouse, clicking or anything like t... (by Moschops)
Why Constructor does not have a return type?
 
I know its a very basic question- but I really don't know why constructor don't have a return type and why can't they be static, const and virtual? Anybody hav...
[15 replies] Last: Constructors can not be static because they rely on the this pointer... (by rapidcoder)
by fsshl
what may cause no matching function call to 'xalanc
 
Dear c++ experts: I am trying to test a piece of simple c++ code from book(c++ cookbook) Example14-22 (Performing an XSLT transformation with a precompiled ...
[2 replies] Last: thanks your reply but it still not work (by fsshl)
Dynamically allocating an array of pointers
 
This is much harder than I thought it would be. The goal is to have the size of the array be determined at runtime by the user. The following code makes an arr...
[1 reply] : int **Arr = new int*[ some ]; (by hamsterman)
Polynomials, help ?
 
Hi, I wonder if you have any alternative to print envelopes the degrees of polynomials. for example: 2x² +3 = 0 apologies to English
[no replies]
Is it common for advanced professional coders to pass the deadline and get yelled by the boss?
 
I don't have a programming job but I heard that it's a real pain in the ass a myth or fact?
[3 replies] Last: I used to be a developer at a Bank like Andy. I have never been yelle... (by James Burnby)
Attemping to create a specialized file indexer (Moved from Beginner)
 
Hello, I am relatively new to programing, only took programming I and II so far, and I am attempting to create a program that gathers information on files in a ...
[5 replies] Last: I totally agree!! The only CLI specific code looks like the directory... (by andywestken)
Dynamically allocating a 2D array
 
When you know the number of columns (3 in this case). The rows will be entered by the user. Here's how I had it, but apparently this is the wrong approach becau...
[1 reply] : You've almost got it, you dynamically assign memory through pointers, ... (by quirkyusername)
C++ Outputting and Inputting form Txt
 
Hi, I'm trying to work on a program to read 'default' values from a txt document (conveniently named default.txt). However when I run the program it will print...
[3 replies] Last: Hi Your title says "C++" but your code it pretty much all "C". Is thi... (by andywestken)
Interesting Error For Unicode SDL Function
 
Basically, I've been dealing with a String Input Problem in SDL for some time now, I was browsing the forums for help on gamedev.net and I found this function, ...
[no replies]
Porgram Development
 
Is this a school project because I'm pretty sure that's called cheating.
[3 replies] Last: Reported. Not because I disapprove (which I do) but because it's in th... (by helios)
error C3861 identifier not found
 
Hello. I"m new here, so bear w/ me. I'm coding a DLL to be used in the Metatrader platform. I've been successful in passing the data between the 2 platform...
[1 reply] : solved it. I moved the get_signal function up above the other 2. (by Non Disclosure)
Equivalent of Enum for Strings
 
I studied enums which expects only integer inputs and returns corresponding value to it.I want to achieve same thing but I only have strings as a input. I want ...
[10 replies] Last: Well, this code is not esp. speed critical. So as you say, with a smal... (by andywestken)
PLS HELP with our Kinematics program
 
Me and my friend were suppose to do this project as our school as a computer programming module for us,pls help,we need this done by friday,pls pls help.We are ...
[5 replies] Last: Here is a good place to start #include <iostream> int main() { ... (by jloundy)
cool ideas?
 
anyone got any cool ideas for projects?
[5 replies] Last: Online testing for distance learnings with web interface and automated... (by slmnv5)
multiples of an integer
 
I need an easy way to stop my iterations at a certain number plus its multiples so that i can output a specific character every time I reach that value " c " (a...
[1 reply] : If I understand the question, that is the answer: you can use !(i % c)... (by Syuf)
August 2011 Pages: 1... 1819202122... 29
  Archived months: [jul2011] [sep2011]

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