General C++ Programming - November 2011 (Page 8)

Multiple Consoles
 
i wrote a program which copies itself and runs the copy, but it still runs in the same console but i'd like to run it in a new one... is there any way to open a...
[2 replies] Last: A process can have only one console. See MSDN page for AllocConsole().... (by modoran)
Using templates in classes also operator overloading
 
I am trying to add two objects via operator overloading and some sort of runtime error occurs. just cant figure it out. #include<iostream> using namesp...
[5 replies] Last: @blue coder Thanks for pointing out..... here is the correct way te... (by mahinkhan22)
How to remove identical elements from array of integers
 
array is allocated dynamically., after that i want to re-size the array...
[3 replies] Last: You could use std::vector, rather than an array and std::sort() and st... (by Galik)
How to get the return of opendir in C++
 
How do I read opendir and search the buffer for the string .png what more is required? heres my attempt. This is the code. // first off...
[2 replies] Last: Thanks kbw... (by bluecoder)
by rithan
Giving error message when user inputs alphabets
 
Can any1 tell me hw to prevent user from key in alphabets in a calculation program....
[no replies]
by teocl5
Strange phenomenon!
 
I am trying to get a random number that is between 1-10. This is the code that i am using, int randNum; randNum = rand() % 10 + 1 cout << randNum; How...
[2 replies] Last: Hi Gaminic, Thanks for the prompt reply. I have found the fault. fo... (by teocl5)
bubbleSort
 
We got an error C2664: 'BubbleSort' : cannot convert parameter 1 from 'int' to 'int . Please help. This is the code. //Program Highest GPA #include...
[2 replies] Last: The function BubbleSort is expecting an array/pointer of ints. The arg... (by Gaminic)
std::map, find function does not accept const Key* even though docs and error message seems to say it does
 
When using std::map, find function does not accept const Key* even though docs and error message seems to say it does. Why is this so? Or can you find something...
[9 replies] Last: However, then I think the compiler error message is a bit misleading ... (by kbw)
by agnk33
I need help with a program please.
 
Hello fellow programers. I have written this program and I keep getting back a building error. The error reads as follows: "Acct::Acct(char*, char, double...
[5 replies] Last: Hi , you haven't declared the constructor . (by bluecoder)
by zurn
Words array problem
 
Hi. I have an assignment to grab a text file, read all the words from it, assort them in an array, remove duplicates, and to count how many times the word a...
[1 reply] : Well your populate() function in the class is ignoring all punctuation... (by Tatipu)
Tutor needed URGENT !!!
 
Hey!! I need an urgent tutor for 2 questions...Please email me at mastermindisnow@gmail.com Pleease I desperately need help. I mean it.
[16 replies] Last: You should just ask people to explain them (the parts you don't know) ... (by Tatipu)
Suggestions about my program
 
#include <iostream> #include <string> #include <fstream> #include <vector> #include <windows.h> #include <conio.h> using namespace std; int clrg() { ...
[10 replies] Last: Im sorry that i'm a beginner, but at least i'm admitting that. Also, ... (by IWishIKnew)
socket programming c++
 
Hi all, I am new here. I am try to make an easy c++ code to manage socket communication in OSX. My trouble is about accept() syscall! It seem that it wor...
[4 replies] Last: thank you very much :) (by carambola)
Update Record Random Access
 
Im in a bit of a mess here. I have Every thing Working that i need but for some reason i can not Get Update Record Working. its only Adding the Name To end o...
[3 replies] Last: ok I still stuck in this, When i display the Location of the Array..... (by SliverFoxGB)
How to take Screen shot using C++
 
Hi, I want to take screen shot and save it in any image format like jpg, bmp, ppm or any other . Please help me as soon as possible.
[11 replies] Last: For a basic, plain WIN32 example: Capturing an Image http://msdn.micr... (by andywestken)
smooth.cpp
 
lll
[2 replies] Last: tl:dr if you want me to do your homework you'll have to pay seriously,... (by closed account 236Rko23)
HELP dont understand why it not working
 
in this program we have to make a kill function that kill to the right using a link list and a skip number. so if i have a b c d and skip one. a kills c d kil...
[2 replies] Last: if you could add some comments explaining what each function does, bec... (by closed account 236Rko23)
How to compile a C++ code through another C++ code
 
Hi, i want to compile a .cpp file(suppose Test.cpp ) living in an other C++ file ( Pro.cpp ), mean i want to compile Test.cpp indirectly. how i can do so ...
[11 replies] Last: u mean to compile a piece of code , that is inside another c++ file as... (by closed account 236Rko23)
classes
 
hi, i want to make sure that no more than one object of a class should be constructed please help me
[5 replies] Last: user of your programm should not be abe to make more than one object? (by HAFIZ MUJADID)
Pure virtual function call
 
I need help to overcome this problem: Window base class class Window { protected: ... static LRESULT CALLBACK StaticWindowProc(HWND hWnd, UIN...
[4 replies] Last: Thats it. Thanks. (by morando)
November 2011 Pages: 1... 678910... 47
  Archived months: [oct2011] [dec2011]

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