General C++ Programming - November 2010 (Page 5)

Wait until user key or timeout
 
Hello, I know I can use the functions sleep() or wait() for stopping execution for a given amount of time or until the user presses any key. But what I wa...
[6 replies] Last: please check this out for unix/linux! --- http://www.unix.com/prog... (by yanamandra007)
by flide
interrelated friend classes
 
is it possible for 2 classes access the private data members of each other without being related in any way(I mean inheritance) and still have privacy as far as...
[3 replies] Last: that works?? really?? I am such a dumb ass, I should have thought ab... (by flide)
no match for 'operator++'
 
Hi everyone I am getting strange error while compiling following code.. ..... ..... RWTPtrHashDictionary<RWCString, SLCSourceIdInfo > *keyType2SourceId; .....
[6 replies] Last: Yups , you are right, But in specification Its been mentioned that RWT... (by rohandreamworld)
by Adidas
Dynamic Linked list of OBJECTS
 
Hello 2 evryone :) I need to allocat a dynamic linked list of objects... If someone can give me any possiable syntax i'll be glad... thanks for all of y...
[10 replies] Last: The code that you give as an example ... is it saving the Station1 me... (by coder777)
by Skynet
reading .txt files
 
hello, I was wondering if anyone could look at this code for me and tell me what I need to do to get the array working. My problem is that I am reading a text f...
[18 replies] Last: To start reading from the beginning again you have to move the read po... (by Galik)
by rickyp
C++ SOAP Web Service
 
Hi Guys, I have a requirement to create a SOAP XML web service that runs as a processs on an AIX server. the application binds to a port on the machine so t...
[5 replies] Last: Take a look at gSoap if you have no alternative than C++ http://www... (by Lodger)
palindrome error
 
sorry I'm new to this forum and new to C++. Forgive me if i broke any rules. I'm having a hard time figuring out what is wrong with my code. I've been looking a...
[3 replies] Last: got it! thanks!!! (by tomwadek)
problem with sizeof() function
 
Hello guys. i have a weird problem whenever i try to use this function with a class that is derived from a parent class. Subclass base sizeof(Subclass));...
[2 replies] Last: #include <iostream> class Base { int a; }; class Derived: ... (by stravant)
Switch Statement
 
I have this problem in my program code. I'm trying to get a switch statement to work where a user has to input a digit or letter. I don't know how to put the ci...
[19 replies] Last: So you mean number based? i guess that makes sense. (by Flaming)
Arrays and Classes...
 
Hey guys, I'm a beginner at this C++ stuff..and I've got a question. My assignment is to create a class called "students" and create with my secondary code(not ...
[2 replies] Last: Break it up onto multiple lines: in >> id ; ... Also, don't... (by stravant)
Ifstreambuf_iterator and Char by char input
 
Hi all, I am not able to understand what the following declaration does string((istream_iterator<char>(inputFile)),(istream_iterat...
[1 reply] : string((istream_iterator<char>(inputFile)),(istream_iterator<char>())... (by sohguanh)
Problems with one compiler error for Sorted List program
 
Implement the template class SortedList. Write a simple driver that reads values from file float.txt, inserts them into the list, prints the length of the final...
[1 reply] : You need to define an implement a proper copy constructor. Line 178... (by jsmith)
Program problem
 
i want to create a program in which when i give any abrivation like TCP so it gives Transmission control protocol............in C++...i work in borland c++
[6 replies] Last: map<std::string, std::string> combinations; combinations["TCP"] = "T... (by sohguanh)
Exception Handling - Performance Drag?
 
Hey all. This is spooking me out. Can anyone explain this... I have a matrix class, I'm currently testing the performance of the solve function (solves for x...
[2 replies] Last: Haha dead on Disch. Thanks again! You've helped me numerous times on t... (by NickPaul)
by Zaita
Avoiding the Linker Error: Instance already defined?
 
This seems to be caused because you've got variables in each of those objects with the same name. So inside your WinMain.cpp you'll have bool gameRun; and then ...
[no replies]
creating an .exe file
 
Hello, I would like to convert my MSVC++ 2010 .cpp file to .exe file. It works fine for a simple program but not for ones that required to read/write text fil...
[1 reply] : You're trying to use an object that hasn't been properly initialised. ... (by Zaita)
A Language Translation Program? How?
 
I am kind of a beginner, though I've been working with C++ on and off for a few years. I do pick up things fast, however. Lately I've been into conlang (mean...
[1 reply] : The thread Playing Machine Translation over on the Tcl/Tk Wiki is a ... (by Duthomhas)
by ag2013
Segmentation Fault (Core Dumped) Error (1,2)
 
#include <stdio.h> #include <math.h> double sin(double x){ return sin(x); } double cos(double x){ return cos(x); } double evaluate(double f(d...
[29 replies] Last: You guys were all wrong. I just had to change it to switch ( x ). Than... (by ag2013)
Call Fortran subroutine from C++
 
I have a problem to call fortran subroutine from C++. "Poziv_Cholesky.cpp", line 35: Error: Formal argument matrix of type complex* in call to cholesky_(comp...
[1 reply] : 1. The actual syntax varies with compilers. You'll need to state what... (by kbw)
by SjL721
Fraction Calculator Program
 
I have a program thats supposed to add, subtract, multiply, or divide fractions depending on what the user chooses. I have functions for scanning the two fracti...
[2 replies] Last: Thank you. (by SjL721)
November 2010 Pages: 1... 34567... 21
  Archived months: [oct2010] [dec2010]

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