General C++ Programming - May 2011 (Page 23)

by daking
Read a string then copy it to clipboard
 
I am working on a personal project and have encountered an obstacle. My task is simply to read a string and then copy that string to the clipboard but I am not ...
[2 replies] Last: Thank you for your help. How exactly would your information tie into t... (by daking)
I need help: error: 'cout' was not declared in this scope.
 
Hi everyone. I'm trying to compile this simple code: #include <iostream> using namespace std; int main(void) { cout << "Testing..." << endl;...
[8 replies] Last: as for the OP. try adding using std::cout; using std::endl; inste... (by ascii)
Compare strings to find similar characters
 
//Check Guess for ( int k = 0 ; k < 4 ; k++ ) { int prevCharTorF = 0; //Correct Position AND Color ...
[1 reply] : answer is an array of four randomly generated characters (R P Y G B W)... (by geoff13)
Open a web page in c++
 
I'm an intermediate c++ programmer and i'm doing a project for my college class where i'm trying to call a web page from the code itself. I know it can be done ...
[no replies]
by mathai
Returning a pointer from a function
 
Hello all, I have a basic question in C++. In the code below, I am creating a local variable in a function and returning its address. #include <i...
[4 replies] Last: Thanks! (by mathai)
Program Ideas (1,2)
 
Can anyone give me pretty advanced program ideas. Thanks a lot!
[21 replies] Last: I will get away form code, but let's begin the program. Then code=bye ... (by mcqueen)
template confusion
 
I was reading about custom allocators: http://www.tantalon.com/pete/customallocators.ppt I don't understand purpose of this part: template <class T> class all...
[4 replies] Last: Thanks greatly. If someone else has more opinions please share. (by savavampir)
Vector Sizes within For Loops
 
The following code compiles fine, but I think it's the source of my crashes. /** * Method: fillConcavities * Takes a polygon and fills all of the concav...
[no replies]
HELP! What is wrong with this code? (1,2)
 
I am trying to accomplish a few tasks with this program: #include "stdafx.h" #include <iostream> #include <istream> #include <string> #include <algorithm> ...
[22 replies] Last: Alright. Thanks a lot for your patience and help. Please bare with me.... (by N1ghtm4r3)
program malfunction
 
Ok I have a program that has a 2 dimensional array in it. It compiles but I cant seem to get the right value in the final row of the array. It keeps coming out ...
[2 replies] Last: omg thank you so much. it works now (by whitedark1337)
Struct Questions
 
Hello, Is there a way to relate structure objects? For example: struct Example () { int a, b, c; } Obj, Obj1, Obj2; Obj1.a = 3; Obj1.b = 1 Obj...
[7 replies] Last: There we go! Thanks guys. Thanks webJose for making it easy by providi... (by declawd)
how can I derive a tree from two different parent classes in C++?
 
Hi guys, I’ve been given a task in which my teachers even cannot help me through! I wonder how can I derive a tree from two different parent classes in C++; i...
[2 replies] Last: The programming part is easy: class Derived : public Base1, public ... (by closed account 1yR4jE8b)
pointer and dynamic binding
 
Hi there, Does a pointer to the base class point to the derived class that privately derives from base class? Say: class Base; class private_derived :...
[5 replies] Last: @ Disch : Security tokens for Access Control Lists... That's all I've... (by Computergeek01)
Help with adjustment to code
 
Well, first of all, I'm new here, so it's nice to be here and I look forward to many posts to come. I just started programming a year ago and I love it. Now,...
[10 replies] Last: @kooth I looked into STL containers, but it seems a bit advanced. Not... (by N1ghtm4r3)
by derata
hash table, help with transfer (1,2)
 
Hi, I have a hash table consisting of char string. I do not know how to redo the numbers so I can upload to function Insert (9798), and compare them. Please hel...
[33 replies] Last: ok: input: computer. computer, mouse mouse. mouse computer output... (by kfmfe04)
I failed this problem at a contest ! (1,2)
 
I have the next problem: Joe likes numbers. His new concern is finding how many 0 (number) does the product of a range of integers have. He discovered that whe...
[25 replies] Last: I just realized something. ( b - b%n - a + n )/n; is all you need to k... (by hamsterman)
Need help on This! Series summation and setence making
 
Ok i know this sounds pathetic at this time of the year me asking for something this easy for help on on visual studio 2010 C++ class, i'm still shaky on my cod...
[5 replies] Last: the input values i need to use are 1 2 3 4 5 6 jane doe is married to... (by ohnmeiss88)
by Adidas
Access violation-error
 
else if (!strcmp("CourseDetails",part2.c_str())) { getline(ss2, part2, ','); // get the cours number int num=0; num = atoi(part...
[1 reply] : It may be that Department_Ptr_TMP is NULL, it may be that m_PTR_2_Cour... (by kooth)
by HenriK
Problems with template functions and rand/srand
 
What is wrong with this code? #ifndef TFE_STATISTICS_H #define TFE_STATISTICS_H #include <iostream> #include <time.h> class TFE_Statistics{ protected:...
[2 replies] Last: Oops, I seem to have used older piece of code in my template function ... (by HenriK)
IF command
 
Hello there I'm trying to find out how can i create an IF() command to check in the argument that the user had entered is an hexadecimal number...any sugges...
[10 replies] Last: [quote=Computergeek01]I'll have to steal it from you. It's ok I stole ... (by hamsterman)
May 2011 Pages: 1... 2122232425... 32
  Archived months: [apr2011] [jun2011]

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