Simple Function Generator

Posts 110 of 10 · Page 1 of 1
Simple Function Generator
Very simple code I made in like 5 minutes. It just uses addy but creating a function generator with offset is super easy also:

Code:
/***************************************
* Simple Function Creator
* Created by scraprecon
* Date started: 9/9/2012
****************************************/

#include <Windows.h>
#include <iostream>
#include <string>

using namespace std;

int main()
{
	string type;
	string addy;
	float value;
	cout << "Type:\n";
	cin >> type;
	cout << "Addy:\n";
	cin >> addy;
	cout << "Value:\n";
	cin >> value;
	cout << "Generating...\n";
	Sleep(3000);
	cout << "*(" << type << "*)(" << addy << ") = " << value << ";\n"; 

	system("PAUSE");
	return 0;
}
Wow Nice ..can you give me some? HAHA
Quote Originally Posted by mcbone14 View Post
Wow Nice ..can you give me some? HAHA
ayan na ung code ikaw na mismo gagawa nyan.
Quote Originally Posted by MJCreado View Post
ayan na ung code ikaw na mismo gagawa nyan.
panu ko gagawin yan idol?

eto yung code?

Quote Originally Posted by scraprecon View Post
Very simple code I made in like 5 minutes. It just uses addy but creating a function generator with offset is super easy also:

Code:
/***************************************
* Simple Function Creator
* Created by scraprecon
* Date started: 9/9/2012
****************************************/

#include <Windows.h>
#include <iostream>
#include <string>

using namespace std;

int main()
{
	string type;
	string addy;
	float value;
	cout << "Type:\n";
	cin >> type;
	cout << "Addy:\n";
	cin >> addy;
	cout << "Value:\n";
	cin >> value;
	cout << "Generating...\n";
	Sleep(3000);
	cout << "*(" << type << "*)(" << addy << ") = " << value << ";\n"; 

	system("PAUSE");
	return 0;
}
Quote Originally Posted by mcbone14 View Post
panu ko gagawin yan idol?

eto yung code?

C++ 2008 or 2010.

Win32 Console Application
Console Application
Empty Project

then create base.cpp copy & paste that code and build.
Quote Originally Posted by MJCreado View Post
C++ 2008 or 2010.

Win32 Console Application
Console Application
Empty Project

then create base.cpp copy & paste that code and build.
try ko sa bahay idol
Nice, you should make it print the function and have a console title
o h nice ma n thanks
Posts 110 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?