Showing results 1 to 40 of 344
Search took 0.06 seconds.
Posts Made By: Asif_NSU
Forum: Geeks' Lounge Aug 12th, 2006
Replies: 37
Views: 4,485
Posted By Asif_NSU
Re: London bombs AGAIN!!!

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: 4,485
Posted By Asif_NSU
Re: London bombs AGAIN!!!

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 Blair's...
Forum: Geeks' Lounge Aug 12th, 2006
Replies: 37
Views: 4,485
Posted By Asif_NSU
Re: London bombs AGAIN!!!

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: 3,630
Posted By Asif_NSU
Re: what's with gcc?

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: 3,630
Posted By Asif_NSU
Re: what's with gcc?

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: 3,630
Posted By Asif_NSU
Re: what's with gcc?

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: 3,630
Posted By Asif_NSU
Re: what's with gcc?

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 + a...
Forum: C++ May 15th, 2006
Replies: 24
Views: 3,630
Posted By Asif_NSU
Re: what's with gcc?

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 prev...
Forum: C++ May 15th, 2006
Replies: 24
Views: 3,630
Posted By Asif_NSU
Re: what's with gcc?

%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: 3,630
Posted By Asif_NSU
Re: what's with gcc?

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: 3,630
Posted By Asif_NSU
Re: what's with gcc?

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: 3,630
Posted By Asif_NSU
Re: what's with gcc?

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: 3,630
Posted By Asif_NSU
Re: what's with gcc?

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: 3,630
Posted By Asif_NSU
what's with gcc?

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 = 1;
Forum: C++ Apr 22nd, 2006
Replies: 3
Views: 3,737
Posted By Asif_NSU
Re: DestroyWindow

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: 3,737
Posted By Asif_NSU
DestroyWindow

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: 4,626
Posted By Asif_NSU
Listing files in a folder

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: 5
Views: 2,962
Posted By Asif_NSU
Re: Fingerprint SDK fot C or C++

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: 5
Views: 2,962
Posted By Asif_NSU
Re: Fingerprint SDK fot C or C++

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 just...
Forum: Computer Science and Software Design Mar 15th, 2006
Replies: 3
Views: 2,818
Posted By Asif_NSU
Re: Criminal Record Database

Finally found this:
FLORIDA DEPARTMENT of Law Enforcement (http://www.fdle.state.fl.us/ICHS/phase-one.html)
Forum: C++ Mar 14th, 2006
Replies: 5
Views: 2,962
Posted By Asif_NSU
Re: Fingerprint SDK fot C or C++

I guess I found this:
GrFinger Biometric SDK (http://www.griaule.com/page/en-us/downloads)
Forum: C++ Mar 14th, 2006
Replies: 5
Views: 2,962
Posted By Asif_NSU
Fingerprint SDK fot C or C++

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 and Software Design Mar 9th, 2006
Replies: 3
Views: 2,818
Posted By Asif_NSU
Re: Criminal Record Database

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 and Software Design Mar 6th, 2006
Replies: 3
Views: 2,818
Posted By Asif_NSU
Criminal Record Database

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 it...
Forum: Geeks' Lounge Jan 14th, 2006
Replies: 3
Views: 1,097
Posted By Asif_NSU
Re: Happy Birthday Jwenting

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: 2,452
Posted By Asif_NSU
Re: Graphics in Microsoft C

graphics.h wont work with Visual C++. You have to learn win32 APIs.
Forum: C++ Jan 8th, 2006
Replies: 7
Views: 1,453
Posted By Asif_NSU
Re: C++ question.

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 should...
Forum: C++ Jan 8th, 2006
Replies: 7
Views: 1,453
Posted By Asif_NSU
Re: C++ question.

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: 2,743
Posted By Asif_NSU
Re: help me in my password checking prog

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>>.
or...
Forum: C++ Nov 27th, 2005
Replies: 15
Views: 2,743
Posted By Asif_NSU
Re: help me in my password checking prog

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: 2,743
Posted By Asif_NSU
Re: help me in my password checking prog

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: 927
Posted By Asif_NSU
Re: Need some help please

Try solving acm problems
acm.uva.es/problemset/
Forum: C++ Nov 26th, 2005
Replies: 8
Views: 1,630
Posted By Asif_NSU
Re: gcc and g++

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,630
Posted By Asif_NSU
Re: gcc and g++

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,630
Posted By Asif_NSU
Question gcc and g++

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: 1,672
Posted By Asif_NSU
Re: plz debug my prog to insert value in an array

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: 1,672
Posted By Asif_NSU
Re: plz debug my prog to insert value in an array

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,441
Posted By Asif_NSU
Re: Runtime error!! ACM problem

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,441
Posted By Asif_NSU
Runtime error!! ACM problem

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>

#define...
Forum: Geeks' Lounge Nov 13th, 2005
Replies: 2
Views: 1,375
Posted By Asif_NSU
Re: Desktop replacement notebook

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 344

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:23 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC