Search Results

Showing results 1 to 40 of 52
Search took 0.02 seconds.
Search: Posts Made By: vishesh
Forum: Python Nov 5th, 2009
Replies: 17
Views: 529
Posted By vishesh
There are of course others out there. But this one is the simplest and produce decent set. You can search for pseudorandom number generator algos.

http://en.wikipedia.org/wiki/List_of_algorithms...
Forum: Python Nov 5th, 2009
Replies: 17
Views: 529
Posted By vishesh
What I mean is instead of directly printing whole list, you have to print numbers individually, to avoid L at end:

for x in rand_num:
print x
Forum: C++ Nov 4th, 2009
Replies: 14
Views: 457
Posted By vishesh
To avoid buffer overflow, prefer using cin.getline(char_ptr, size);

>> With that code, calling the >> operator will always store it into appt.subject, but what about storing information to...
Forum: C++ Nov 4th, 2009
Replies: 14
Views: 457
Posted By vishesh
The problem is again sort of same. appt.subject = new char[strlen(ptr) + 1];. Neither ptr holds any string nor it point to any dynamically allocated memory and you are still trying to calculate its...
Forum: C++ Nov 4th, 2009
Replies: 14
Views: 457
Posted By vishesh
Its happening because subject is not pointing to a valid address, basically you haven't allocated memory to it. Either use char subject[size] or allocate memory in constructor using malloc() or new...
Forum: Python Nov 4th, 2009
Replies: 17
Views: 529
Posted By vishesh
You mean output sort of this 132434454545435435L.

Well this happens when the number gets greater than usual integer type range. Python converts normal integer into Long type and Python shows L...
Forum: Python Nov 4th, 2009
Replies: 17
Views: 529
Posted By vishesh
Well there are several algorithms to generate random number, simplest to my knowledge being Linear congruential generator(LCG) (http://en.wikipedia.org/wiki/Linear_congruential_generator).

The...
Forum: Graphics and Multimedia Jul 28th, 2009
Replies: 8
Solved: flash + linux
Views: 554
Posted By vishesh
I dunno if there is any linux application to edit FLA files. But you may try using Wine Project (http://www.winehq.org/)to use Windows version of Flash.
Forum: Graphics and Multimedia Apr 4th, 2009
Replies: 3
Views: 769
Posted By vishesh
Could you post the link to web page or some code to which we can look and solve. Chances are slim for getting problem solved just by the information you have given.
Forum: Graphics and Multimedia Jun 16th, 2008
Replies: 7
Solved: Flash Intro
Views: 1,343
Posted By vishesh
use getURL() (http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary377.html) function. Use this function ion layer action panel of last frame.
Forum: Graphics and Multimedia Jun 12th, 2008
Replies: 5
Views: 1,367
Posted By vishesh
Then this would work:


movieclipname.onRollOver = function(){
stop();
}


I removed this because if you use that it will stop the clip playing inside that movie clip will stop, not the...
Forum: Graphics and Multimedia Jun 11th, 2008
Replies: 5
Views: 1,367
Posted By vishesh
Create a layer over the tween if both exist in same layer. Otherwise if would be simple. Posy if I not very clear.


on (rollOver) {
_movieClipName.stop();
}
Forum: Graphics and Multimedia Jun 11th, 2008
Replies: 1
Views: 846
Posted By vishesh
If you want a hyperlink to another webpage tryout getURL() (http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary377.html). Otherwise for another frame try...
Forum: Graphics and Multimedia Mar 19th, 2008
Replies: 2
Views: 1,168
Posted By vishesh
Well, don't keep height and width attribute empty. It will surely result into undefined behavior.
Forum: C++ Jan 3rd, 2008
Replies: 4
Solved: Linker Errors
Views: 767
Posted By vishesh
What linker errors are you getting? You have just declared the function paidout() but not defined it. And perhaps you have called it somewhere else. Also if you think thats the whole program then its...
Forum: C++ Jan 3rd, 2008
Replies: 4
Solved: Sleep Problem
Views: 1,527
Posted By vishesh
Yes windows.h, if you are using windows. And the function name is Sleep() not sleep()
Forum: C++ Dec 11th, 2007
Replies: 10
Views: 1,185
Posted By vishesh
No, back() return reference.
Forum: Graphics and Multimedia Nov 8th, 2007
Replies: 2
Views: 1,390
Posted By vishesh
Giving you an idea how to do it. Try it, if encounter any problem post here with your AS. Create a new layer in root. Don't insert any frame except the first. Select the only and the first frame and...
Forum: HTML and CSS Oct 23rd, 2007
Replies: 16
Views: 2,900
Posted By vishesh
> ok sir as u wish
Just Vishesh.

>i think we should not have a conflict
Its not a confilict, just expressing your views, ideas, discussion
Forum: HTML and CSS Oct 22nd, 2007
Replies: 16
Views: 2,900
Posted By vishesh
Come on yaar, I'm not a bujurg. So only Vishesh will suffice.:)

No no no. It would be correct until you only code. If you start with WYSIWYG editor it would be somewhat different, but yeah linked...
Forum: HTML and CSS Oct 18th, 2007
Replies: 16
Views: 2,900
Posted By vishesh
Exactly bad habit

Of constanly pulling your hairs while designing
Of searching net for every little thing, How to do XYZ thing??
Of being satisfied by whatever crap you get thinking that its...
Forum: HTML and CSS Oct 18th, 2007
Replies: 16
Views: 2,900
Posted By vishesh
Perhaps you should start a new thread for your problem, with code. It isn't due to software(most probably). That's why I say learn html and css.:)

Well, DW is probably the best software available...
Forum: HTML and CSS Oct 16th, 2007
Replies: 16
Views: 2,900
Posted By vishesh
Then, I would suggest learn HTML. If you want to use DW creatively and get most out of it, you will have to learn CSS too.

HTML is easy and very specific. You shouldn't get any problem learning...
Forum: HTML and CSS Oct 16th, 2007
Replies: 16
Views: 2,900
Posted By vishesh
Well, if you are pretty good with HTML and CSS continue learning it , DW is really good, but if you dont first learn HTML and CSS first.

You must always know advantages and disadvantages of any...
Forum: C++ Oct 13th, 2007
Replies: 17
Solved: hInstance
Views: 10,178
Posted By vishesh
The program you are discussing is a Windows program which uses Win32 API library.

In resource.h you may get error if you havn't left a blank line at the end.

If you dont know what hInstance or...
Forum: C++ Oct 11th, 2007
Replies: 22
Views: 7,453
Posted By vishesh
If getnumber() doen't ask for values but just shows them, it would look like this


int findbig(int a, int b)
{
// will return -1, if a is greater
// 0 if both are equal
// 1 if b...
Forum: C++ Sep 12th, 2007
Replies: 18
Views: 6,317
Posted By vishesh
Whats the code, so that we could see whats happening. Here's an MSDN link (http://msdn2.microsoft.com/en-us/library/t8xe60cf%28VS.80%29.aspx) which show some common reason to this specific error.
Forum: C++ Sep 12th, 2007
Replies: 6
Views: 3,933
Posted By vishesh
Of course all pragmas are compiler dependent and different compilers could have different pragmas. I didn't mentioned it all but I think its pretty clear. By deprecated I meant its somewhat strongly...
Forum: C++ Sep 12th, 2007
Replies: 6
Views: 3,933
Posted By vishesh
You could also use #pragma once but it is compiler dependent and deprecated. Its generally used with MSVC++.
Forum: C++ Sep 5th, 2007
Replies: 7
Views: 1,544
Posted By vishesh
Ok then same messages. Try this. Goto Project->Properties->Linker->System->Subsystem. Change it to /SUBSYSTEM:CONSOLE.
Forum: C++ Sep 5th, 2007
Replies: 7
Views: 1,544
Posted By vishesh
What error messages are you are getting? The project as console application must compiler your program well.

Also try to deselect(if selected) the Precompiled Header option. Sometimes it happens...
Forum: C Sep 4th, 2007
Replies: 7
Views: 1,252
Posted By vishesh
But the link works perfectly for me.
Forum: C Sep 4th, 2007
Replies: 7
Views: 1,252
Posted By vishesh
Have a look at this (http://blog.eikke.com/index.php/ikke/2005/11/03/using_c_classes_in_c).
Forum: C++ Sep 3rd, 2007
Replies: 6
Views: 2,378
Posted By vishesh
There is separate MSDN Express Edition for VS2005 Express, which integrates itself to VS.
Forum: HTML and CSS Sep 3rd, 2007
Replies: 2
Views: 1,975
Posted By vishesh
Well making it transitional instead of strict would make it work fine. But to do it with strict only give a dimension to lengths, font-size etc wherever needed. You see these isn't only one kind in...
Forum: MySQL Sep 2nd, 2007
Replies: 4
Views: 4,064
Posted By vishesh
I didn't really get you! What do you mean? Be more clear.
Forum: Graphics and Multimedia Jun 14th, 2007
Replies: 3
Views: 5,870
Posted By vishesh
I dont whether its in other versions but there is sample jukebox in sample apps in MX 2004. That would give you a drift.

You see that's not a big deal. You have two option, use XML or PHP. You...
Forum: HTML and CSS May 17th, 2007
Replies: 23
Views: 3,652
Posted By vishesh
I do not teach, I am of course not a teacher. I am a high school student and don't have time to teach someone personally and I think neither anyone else have. I am not being rude but that what the...
Forum: HTML and CSS May 17th, 2007
Replies: 23
Views: 3,652
Posted By vishesh
There are several tutorials over the net. They are sufficient to teach you everything about HTML. What you need is practice and experience to master it. Here are few good tutorials:
...
Forum: C++ Apr 6th, 2007
Replies: 3
Solved: iostream
Views: 2,050
Posted By vishesh
Are you sure that you have wriiten
#include <iostream> not ioestream as the error shows.
Showing results 1 to 40 of 52

 


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

©2003 - 2009 DaniWeb® LLC