General C++ Programming - March 2012 (Page 21)

Char * encoding
 
Hi, If I write the statement below in C++ under visual studio, what will be encoding here. const char *c = "£"; Under the visual studio project setting I...
[16 replies] Last: Thanks Peter!! Nice to know c++ comes with this! (by dearvivekkumar)
C++ abilities
 
Hello, I'm new guy in C++ world. I'm here, because I want to be programmer( as my profesion). I want to make apps for smart phones, games for pc, maybe consoles...
[14 replies] Last: A good c++ programmer with sdl/sfml can too. There are a lot of youtu... (by Azagaros)
Calculator Restriction
 
Hello I'm new at C ++ , i'm trying to make calculator using atof() function can someone show me where i can make this restrictions : make numbers be read...
[3 replies] Last: What you ask for is a lot more complex than vilml has done. The first... (by Azagaros)
Puff... getting wrong answer ?!!? (1,2)
 
Here's the question :- Problem 2: List of Books, (K Narayan Kumar / R Shreevatsa, CMI) This is another problem about Indraneel's library. His library has one l...
[21 replies] Last: The point of that line is that the user input index is corrected so th... (by coder777)
WHAT DOES A COPY CONSTRUCTOR DO?
 
Hi there, can somebody tell me what a copy constructor does? and when do u know you need one? thanking you in advance.
[3 replies] Last: Note that while viliml's example is not incorrect, it is not a good id... (by andywestken)
strings and how to check for spesific chars?
 
Hey I have been trying to find a food and ofisont way of checking to see if a string contains a certen set of characters. So if I got a string s1 = "hello" and...
[2 replies] Last: So if the string do not contain atlest 1 of all the characters in test... (by WetCode)
by LB
Multiple Inheritance Diamond: Why ambiguous conversion?
 
struct Base { virtual ~Base() = 0; }; struct Sub1 : public Base { virtual ~Sub1() = 0; }; struct Sub2 : public Base { virtual ~Sub2() =...
[4 replies] Last: Thanks for all your help - I have it working properly now and it is ac... (by LB)
null pointer inheritance
 
class employee1 { employee1( string _id="0", string _name="0", string _date="0", string _phone="0", string _email="0", bool _sent=0, string _notes="0...
[7 replies] Last: ¿Could you please provide a minimal example that reproduces your issu... (by ne555)
help me please in dynamic memory allocation
 
int main() { double *monthSales = NULL; // a pointer used to point to an array holding monthly sales double total = 0; // total of all sales double average;...
[1 reply] : Here's a hint http://www.cplusplus.com/reference/std/new/operator%20ne... (by naraku9333)
Run for a certain amount of time.
 
Hello, I am trying to write a program that checks if a person presses an arrow key within a 2 second period. If the arrow is not in a two second period, the pro...
[5 replies] Last: Thank you very much for your help , however, I'm farily new to program... (by Stronghead)
Sequence Programing
 
here what i am supposed to do Write a C++ program that inputs a number from the keyboard between 0 and 60 and then uses a for or while loop to d...
[2 replies] Last: but then how would you make it ask wether you want to run again or not... (by romilstr29)
iterator seg faults
 
I'm trying to create an asteroids game using OpenGL. I'm getting seg faults if I erase an element from a vector. Here's my main() function: #include <GL...
[2 replies] Last: You can't move the erase() past the constructNewAsteroid because t... (by shacktar)
Help on using template
 
I wonder if any one can help on this. I am trying to do a simple template class like this: template<typename T1,typename T2> class myClass { T1 fun(T2...
[2 replies] Last: template< typename FUNCTION > class my_class { public: ... (by JLBorges)
exceptions and throw inside a class (1,2)
 
I have a need to throw an exception inside a class which I derive from <exxception> how am I going to do this? gcc 4.7.0 always gives me the error rnd.h:77...
[22 replies] Last: > how are casts different than an automatic upconversion Re-read a C ... (by JLBorges)
Class error in header file. "expected class-name" Please help!
 
Hello guys. I got this problem in a small c++ project im working on. I have build classes for different geometric forms. And in the end i am suppose to get the ...
[no replies]
by erkka
while (ii<(filesize-6)) ambiguous - how to fix
 
I have two variables, named ii and filesize, both are of type ifstream::pos_type filesize holds the size of a file to be iterated through, and I have a simple ...
[2 replies] Last: before posting my question I already tried while (ii<int (filesize-6)... (by erkka)
What is a fast sorting algorithm?
 
Hello, I have had no education in algorithm. I have written an algorithm that can sort 2200 song titles (my music collection) alphabetically in about 0,3 secon...
[10 replies] Last: Just a little update. I read on how the merge sorting algorithm works ... (by Shatronics)
by LB
Can't have static and instance member functions with same name?
 
Why can't you have a static and an instance member function with the same signature? class A { void DoThing(){} static void DoThing(){} }; A a; a.DoThi...
[15 replies] Last: > The static storage class specifier doesn't "change" the signature of... (by JLBorges)
Calculating
 
Hi , Can some one tell me or let me know some link where we get the theory of calculating the checksum of the network .. or theory of calculating the checksum...
[2 replies] Last: thanks .. kbw .. it helped (by bluecoder)
Is there a Better Framework than Qt to work?
 
Hi I'm in the theoritical research stage to launch a large scale project next semestre in C++ where I will need a framework for the UI I have been pushed by ot...
[no replies]
March 2012 Pages: 1... 1920212223... 49
  Archived months: [feb2012] [apr2012]

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