Nuko32's Profile
Reputation: 3
Apprentice
- Group:
- Members
- Active Posts:
- 23 (0.06 per day)
- Joined:
- 08-May 12
- Profile Views:
- 1,771
- Last Active:
Jan 05 2013 06:18 AM- Currently:
- Offline
Previous Fields
- Country:
- IT
- OS Preference:
- Mac
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- XBox
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Searching a string in a text file
Posted 17 Dec 2012
LarcaCode, on 17 December 2012 - 10:22 AM, said:Open the file, store the content in a string and use string::find
Here you can see the reference for string::find.
Cheers
Larca
Thanks! It works very well
-
In Topic: C++ Encryption Algorithm
Posted 16 Dec 2012
macosxnerd101, on 16 December 2012 - 01:23 PM, said:A cryptographic algorithm is a mathematical transform of numbers. I don't mean to be rude, but by your question, you don't seem to have a strong math background. Explore some number theory and pick up some Cryptography textbooks for college classes. As a heads up, Crypto is usually taught at the 4000+ level in college.
LOL maybe I don't have a strong math background, btw I'm 14 years old. Anyway, I already knew what an algorithm is, but I want to know how to create it in C++. Well, not the algorithm itself, but a program that encrypts some text using that algorithm. -
In Topic: MouseListener on images
Posted 28 May 2012
Ryano121, on 28 May 2012 - 11:20 AM, said:As I've said before get the location of the mouse click via the MouseEvent object passed into the event handler and calculate whether or not it's inside the image area (using the bounds of the image).
You will probably need to use an anonymous class to you have access to the image -
addMouseListener(new MouseListener() { public void mouseClicked(MouseEvent e) { int x = e.getX(); int y= e.gety(); //Determine whether or not X and Y are inside the image here } });
You may find it useful to work out the logic behind this on paper first and then translate it into code.
Good luck
Ok thanks! -
In Topic: Problem with MouseListener
Posted 28 May 2012
-
In Topic: Problem with MouseListener
Posted 28 May 2012
Information:
Im creating the menu with images! When the users click on the "Start" image, the game will start!
My Information
- Member Title:
- New D.I.C Head
- Age:
- 14 years old
- Birthday:
- November 21, 1998
- Gender:
-
- Location:
- Italy
- Interests:
- Programming, Music, Reading, Watching TV
- Full Name:
- Nicoḷ Blasi
- Years Programming:
- 2
- Programming Languages:
- C++, Java, HTML, Batch, Bash
Contact Information
- E-mail:
- Click here to e-mail me
- Website URL:
-
http://nuko32.altervista.org/
- Yahoo:
-
Nuko32
- Skype:
-
Nuko32
- Facebook:
- http://facebook.com/Nuko32
- Twitter:
- Nuko32
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
Nuko32 has no profile comments yet. Why not say hello?