General C++ Programming - July 2011 (Page 20)

ask for advices
 
I want to get a backup of a object. So, I was going to write a copy constructor for the class to copy this object to a backup one. But I found several raw point...
[4 replies] Last: Thank you all for kindly helps. I find that serialization of boost lib... (by breadbread1984)
member function changing class variables
 
hello everyone, I'm trying to learn about classes. I've got the basics down. but one thing that I'm confused about that i cant find the answer to is if a class ...
[1 reply] : Neither is correct. The first would only be correct if they were stati... (by LB)
by dkaip
where i can find from conio.h the rest of files?
 
Hello. I am trying to scan keyboard chars with getch(). char ch; string password; while ( (ch = getch()) != '\r' ) { passwo...
[1 reply] : I think this is part of turbo c.. but they doesnt seem to be part of s... (by writetonsharma)
Overriding Base-class data member in a Derived-class
 
hello all, I'm creating a Base-class with a GetVersion function. I want each Derived class to return a unique answer. The compiler (GCC) insists the Base...
[3 replies] Last: This seemed to do the trick: http://www.learncpp.com/cpp-tutorial/114... (by jtjammer)
i need fix err file no to ok > 2*G
 
i need fix err file no to ok > 2*G I:\skynet091src_fixed\main.cpp : fatal error C1126: automatic allocation exceeds 2G /** Remove a file ...
[8 replies] Last: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Who... (by Moschops)
Problem with inheritance, pointers and initialiasation lists.
 
Ok here's an example of the problem im having: class obj{ protected: int x; public: obj(int); }; obj::obj(int x1): x(x1){ } class some...
[10 replies] Last: Thanks for the help. (by chr15chr15)
c character array with null chars
 
Hello all, This is my first post. I have a c++ program and a c program. The c program produces data to standard out that the c++ program should read. The dat...
[5 replies] Last: Moschops, that's the whole point. My char arrays contain null characte... (by Albert Hendriks)
by bacpp
function-definition
 
I am trying to run a program and have defined the following function in main()..the relevant code is below. istream& read_work(istream& in, vector<double...
[3 replies] Last: that was my silly error....thanks for pointing it out...it worked. (by bacpp)
by h9uest
Embed search engines into my C++ code
 
Hi all: I need to write a program in C++ that can search through google and other search engines. For example, it accepts the user input of "cat", then it...
[7 replies] Last: @Galik: Many thanks! I've decided to temporarily go on with the main ... (by h9uest)
Incorrect answer generated by program?
 
#include <iostream> #include <cmath> using namespace std; double MissingSide(double dX, double dY, double dA); int main() { double dM, dN, dP; ...
[3 replies] Last: Also 1 small thing... Is angles in degree or radians? http://cplusplu... (by eraggo)
by kirvy
hi to all
 
please help me . I want to know how to make a blinking character in c++ . tnx
[7 replies] Last: @kirvy please help me . I want to know how to make a blinking characte... (by CppSpartan)
Miles to Kilo table question?
 
How does this look to everyone? I am displaying 2 rows side by side that lists miles-kilo conversion. This is what I have so far. Anyone have any pointers or...
[1 reply] : error message I receive 1>.\Debug\test.exe.intermediate.manifest : g... (by costaaa)
Info about <graphics.h> header
 
I don't know if there is a newer version of this header file (i.e. without the .h extension) is there or not. But can anyone give me a link about the header ...
[3 replies] Last: Found a link. For anyone else interested: http://www.programmingsimpli... (by Nisheeth)
by V1sk3y
Splice elements from list that meets a certain criteria
 
Here's what I want to do: Two consecutive integers in a list (or perhaps vector) should meet a criteria given by a function. If (CriteriaFunction(int1,int2) re...
[8 replies] Last: When I tried both my code and yours with a large number of executions ... (by V1sk3y)
What does this statement mean?
 
int main(array<System::String ^> ^args) { return 0; } Im asking about: array<System::String ^> ^args Whats this: ^>
[3 replies] Last: The bitwise XOR operator, yes. But the usage of ^ in the example you p... (by LB)
Help with a concept?
 
like, int arc ={1,2,3}; cout<<arc ; //error In this example, I get some big number displayed(in spite of getting an error), what does this number me...
[6 replies] Last: Thanx a lot for the explanation I asked a lot of ppl round here, but ... (by SameerThigale)
by exbow
it doesnt recognize my header files... why?????
 
#include "MAP.h" #include "PLAYER.h" #include <cstdlib> #include <ctime> #include <iostream> using namespace std; int main() { srand( time(0) ); M...
[4 replies] Last: i figured this out thx for the help! (by exbow)
by chulio
problem with strcat() and argv[]
 
Hello, i have the code: #include <string.h> #include <iostream.h> int main(int argc, char** argv){ if (argc < 2){ cout << "\a"; ...
[1 reply] : http://www.cplusplus.com/reference/clibrary/cstring/strcat/ strcat ex... (by Moschops)
How to declare a varibale as null
 
I have a program where when I first initialize a CString varibale I want it to be null. I put this: CString temp = ""; Will this make it null. Becau...
[10 replies] Last: What I was after (from the OP) is if the aim is to have an CString obj... (by closed account z05DSL3A)
by chulio
About Copyright
 
Whats your opinion about copyright? Do you copyright your programs? If yes, is there any good documentation on how to do it?
[3 replies] Last: I was told even Open Source project source code have Copyright notice?... (by sohguanh)
July 2011 Pages: 1... 1819202122... 30
  Archived months: [jun2011] [aug2011]

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