## Nuko32's Profile User Rating:

Reputation: 3 Apprentice
Group:
Members
Active Posts:
23 (0.04 per day)
Joined:
08-May 12
Profile Views:
5,150
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
Who Cares
Dream Kudos:
0
Nuko32 has not set their status

1. #### 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
2. #### 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.
3. #### 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!
4. #### In Topic: Problem with MouseListener

Posted 28 May 2012

Ryano121, on 28 May 2012 - 07:36 AM, said:

We are talking with images! When the users clicks on "Start" image, the game will start!
5. #### 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:
Age:
15 years old
Birthday:
November 21, 1998
Gender:
Location:
Italy
Interests:
Full Name:
Nicoḷ Blasi
Years Programming:
2
Programming Languages:
C++, Java, HTML, Batch, Bash

### Contact Information

E-mail:
Website URL:
http://nuko32.altervista.org/
Yahoo:
Nuko32
Skype:
Nuko32