49,757 Topics

Member Avatar for
Member Avatar for NathanOliver

Hey all, I'm looking to upgrade my compiler and I was wondering if there is a compiler that is fully c++0x supported yet. If not is there one that is mostly supported? I am currently using MSVC++ 2005 express. I would like to stay in the MSVC++ family since I …

Member Avatar for NathanOliver
0
365
Member Avatar for Dingbats

Hello everbody Simply put; [I]rand() is driving me nuts[/I]. I've been trying to get my teeth into Dev c++ (v. 4.9.9.2) for the first time and couldn't find anything anywhere which helped me anymore. Nearly all this code is IDE generated or copied from examples - I'm just trying to …

Member Avatar for Dingbats
0
1K
Member Avatar for gujinni

[code]#include <iostream> #include <cassert>//what is the use of this??? #include <algorithm>//how to convert in turbo c++ and what is the use this??? #include <vector>//is this array in turbo c++??? using namespace std; int main() { bool result;// what is the use of this?? string s("abcde"); string s2("aeiou"); vector<char> vector1(s.begin(), s.end());// …

Member Avatar for gujinni
0
372
Member Avatar for mic_mic

hello every one , i am working on this code for a week , but i have a problem that every time i try to debug it i receive many errors i can't understand them here is my code [CODE]/* Simple program to compute the two possible roots of a …

Member Avatar for mic_mic
0
349
Member Avatar for tomtetlaw

I am trying to write a few functions that work when compiling for windows AND linux, and I can't seem to find the linux equivilent of a few windows functions. If it's of any relavance I intend to use GCC to compile for linux and VC++ to compile for Windows. …

Member Avatar for mike_2000_17
0
192
Member Avatar for riotburn

I have this hw problem, but I can't figure out what the problem is. If I run this code I get an assertion error. Also if i run without commenting out the return outStream line, it won't compile saying I'm converting an istream to ostream. Any clues? [CODE]#include <iostream> #include …

Member Avatar for Stefano Mtangoo
0
194
Member Avatar for merse

What is the maximum length of an argument in the command line? It is not the same under DOS and Linux?

Member Avatar for Ancient Dragon
0
123
Member Avatar for sha11e

I made myself a little autoclicker in c++, but after it's done, I want the console window to come up again, so the user can decide wether to do it again, or end the program. How do I do that?

Member Avatar for m4ster_r0shi
0
1K
Member Avatar for pseudorandom21

So.. I want information on drawing on top of a DirectX game, like how Steam does it. I would consider naively trying to obtain a "device context" of the client area of the game's window, and then try some 2D drawing functions. D: I don't know if that's going to …

Member Avatar for pseudorandom21
0
323
Member Avatar for Voidz

Hi, I know how to do it in the console, but when it comes to Win32, I can't I've tried all those #includes(with Windows.h), and it doesn't let me. Anyways, if you guys know how, please share, I'd like to know.

Member Avatar for 1ML
0
543
Member Avatar for milan2011

Hi everyone, I want to implement an ADT Queue class (pointer base) use Template with following public interfaces: enqueue,dequeue,dequeueAll,peek,and size. I have 2 problems: 1.not sure how to dequeueAll which is removes all elements from the queue with Postcondition: size( ) returns 0 2.for dequeue and peek I need to …

Member Avatar for milan2011
0
978
Member Avatar for ana_1234

Hey, Does anyone know how to cpy from one file and redirect to another. I know I have to use the ofstream but I'm stuck. [CODE] while (!in1.eof()) // while not end of input file { in1.getline(current, 100); // read a character from input file out1.in }[/CODE] I'm stuck. I …

Member Avatar for Narue
0
339
Member Avatar for pissman

Hello, I was working on my Server - Client comunicating programm for moonth or more, when a tricky issue had met me. I works so: Server does certain commands if client types certain commnads, and I need need the Client to do certain commands if Server types certain commands. I …

Member Avatar for pissman
0
298
Member Avatar for Fatooma

Me too I have a problem with deep copy help me.. this is my code i am using visual studio 2008 [CODE]#include<iostream> #include<string> using namespace std; class Street { private: int stretNumber; string name; int numberHouses ; int *ListHouses ; public : Street(); Street(int, string, int); //Street(const Street & otherStreet); …

Member Avatar for mike_2000_17
0
149
Member Avatar for airerdem

Hi, I have following code but it is very slow during sorting. [CODE]list<double> fitness; for(i=0;i<250;i++) { fitness.push_back(Random Number); } fitness.sort();[/CODE] Is there any other method about list sorting ? Thanks in advance ico

Member Avatar for mike_2000_17
0
125
Member Avatar for digital_ice7

i want to return a string array so i can use it in my main function. how do i do this? [CODE]#include <iostream> #include <string> using namespace std; string test() { string a[5] = {"Hello","World","How","Are","You"}; return a; } int main() { string b[5]; b=test(); for(int i=0;i<5;i++) cout << b[i] << …

Member Avatar for digital_ice7
0
600
Member Avatar for mirkuh

Hi, instead of writing this [CODE] SomeFunction<Class>::Bind<&Class::MemberFunction>(this); [/CODE] I want to provide an easier way to call "SomeFunction". I have one solution using a macro like this: [CODE] GET_EXAMPLE(Class, &Class::MemberFunction, this); //... #define GET_EXAMPLE(ClassName, MemberFunctionPointer, InstancePointer) \ (SomeFunction<ClassName>::Bind<MemberFunctionPointer>(InstancePointer)) [/CODE] But in order to avoid the use of this macro I'd …

Member Avatar for mirkuh
0
437
Member Avatar for akhal

Hej I got this problem while trying to build project in VS2010: [b][b][code] fft_test.obj : error LNK2005: "void __cdecl fft(int,double (*)[2],double (*)[2])" (?fft@@YAXHPAY01N0@Z) already defined [b]1>in fft.obj 1>fft_test.obj : error LNK2005: "void __cdecl fft_rec(int,int,int,double (*)[2],double (*)[2],double (*)[2])" (?fft_rec@@YAXHHHPAY01N00@Z) already defined in fft.obj 1>fft_test.obj : error LNK2005: "void __cdecl ifft(int,double (*)[2],double …

Member Avatar for akhal
0
293
Member Avatar for David_Omid

Hey everyone, I have a problem in a project of mine and was wondering if anyone could offer any suggestions. I'll try to explain as best I can what the problem is and if anyone feels they can offer some assistance, I'll send them the source code over a private …

Member Avatar for David_Omid
0
165
Member Avatar for portege

I'm interested in creating a bruteforce program. What is the most computer resource efficient method to count in base 62? (1,2,3...a,b,c...A,B,C)

Member Avatar for raptr_dflo
0
3K
Member Avatar for nocloud

I have a the following snippet of code [CODE]string const& symbol::at(int index) const { assert(index<symbol_data.vector::size()); return symbol_data.vector::at(index); }[/CODE] This does not compile successfully, instead, I get complaints about [CODE]error: ‘template<class _Tp, class _Alloc> class std::vector’ used without template parameters[/CODE] Now, I think this has something to do with the fact …

Member Avatar for mrnutty
0
324
Member Avatar for sha11e

Is it possible to do this: Print out something on the screen, when the user presses enter, it should print out something else, but on the same line: cout <<"Hello "; -wait for an enter- cout <<"there"; with it looking like this: Hello there ?

Member Avatar for mike_2000_17
0
224
Member Avatar for FoxInBoots

Hi, I really need help with understanding how to solve an exercise. Create a new textfile with the name 'studentinfo.txt' and write following and save: Marie Anderssen 29 Alexander Lind 35 Gholam Payro 32 Zlatan Ibrahimavic 26 Write a program that read the information from 'studentinfo.txt' and calculates the average …

Member Avatar for Narue
0
191
Member Avatar for Voidz

Hi, I have an array of hWnds, and I need to change each one of their background colors. They're all without a border(titlebar, and such). I've searched Google, and IxQuick, and I need an answer please. Thanks so much for the help.

Member Avatar for Frederick2
0
4K
Member Avatar for murnesty

I'm new on using class. Other than declare as friend class or declare static for the specific file to share variables/functions. Is there any other way? I have inherit few classes and wrote into few *.cpp file. I can't extern a static file, so is that mean i just only …

Member Avatar for mrnutty
0
136
Member Avatar for jared crook

ok im new so i dont really know what im doing but when i put the example program in dev and compile it everything works fine but when i run it it still works fine but the black screen what shows you the result of thr program lasts like 1 …

Member Avatar for Moschops
0
166
Member Avatar for learningcpp

Hi Guys, Can you please guide me to a documentation/link where I can read about Interpositioning and what does it mean? Thanks in advance. S.

Member Avatar for rubberman
0
77
Member Avatar for ana_1234

Hey I am trying to look into a text file and compare the single input by their hexadecimal digits. I am comparing two .txt documents, everything is the same but my computer keeps reading them as different. I checked the hex version of these documents and I realized that that …

Member Avatar for ana_1234
0
233
Member Avatar for montjoile

I use CodeBlocks, it's light, has readline-like autocomplete of code and the best thing that I like is that you can change the background color. which is the one you use?

Member Avatar for katmai539
0
124
Member Avatar for Sodabread

I'm trying to load dbghelp.dll in order to add stack walking to my error logger, but I'm getting null returned on LoadLibrary. I've opened up dbghelp in Dependency Walker, and it's giving me an error that it can't find ieshims.dll, but it's located where it should be in the IE …

0
82

The End.