49,757 Topics
| |
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 … | |
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 … | |
[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());// … | |
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 … | |
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. … | |
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 … | |
What is the maximum length of an argument in the command line? It is not the same under DOS and Linux? | |
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? | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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); … | |
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 | |
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] << … | |
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 … | |
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 … | |
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 … | |
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) | |
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 … | |
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 ? | |
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 … | |
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. | |
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 … | |
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 … | |
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. | |
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 … | |
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? | |
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 … |
The End.