Forum: C++ Jan 26th, 2009 |
| Replies: 13 Views: 1,015 |
Forum: C++ Jan 26th, 2009 |
| Replies: 13 Views: 1,015 Now, when u asked, i don't know how i know but i know if u know what i mean. |
Forum: C++ Jan 26th, 2009 |
| Replies: 13 Views: 1,015 Yes, it does remain. If new operator is used u need to delete explicitly. |
Forum: C++ Jan 21st, 2009 |
| Replies: 57 Views: 12,969 i consider this thread lame but funny...
p.s. dev c++ must die!
p.p.s. seriously, must die already. |
Forum: C++ Jan 13th, 2009 |
| Replies: 5 Views: 382 read the code-posting-rules first |
Forum: C++ Jan 13th, 2009 |
| Replies: 9 Views: 443 u don't need them classrooms to learn anything, tis bullshit |
Forum: C++ Jan 12th, 2009 |
| Replies: 8 Views: 497 Man, u gon pay money to ppl for doin ya homework or what? |
Forum: C++ Jan 11th, 2009 |
| Replies: 4 Views: 397 p.s. And yes, this does loop forever if functionCall() really returns 3 |
Forum: C++ Jan 11th, 2009 |
| Replies: 4 Views: 397 no way, variable is set to true, because functionCall()!=0 is true. in this case true means 1 |
Forum: C++ Jan 10th, 2009 |
| Replies: 6 Views: 354 Lines 11,12. n is 0 after them and also i don't get why u use for not while and why u need that int i |
Forum: C++ Jan 2nd, 2009 |
| Replies: 16 Views: 2,519 fstream header will do. just include <ifstream>
then do
ifstream vname("filename");
vname >> array[i]; as many times as needed |
Forum: C++ Jan 2nd, 2009 |
| Replies: 12 Views: 1,288 or In #5 in the code you can change line 14 from if(str[i] < str[j]) to if(toupper(str[i]) < toupper(str[j])). |
Forum: C++ Jan 1st, 2009 |
| Replies: 12 Views: 1,288 Well, i just transformed your own code. Used string str instead of char* a[100] and char tmp instead of char* tmp[100] (u need just one character to bubble-sort, not an array).
You would like to use... |
Forum: C++ Jan 1st, 2009 |
| Replies: 12 Views: 1,288 Introducing bubble sort :)
#include <iostream>
#include <string>
int main()
{
std::string str;
std::cin >> str; |
Forum: C++ Jan 1st, 2009 |
| Replies: 12 Views: 1,288 Look, you have that #include<string.h> right? So why don't you use c++ strings? It's like
string str;
str = "whatever"
and it's easier.
Now this
for(int b=0;b<=(strlen(a)-1);b++)
{
... |
Forum: C++ Dec 31st, 2008 |
| Replies: 5 Views: 487 Guess it would be good to mention that an abstract class is mostly an interface, a common interface for all derevied ones. For example you can make an abstract class with only one pure virtual... |
Forum: C++ Dec 30th, 2008 |
| Replies: 9 Views: 556 new allocates dynamic memory (did i choose the right words?). |