Search Results

Showing results 1 to 40 of 353
Search took 0.02 seconds.
Search: Posts Made By: Asif_NSU
Forum: Geeks' Lounge Aug 12th, 2006
Replies: 37
Views: 5,411
Posted By Asif_NSU
When did I say that that you should be negotiating with the terrorists? I only suggested that to prevent terrorism you have to fight against their propaganda. You must ensure that people in your...
Forum: Geeks' Lounge Aug 12th, 2006
Replies: 37
Views: 5,411
Posted By Asif_NSU
Extremism draws its fuel from atrocities committed on their community and do-nothing-and-simply-watch attitude of the International Community.


Mumbai - I don't know. But London because of...
Forum: Geeks' Lounge Aug 12th, 2006
Replies: 37
Views: 5,411
Posted By Asif_NSU
The root cause of today's so called terrorism is simply a consequence of such unjustified "punishments". A person becomes a suicide bomber only after seeing atrocities committed on him, on his family...
Forum: C++ May 16th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
Well, atleast I think I have learned some very good lessons from this thread.

Next time I post at daniweb C and C++ forum I promise I will be at a different level than I am currently now - which...
Forum: C++ May 16th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
Yeah! But you did not give any explanation that time and it worked well on all the other compilers. All my common sense told me it's something to do with gcc - the compiler itself. Besides the...
Forum: C++ May 16th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
This is what happens when I use your code. The effect is same as mine. This time it's in GIF format. Hope that's okay with you.
Forum: C++ May 16th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
If you run the loop for say 50 times that's enough most of the time to get the desired result. So instead of using x1 != x0, I would use the following code

for(i = 0; i < 50; ++i)
x = .5 * (x...
Forum: C++ May 15th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
First you explain to me how come uncommenting a printf() statement makes the loop end. This simply doesn't make any sense.

Within a few iterations the new value of x1 differs so small from the...
Forum: C++ May 15th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
%lf is valid for scanf(), so it is natural for anyone to think it is also valid for printf(). Things like this is easy to miss unless someone explicitly mentions it.

Now I want to know how much...
Forum: C++ May 15th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
Thanks everyone for being so patient with me, especially Salem who actually downloaded MinGW gcc. I really appreciate that!

Here's the screen capture of what I am getting. First I compile the...
Forum: C++ May 14th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
I never claimed to have found a bug in gcc. I merely suggested that it could be a possibility. If you look at my first post I was here to clarify if it was due to a bug with the gcc or due to...
Forum: C++ May 13th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
I read the first article back in my "Computer organisation and design" class regarding how to represent real numbers inside computers. And I have already told you I am completely aware that the...
Forum: C++ May 13th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
There is no hole in my code. I said I am aware of the comparison issue with double/float datatypes. I said so because some of you might jump into the conclusion that checking for inequality between...
Forum: C++ May 13th, 2006
Replies: 24
Views: 5,169
Posted By Asif_NSU
The following code finds the square root of a number, it runs fine unless you compile with MinGW gcc:

#include<stdio.h>
#include<stdlib.h>

int main(void)
{
double x0,x1,a;
int i;
x1 =...
Forum: C++ Apr 22nd, 2006
Replies: 3
Views: 5,916
Posted By Asif_NSU
I need to do certain things when user tries to close the window. Say may be to ask him whether he actually wants to quit or not etc. That's why I cant let DefWindowProc() to handle it. But that was...
Forum: C++ Apr 21st, 2006
Replies: 3
Views: 5,916
Posted By Asif_NSU
I am kind of confused about how DestroyWindow() works. According to the help files this function sends a WM_DESTROY message to the window it has just removed from the screen. In my WindowProc I have...
Forum: C++ Apr 5th, 2006
Replies: 1
Views: 7,420
Posted By Asif_NSU
I am trying to access files in a folder. The folder name and location will be given - the program will search inside the files in that folder for a specific pattern(yup like grep). However, I am not...
Forum: C++ Mar 15th, 2006
Replies: 8
Views: 4,049
Posted By Asif_NSU
True.

In the long term it is not, except for the students who don't know much about programming except for making good GUIs in Java.
Forum: C++ Mar 15th, 2006
Replies: 8
Views: 4,049
Posted By Asif_NSU
My database is not for commercial use. I needed an SDK which was free for 'non-commercial' purpose. I preferred to use 'educational' in this context.


Ha ha. The funny thing is that it will be...
Forum: Computer Science Mar 15th, 2006
Replies: 3
Views: 3,479
Posted By Asif_NSU
Finally found this:
FLORIDA DEPARTMENT of Law Enforcement (http://www.fdle.state.fl.us/ICHS/phase-one.html)
Forum: C++ Mar 14th, 2006
Replies: 8
Views: 4,049
Posted By Asif_NSU
I guess I found this:
GrFinger Biometric SDK (http://www.griaule.com/page/en-us/downloads)
Forum: C++ Mar 14th, 2006
Replies: 8
Views: 4,049
Posted By Asif_NSU
I was looking for an SDK to learn a bit about fingerprint identification system. I have googled a lot and found many different SDKs. However none of them were free. I dont want to implement any...
Forum: Computer Science Mar 9th, 2006
Replies: 3
Views: 3,479
Posted By Asif_NSU
Thanks for your reply. I have talked to that person in the police department. He seems to know what kind of attributes are kept for criminals. However, it turned out to be something really huge....
Forum: Computer Science Mar 6th, 2006
Replies: 3
Views: 3,479
Posted By Asif_NSU
Hi I am into my Database course.

I have proposed to develop a criminal record database as the project. If anyone have worked on such a project before or know a few things about it please do share...
Forum: Geeks' Lounge Jan 14th, 2006
Replies: 3
Views: 1,299
Posted By Asif_NSU
Hmmm birthdays are good for health, the more you have the longer you live. Read it somewhere...
Forum: C++ Jan 11th, 2006
Replies: 4
Views: 3,245
Posted By Asif_NSU
graphics.h wont work with Visual C++. You have to learn win32 APIs.
Forum: C++ Jan 8th, 2006
Replies: 7
Views: 1,725
Posted By Asif_NSU
Whoa! you guys are fast, one minute ago there were no reply and now two posts in between the red's first and mine.

To red:
I can use getch() or getche() in gcc that comes with MinGW, so you...
Forum: C++ Jan 8th, 2006
Replies: 7
Views: 1,725
Posted By Asif_NSU
Yes, but you can't do them portably. If you are using borland or visual C++ compilers you can try the getch() or getche() function to do that.
Forum: C++ Nov 27th, 2005
Replies: 15
Views: 3,276
Posted By Asif_NSU
Then why dont we hear something along this line about cin and scanf() as we hear about gets():

reason: the professor used gets().
Why not say the same when the professor uses scanf() or cin>>....
Forum: C++ Nov 27th, 2005
Replies: 15
Views: 3,276
Posted By Asif_NSU
The links given above says that there is no way to pass the number of characters gets() should read, so a mischievous user can intentionally overflow the buffer to cause havoc. And "THAT'S WHY" you...
Forum: C++ Nov 26th, 2005
Replies: 15
Views: 3,276
Posted By Asif_NSU
Is it because the user can overflow the buffer by entering more characters than the array or the pointer can hold? If that is the reason then scanf(), cin>> they are also not safe. So why blame...
Forum: C++ Nov 26th, 2005
Replies: 2
Views: 1,138
Posted By Asif_NSU
Try solving acm problems
acm.uva.es/problemset/
Forum: C++ Nov 26th, 2005
Replies: 8
Views: 1,994
Posted By Asif_NSU
using lstdcxx, libstd and libcxxgives the following error

-----------------------------------
ld.exe: cannot find -libcxx
collect2: ld returned 1 exit status
...
Forum: C++ Nov 25th, 2005
Replies: 8
Views: 1,994
Posted By Asif_NSU
I'd be willing to bet that the errors you're getting are linker errors.
Yes, they are linker errors like undefined reference to XYZ. So how do I link C++ programs using gcc with ease?
Forum: C++ Nov 25th, 2005
Replies: 8
Views: 1,994
Posted By Asif_NSU
I've recently swithed from borland C++ 5.5 to MinGW. When I try to compile a .c file using gcc it compiles fine, but when I try to compile a .cpp file using gcc it produces a bunch of errors with c++...
Forum: C++ Nov 22nd, 2005
Replies: 4
Views: 2,099
Posted By Asif_NSU
Sorry, this actually has nothing to do with this program. It's just cin fails to read ans because a char has been given instead of an int.
Forum: C++ Nov 21st, 2005
Replies: 4
Views: 2,099
Posted By Asif_NSU
that's because your ans is of type int. Try this instead:
char ans.
In C char literals like 'y' and 'Y' are actually of type int, but in C++ they are of type char.

And try to declare your array...
Forum: C++ Nov 18th, 2005
Replies: 2
Views: 1,949
Posted By Asif_NSU
I havent used a debugger, but I think it produces runtime error depending on the input. For some input the online judge uses it produces the error, not for the input i gave to it.
Forum: C++ Nov 18th, 2005
Replies: 2
Views: 1,949
Posted By Asif_NSU
This is (supposed to be) a soln for a ACM problem (http://acm.uva.es/p/v1/101.html)

But the program produces a runtime error.
Can anyone spot the bug?

#include<iostream>
#include<string>
...
Forum: Geeks' Lounge Nov 13th, 2005
Replies: 2
Views: 1,641
Posted By Asif_NSU
Well, Alienware does seem to offer some great gadgets there, definitely stylish. However, they seemed quite expensive to me. I actually liked the MJ-12® m7700i...
Showing results 1 to 40 of 353

 


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

©2003 - 2009 DaniWeb® LLC