Search Results

Showing results 1 to 18 of 18
Search took 0.01 seconds.
Search: Posts Made By: da penguin
Forum: C++ Jan 26th, 2009
Replies: 13
Views: 934
Posted By da penguin
Forum: C++ Jan 26th, 2009
Replies: 13
Views: 934
Posted By da penguin
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: 934
Posted By da penguin
Yes, it does remain. If new operator is used u need to delete explicitly.
Forum: C++ Jan 21st, 2009
Replies: 57
Views: 12,725
Posted By da penguin
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: 370
Posted By da penguin
read the code-posting-rules first
Forum: C++ Jan 13th, 2009
Replies: 9
Views: 424
Posted By da penguin
u don't need them classrooms to learn anything, tis bullshit
Forum: C++ Jan 12th, 2009
Replies: 8
Views: 475
Posted By da penguin
Man, u gon pay money to ppl for doin ya homework or what?
Forum: C++ Jan 11th, 2009
Replies: 4
Views: 384
Posted By da penguin
p.s. And yes, this does loop forever if functionCall() really returns 3
Forum: C++ Jan 11th, 2009
Replies: 4
Views: 384
Posted By da penguin
no way, variable is set to true, because functionCall()!=0 is true. in this case true means 1
Forum: IT Professionals' Lounge Jan 10th, 2009
Replies: 3
Views: 341
Posted By da penguin
Forum: C++ Jan 10th, 2009
Replies: 6
Views: 344
Posted By da penguin
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,211
Posted By da penguin
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,197
Posted By da penguin
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,197
Posted By da penguin
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,197
Posted By da penguin
Introducing bubble sort :)


#include <iostream>
#include <string>

int main()
{
std::string str;
std::cin >> str;
Forum: C++ Jan 1st, 2009
Replies: 12
Views: 1,197
Posted By da penguin
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: 464
Posted By da penguin
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: 532
Posted By da penguin
new allocates dynamic memory (did i choose the right words?).
Showing results 1 to 18 of 18

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC