Search Results

Showing results 1 to 40 of 98
Search took 0.20 seconds.
Search: Posts Made By: firstPerson
Forum: Geeks' Lounge 1 Day Ago
Replies: 58
Views: 1,965
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
My perception of you. serra01 is a spammer.
Forum: C++ 5 Days Ago
Replies: 4
Views: 242
Posted By firstPerson
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
Posted By firstPerson
There is no through getting to him. Just let him be.
Forum: C++ 7 Days Ago
Replies: 10
Views: 734
Posted By firstPerson
Pretty cool. Looks something someone will see if they were high of drugs.
Forum: C++ 8 Days Ago
Replies: 3
Views: 246
Posted By firstPerson
>>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
Posted By firstPerson
cout<<"*"<<endl;
cout<<" *"<<endl;
cout<<" *"<<endl;
cout<<" *"<<endl;
cout<<"*"<<endl;
Forum: C++ 8 Days Ago
Replies: 1
Solved: exams
Views: 204
Posted By firstPerson
Well it will ask you questions of what you have covered.
Forum: Geeks' Lounge 8 Days Ago
Replies: 58
Views: 1,965
Posted By firstPerson
No false, no matter how precise you get, its never a perfect circle.
Forum: Geeks' Lounge 8 Days Ago
Replies: 58
Views: 1,965
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
Ya gotta learn english 1st.
Forum: C++ 12 Days Ago
Replies: 1
Views: 138
Posted By firstPerson
>>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
Posted By firstPerson
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
Posted By firstPerson
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
Solved: Vectors
Views: 204
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
Yes there is, probably.
Forum: C++ 17 Days Ago
Replies: 14
Views: 317
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
int main()
{
srand( time( 0 ) );

cout << rand() % 2 << endl;
}
Forum: Geeks' Lounge 19 Days Ago
Replies: 16
Views: 828
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
Yea, what he said.
Forum: Geeks' Lounge 20 Days Ago
Replies: 0
Views: 349
Posted By firstPerson
1
WTF?
This is too hilarious. (http://thedailywtf.com/Articles/Vector_Oriented_Programming.aspx)
Forum: C++ 21 Days Ago
Replies: 6
Views: 269
Posted By firstPerson
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
Posted By firstPerson
???

for(int i = 0; i !=1; ++i)
cout << "M"<<endl;
Forum: C 23 Days Ago
Replies: 1
Views: 348
Posted By firstPerson
don't use the sqrt function. compare the squared distance.
Forum: Computer Science 24 Days Ago
Replies: 6
Views: 733
Posted By firstPerson
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
Posted By firstPerson
#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
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
Sounds like a good hobby? Is there a team to join for this sort of
stuff.
Showing results 1 to 40 of 98

 


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

©2003 - 2009 DaniWeb® LLC