Jump to content
xisto Community

khosro_php

Members
  • Content Count

    5
  • Joined

  • Last visited

  1. if you want to start c++ programing read and train this simple programs. 1."using ? command."#include <iostream.h>#include <conio.h>int main(){clrscr();float a,b,c,d;cin >>a>>b>>c>>d;a=(a>c+d)?(a*c) : (b*d);cout <<"a="<<a;getch();return 0;}[/indent][indent]2."using of while loop command."#include <iostream.h>#include <conio.h>int main(){clrscr();float a,b,c,d;cin >>a>>b>>c>>d;a=(a>c+d)?(a*c) : (b*d);cout <<"a="<<a;getch();return 0;}[/indent][indent]3."using of for loop"#include <iostream.h>#include <conio.h>int main(){clrscr();float a,b,c,d;cin >>a>>b>>c>>d;a=(a>c+d)?(a*c) : (b*d);cout <<"a="<<a;getch();return 0;}[/indent][indent]4."conwerting a secund to hour and minute and secund."#include <iostream.h>#include <conio.h>int main(){clrscr();float a,b,c,d;cin >>a>>b>>c>>d;a=(a>c+d)?(a*c) : (b*d);cout <<"a="<<a;getch();return 0;}[/indent][indent]5."calculate numbers of a data"#include <iostream.h>#include <conio.h>int main(){clrscr();int a,b,c=0;cout <<"enter number:";cin >>a;while(a>0){b=a%10;c+=b;a/=10;}cout <<"result="<<c;getch();return 0;}[/indent][indent]6."simple working with numbers"#include <iostream.h>#include <conio.h>int main(){clrscr();int a,b,c,i=1,j=0;cout <<"enter a num:";cin >>a;c=a;while(c>0){c/=10;j++;}c=0;while(a>0){b=a%10;i=1;while(i<j){b*=10;i++;}j--;c+=b;a/=10;}cout <<"Maghloob="<<c;getch();return 0;} Notice from jlhaslip: bbcode code tags are required
  2. this script allow user to send an email for you. i hope you enjoy [color="#0000ff"][indent]<? $top='<html dir="rtl"> <head> <meta http-equiv="Content-Language" content="fa"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <div align="center"> <p style="margin-top: 0; margin-bottom: 0"> <font face="Tahoma" size="1" color="#003366">in the name of god</font></p> <p style="margin-top: 0; margin-bottom: 0"><b> <font face="Tahoma" size="1" color="#003366">contents of recived form</font></b></p> <p style="margin-top: 0; margin-bottom: 0"><font face="Tahoma" size="1"> </font></p> <table border="0" cellpadding="0" style="border-collapse: collapse" width="500" height="20" bordercolor="#000000" id="table1"> <tr> <td width="161" height="24" style="border-style: solid; border-width: 1px" bgcolor="#F4F4F4" bordercolor="#333333"> <p align="center" style="margin: 2px 5px"><b> <font face="Tahoma" style="font-size: 9pt">name of choce</font></b></td> <td height="24" style="border-style: solid; border-width: 1px" bgcolor="#F4F4F4" bordercolor="#333333"> <p align="center" style="margin: 2px 5px"><b> <font face="Tahoma" style="font-size: 9pt"> user data entered </font></b></td> </tr>'; ############################## $body=' <tr> <td width="161" style="border-style: solid; border-width: 1px" height="24" bordercolor="#333333"> <p align="center" style="margin: 2px 5px"><span lang="en-us"> <font face="Tahoma" style="font-size: 9pt">%field</font></span></td> <td style="border-style: solid; border-width: 1px" height="24" bordercolor="#333333"> <p align="justify" style="margin: 2px 10px; "><span lang="en-us"> <font face="Tahoma" style="font-size: 9pt">%info</font></span></td> </tr>'; ############################## $footer=' </table> <p style="margin-top: 0; margin-bottom: 0"> </p> <p style="margin-top: 0; margin-bottom: 0"><b><font face="Tahoma" size="1"> </font></b></div> <div align="center"> <table border="0" cellpadding="0" style="border-collapse: collapse" width="500" height="20" bordercolor="#000000" id="table2"> <tr> <td height="25" style="border-style: solid; border-width: 1px" bgcolor="#F2CC84" colspan="2" bordercolor="#333333"> <p style="margin-top: 0; margin-bottom: 0" align="center"><b> <font face="Tahoma" size="1" color="#800000">user information</font></b></p> </td> </tr> <tr> <td width="161" height="25" style="border-style: solid; border-width: 1px" bordercolor="#333333"> <p align="center" style="margin: 2px 5px"> <font face="Tahoma" style="font-size: 9pt">ip address</font></td> <td height="25" style="border-style: solid; border-width: 1px" bordercolor="#333333"> <p align="center" style="margin: 2px 5px"><span lang="en-us"> <font face="Tahoma" style="font-size: 9pt">%ip</font></span></td> </tr> <tr> <td width="161" style="border-style: solid; border-width: 1px" height="25" bordercolor="#333333"> <p align="center" style="margin: 2px 5px"> <font face="Tahoma" style="font-size: 9pt">your link</font></td> <td style="border-style: solid; border-width: 1px" height="25" bordercolor="#333333"> <p align="center" style="margin: 2px 5px"><span lang="en-us"> <font face="Tahoma" style="font-size: 9pt">%link</font></span></td> </tr> </table> <p align="center" style="margin: 2px 5px"> <p align="center" style="margin: 2px 5px"> </div> <p align="center" dir="ltr" style="margin-top: 2px; margin-bottom: 2px"> <span lang="en-us"><font face="Verdana" size="1" color="#333333">if you can,t Read this , change the encoding to UTF-8</font></span></p> <p align="center" style="margin-top: 2px; margin-bottom: 2px"> <span lang="en-us"><font size="1" face="Verdana"> <a href="http://khosro.tk"><font color="#800000">Powered By: http://forums.xisto.com/no_longer_exists/; <p align="center"> </p> </body> </html>'; ############################## if (isset($_POST['email'])) $email=$_POST['email']; else $email=$from; if (isset($_POST['subject'])) $subject=$_POST['subject']; ############################## $header='From: "'.$email.'" <'.$email.">rn" .'Reply-To: "'.$email.'" <'.$email.">rn" .'To:<'.$to.">rn" ."(anti-spam-(anti-spam-(anti-spam-(anti-spam-mime-version:)))) 1.0rn" ."(anti-spam-(anti-spam-(anti-spam-(anti-spam-content-type:)))) text/html; charset=utf-8rn" ."Content-Transfer-Encoding: 7bitrn"; ############################## $main=''; foreach($_POST as $k => $v) { $lists=$body; $lists=ereg_replace('%field',$k,$body); $lists=ereg_replace('%info',$v,$lists); $main .=$lists; } ############################# $ip= $_SERVER['REMOTE_ADDR']; $link=$_SERVER['HTTP_REFERER']; $footer=ereg_replace('%ip',$ip,$footer); $footer=ereg_replace('%link',$link,$footer); $body=$top.$main.$footer; mail($to,$subject,$body, $header); header("location: $redirect") ?>[/indent][/color] Notice from jlhaslip: code tags added
  3. it's a great game fo your mobiles.this game is supported in nokia 7210 - 6610 - 6100 - 7250bounce_1.8.zip
  4. this movie shows a man that dropped down from azadi square whwn mr.ahmadi nejad is speaking.azadi.zip
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.