General C++ Programming - October 2009 (Page 12)

by helios
Do NOT use Dev-C++...
 
...and do not recommend using it. It's old, outdated, and unmaintained. Do you want to know how old it is? http://www.cplusplus.com/forum/beginner/15105/ ...
[13 replies] Last: True the point of syntax highlighting is to make code easier to read; ... (by chrisname)
C - Problem Bubble sorting linked list
 
Hello, I'm having problems sorting a linked list alphabetically. The link list is being correctly populated but it seems that the bubblesort() function is im...
[4 replies] Last: Aw crap, I feel like a retard... Thx man you helped me out big time. I... (by Nature1)
read specific string in C++
 
Hi. i am very week in C++, i need your help...I have a text file which is my input to my program..The text file contents... "File = E:\Files\SWwork\Point...
[no replies]
My C++ project.. :-/
 
For my C++ project I have to create a few casino games. I have just started, and a few things aren't working.. I only have the High-Low game working right now, ...
[2 replies] Last: Ahhh perfect. Thank you very much. :) (by mrb9337)
by Oromis
RSA encryption
 
I'm trying to write a simple program to encrypt a text using RSA. P and Q should be under the hundred: const int e = 4909; const int N = 5893; //71*83 /...
[2 replies] Last: Thanks! I used your algorithm and it works perfectly. (by Oromis)
array question
 
Hi thanks in advance for any help! I was wondering if there is a way to declare an array without knowing the size and letting the user input the amount of numbe...
[4 replies] Last: Hi i am not as good as others in c++ but i will try to build a dynam... (by wincry)
My C++ Project
 
Hey All, I just thought I'd let you guys check out the C++ project I'm doing. Just to let you know I am normally a biology and not a computer programmer, bu...
[3 replies] Last: Look at the source of polyworld, perhaps? http://sourceforge.net/proje... (by chrisname)
class template variations
 
I wish to accomplish anything similar to the follow, however without errors. template < typename T > class Name {}; template < Name< typename U > T > ...
[5 replies] Last: You mean template specialization? You can do that like this: templa... (by Bazzy)
Why does this produce an error? File I/O
 
I'm wondering why the following pattern is incorrect: string filename = "myfile.txt"; ifstream input(filename); But ifstream input("myfile.txt"); o...
[1 reply] : For some reason, the C++ committee decided that std::fstream::open() o... (by helios)
string function find.
 
Hi im making this hangman game, and i got the word they enter as a string and the letter they want to guess as a string, so i was wondering when i use the find ...
[2 replies] Last: ok thanks man, i think thats just what i need. Im a little confused i... (by chewykb24)
by JRevor
Templates and operator overloading
 
I have a template class called Vector<T> . If i've overloaded the * operator as shown here template <class T> Vector<T> operator*(const Vector<T>& v, con...
[7 replies] Last: 1 is an integer. As a float it is 1.0f . (by Chewbob)
Could someone test me?
 
I want to verify my knowledge of pointers, memory, dynamic allocation, etc. Could some people ask me some questions to answer? Thanks.
[12 replies] Last: I didn't mean static as in the keyword static, I meant static as in "... (by Bazzy)
How do I get better at technical design?
 
So the way I program is split up my tasks, one for technical design, and the other for code (construction). In technical design usually starts off with me ...
[4 replies] Last: I have to agree with helios. Reading books is not the best primary ... (by jsmith)
C++ Project
 
Dear Sir, If u don't mind pls send me a awesome Computer Project in C++ language without any errors.Your early reply highly appreciated. Thanks and Regards C...
[12 replies] Last: #include <normality> int main() { char norm ; memset(n... (by mcleano)
by fares
what dose that mean
 
what dose this 3 sentence mean in c++ int j=static_cast<int>(x )-48; int k=static_cast<int>(x[i-1])-48; int l=static_cast<int>(x[i-2])-48;
[1 reply] : first line: It is casting x to an integer and then subtracting 48. ... (by jsmith)
Sorting an object by a member
 
class test{ int position, value; public: test (int a, int b){ position = a; value = b; } //... vector <test> o; //read some values //sort the...
[2 replies] Last: Thanks! It works. (by blucrosoft)
c++ lists with fields
 
I don't know if it's possible but i need a list with fields like i.e.: first name, last name, age. Please, help me, (blu)
[14 replies] Last: I just wanted to know other ways. Thanks! I'll use the constructor. (by blucrosoft)
Overloading []
 
I have the following overload. template <typename T> class Set { protected: T**(items); int number; public: //... T* Set::operator (int i...
[6 replies] Last: Thanks, loving C::B btw. (by narcissisticcheer)
by joshky
Charactar array size overflow
 
I have been working through some of the problems on project Euhler. My problem is not about the math, but character arrays. The problem is to find the largest...
[8 replies] Last: thank you very much, i can see how setting the array, then performing ... (by joshky)
by helios
Comparing Strings
 
You're appending the character before you know whether or not it's a carriage return, so your string ends up being "start bat\n" or something to that effect. ...
[1 reply] : O_o, another buggy topic... (by firedraco)
October 2009 Pages: 1... 1011121314... 17
  Archived months: [sep2009] [nov2009]

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