Forum: Geeks' Lounge 1 Day Ago |
| Replies: 58 Views: 1,965 You just disregarded my main point :
"So realize that, Cartesian coordinate, polar coordinate, cylindrical coordinate, or any other coordinate one uses, is only a model. Its just a way to... |
Forum: Geeks' Lounge 1 Day Ago |
| Replies: 58 Views: 1,965 Wow. I tried so hard not to post.
Ok now listen to my argument :
Imagine you lye on a Cartesian grid, at the origin. OK ?
Now you say that to get at point, (1,1), we need to first move
1... |
Forum: C++ 2 Days Ago |
| Replies: 4 Views: 194 There is also http://www.gamedev.net/community/forums/ which has really a lot of smart developers that has been programming for a while, and also developing games for a while in the industries.... |
Forum: C++ 2 Days Ago |
| Replies: 7 Views: 270 Yep, just think about it like this, if ptr is a pointer-to-int, then *ptr,
is the value that it points to , so if it points to an address, which
has the value 4, then *ptr == 4 is true.
int a =... |
Forum: Geeks' Lounge 5 Days Ago |
| Replies: 3 Views: 212 My perception of you. serra01 is a spammer. |
Forum: C++ 5 Days Ago |
| Replies: 4 Views: 242 get rid of all the unneeded " //----// " it makes the code unreadable.
#include<iostream>
#include<fstream>
#include<cstdlib>
#include<cctype>
#include<string>
using namespace std; |
Forum: Geeks' Lounge 6 Days Ago |
| Replies: 58 Views: 1,965 There is no through getting to him. Just let him be. |
Forum: C++ 7 Days Ago |
| Replies: 10 Views: 734 Pretty cool. Looks something someone will see if they were high of drugs. |
Forum: C++ 8 Days Ago |
| Replies: 3 Views: 246 >>output("1", "k"); // ?
should be a string :
output(string("1"), string("k")); // ?
Whats happening is that "1" and "k" is being interpreted as a const char* |
Forum: C++ 8 Days Ago |
| Replies: 3 Views: 215 cout<<"*"<<endl;
cout<<" *"<<endl;
cout<<" *"<<endl;
cout<<" *"<<endl;
cout<<"*"<<endl; |
Forum: C++ 8 Days Ago |
| Replies: 1 Views: 204 Well it will ask you questions of what you have covered. |
Forum: Geeks' Lounge 8 Days Ago |
| Replies: 58 Views: 1,965 No false, no matter how precise you get, its never a perfect circle. |
Forum: Geeks' Lounge 8 Days Ago |
| Replies: 58 Views: 1,965 Again : You cannot ever draw a perfect circle using a software
because they are all made up by pixels, and Pixels are rectangles.
Also realize that there might never be a perfect circle. |
Forum: C++ 9 Days Ago |
| Replies: 6 Views: 285 Virtual functions and polymorphism are closely related.
A virtual function means that a some class with a virtual function will be derived from, and that virtual function will be overridden by... |
Forum: C++ 10 Days Ago |
| Replies: 8 Views: 297 How about using strings to represents float, char, double, int, and so on.
string Types[4] = { "124","1.234","aString","c" };
Then you can convert it accordingly with sstream. |
Forum: C++ 12 Days Ago |
| Replies: 8 Views: 273 Ya gotta learn english 1st. |
Forum: C++ 12 Days Ago |
| Replies: 1 Views: 138 >>I think do you have the idea and please help me sir with my project...
Not really, care to explain a bit more? |
Forum: C++ 13 Days Ago |
| Replies: 2 Views: 229 From :
while ((cin >> ar[i]) && (i < arSize))
To :
while ((i < arSize) && (cin >> ar[i]) ) |
Forum: Geeks' Lounge 13 Days Ago |
| Replies: 28 Views: 1,071 So I was thinking, we should have a challenge of the day or week,
for a specific language, that poses a unique problem. This way people can practice, and others can learn maybe something new from... |
Forum: C++ 14 Days Ago |
| Replies: 2 Views: 204 lastElem =remove_if(v1.begin(), v1.end(), islowerCase);//line1
Line 1 : remove_if(...), if the containers contains a lower case character
the function removes it. It does this, and returns the... |
Forum: C++ 14 Days Ago |
| Replies: 4 Views: 343 Put the definition in the same file as the templete header, unless your
compiler supports the keyword export. |
Forum: C++ 15 Days Ago |
| Replies: 6 Views: 244 |
Forum: C++ 17 Days Ago |
| Replies: 14 Views: 317 No problem. Its good to see that you are a human as well
and not an all knowing android. |
Forum: C++ 17 Days Ago |
| Replies: 14 Views: 317 That is not overloading the negation operator. Thats overloading
the subtraction operator. A negation has no arguments and
deals with the this pointer. If you want to do it that way, you will need... |
Forum: C++ 17 Days Ago |
| Replies: 3 Views: 337 By the example you gave us, this : "mcDonalds car 456 burgerKing 8
clowns are scary money leeking from 56 my pockets I like turtles 1".
I would suggest that you should extract the sentence word... |
Forum: C++ 17 Days Ago |
| Replies: 6 Views: 226 But on the other hand the efficiency of these are completely different :
//with pointers
void DivideBigNumbers(BigNumberClass * num, BigNumberClass * num);
//without pointers, just object... |
Forum: C++ 18 Days Ago |
| Replies: 3 Views: 238 TO expand x % 100 will give you the last 2 digits, and x % 1000 will
give you last 3 digits, and in general :
x % 10^n will give you the last n digits. IN the special case
where n = 0, the... |
Forum: C++ 18 Days Ago |
| Replies: 5 Views: 347 int main()
{
srand( time( 0 ) );
cout << rand() % 2 << endl;
} |
Forum: Geeks' Lounge 19 Days Ago |
| Replies: 16 Views: 828 This is too funny. One of the few post that made me laugh. You made
my day thinkersgroup, anyone see the irony with his name? |
Forum: C++ 19 Days Ago |
| Replies: 1 Views: 216 This (http://www.horstmann.com/cpp/pitfalls.html) is a good read. Read it and learn from it. |
Forum: C++ 19 Days Ago |
| Replies: 2 Views: 196 |
Forum: Geeks' Lounge 20 Days Ago |
| Replies: 0 Views: 349 This is too hilarious. (http://thedailywtf.com/Articles/Vector_Oriented_Programming.aspx) |
Forum: C++ 21 Days Ago |
| Replies: 6 Views: 269 Oh ok :
for(int i = 0; i !=1; ++i){
cout << "M"<<endl;
for(int thisIsStupid = 0; thiIsStupid != 0; );
} |
Forum: C++ 21 Days Ago |
| Replies: 6 Views: 269 ???
for(int i = 0; i !=1; ++i)
cout << "M"<<endl; |
Forum: C 23 Days Ago |
| Replies: 1 Views: 348 don't use the sqrt function. compare the squared distance. |
Forum: Computer Science 24 Days Ago |
| Replies: 6 Views: 733 They will pretty much teach you the same thing at least the concept part,
like loops, if else statements, control flow, variables, ints, floats ,blah blah
blah.
I think if you take C++, then... |
Forum: Geeks' Lounge 25 Days Ago |
| Replies: 7 Views: 517 #include<iostream> /**/
#include<string>
using std::cout; using std::string; std::ostream& _H_A_P_P_Y_T_H_A_N_K_S_G_I_V_I_N_G = cout;... |
Forum: Geeks' Lounge 26 Days Ago |
| Replies: 7 Views: 517 Since thanksgiving is soon here, I thought we would have our
own daniweb feast, specifically an obscure feast. Remember that
only obscure code is valid in our obscure table.
I'll start :
... |
Forum: C++ 27 Days Ago |
| Replies: 17 Views: 619 This shouldn't be this hard.
You want to read from a text file of the format :
Firstname;Lastname;178
where the ';' means the word has ended. And you know you will
always read firstname,... |
Forum: Geeks' Lounge 27 Days Ago |
| Replies: 32 Views: 1,773 Sounds like a good hobby? Is there a team to join for this sort of
stuff. |