Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
6
Posts with Downvotes
5
Downvoting Members
4
1 Commented Post
~8K People Reached
Favorite Forums
Favorite Tags
c++ x 99
php x 16
java x 5
Member Avatar for empror9

i'm working on a script and I want to make the links such as www.mysite.com/signup. this link for registration. www.mysite.com/user/username and this link for user's profile. the links without any php extension. also when someone request link such as www.mysite.com/signup.php should redirect him to www.mysite.com/signup what I know is I …

Member Avatar for empror9
0
143
Member Avatar for empror9

Hello, i'm working on a script and I want to make the links such as www.mysite.com/signup. this link for registration www.mysite.com/user/username and this link for user's profile. the links without any extention how can I do that?

Member Avatar for empror9
-1
202
Member Avatar for empror9

Hello, I know a little about php and I want to develop a website about advertisment. something about register a website and search about available adverstiment. I don't know what is better to use, functions or classes? help me for this other question, how to develop a script and make …

Member Avatar for empror9
0
113
Member Avatar for empror9

hello, i'm writing a code for non-preemptive shortest job first, everything is okay except to select the first process arrived in the queue. here is my code. #include<iostream> using namespace std; struct process{ int processId; int burstTime; int arrivalTime; }; int main(){ int numberOfProcesses; //number of process cout <<"please enter …

Member Avatar for empror9
0
745
Member Avatar for empror9

hello, i'm leaning about ActionListener but i can't compile my code, i don't know why :( this is the code package javaapplication7; import java.applet.Applet; import java.awt.Button; import java.awt.Color; import java.awt.Label; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Test extends Applet implements ActionListener{ Button b1=new Button("Red"); Button b2=new Button("Green"); Button b3=new Button("Blue"); …

Member Avatar for empror9
0
89
Member Avatar for empror9

hello, i'm trying to write two classes (vehicle and driver) first i want to create the class vehicle and it's attrbutes, but there is a problem when i compile the code. please see all my code [CODE]#include<iostream> #include<vector> using namespace std; // // Vehicle: Vehicle number, type, capacity, driver assigned …

Member Avatar for mike_2000_17
0
187
Member Avatar for empror9

hello, i want to write a simple university programme please first see my code [CODE]#include<iostream> #include<string> #include<vector> using namespace std; class subject { string code; public: void create_code(); void list_of_code(); }; class student { string name; public: void create_student(); void list_student(); }; int main() { int size_of_student,size_of_subject; student student_attributes; subject …

Member Avatar for empror9
0
98
Member Avatar for empror9

hello, i have a small project which ask the user to input value of 'x', then show sin(x),cos(x) and tan(x) using this fourmla [url]http://www.daniweb.com/forums/attachment.php?attachmentid=16080&stc=1&d=1280001204[/url] and the project is says that i can use this fourmla to minmise the computation and increase the efficiency [url]http://www.daniweb.com/forums/attachment.php?attachmentid=16081&stc=1&d=1280001204[/url] so my first question, when i …

Member Avatar for mike_2000_17
0
5K
Member Avatar for empror9

hello guys and hope you are fine :) please take a look to this code [CODE]#include <iostream> using namespace std; int sum(int num1,int num2, int sum1){ cout <<"Please enter two numbers:"; cin >> num1 >> num2; sum1 = num1 + num2; cout << sum1; return 0; } int div(int num3,int …

Member Avatar for empror9
0
131
Member Avatar for empror9

hello guys i have some questions and i want you to help me 1- how to find a factorial for a number e.g. input 5 = 5x4x3x2x1 so the is output 120, now please see my code [CODE]int fac = 0 ; int count = 0; int num; cout <<"Please …

Member Avatar for Agilemind
0
345
Member Avatar for empror9

hello everyone Q1-see this equation [url]http://www.daniweb.com/forums/attachment.php?attachmentid=15688&stc=1&d=1278298959[/url] is this the correct code for this Q1? [code]#include<iostream> using namespace std; int main() { float s=0,p; int i,j; float x; cout<<"x="; cin>>x; for(j=1;j<=6;j++) { p=1; for(i=1;i<=j;i++) p*=x; if(j%2==0) s+=(-p/j); else s+=(p/j); } cout<<"ln("<<x+1<<")="<<s<<endl; system("pause"); return 0; } [/code] *** Q2- i want to …

Member Avatar for NP-complete
0
93
Member Avatar for empror9

hello, i have some simple questions but i don't know why my code is not correct see these questons: 1-Write an algorithm to accept three numbers and display the largest one? this is my code [CODE]int num1,num2,num3; cout <<"Please enter three numbers:"; cin >> num1 >> num2 >> num3; if(num1 …

Member Avatar for hsh44
0
178
Member Avatar for empror9

hello, i want write a simple programe wich count the number of the chrechtar this is my code [CODE] #include <iostream> using namespace std; int main() { int count = 0; char str[30]; cout << "enter a word: " << endl; cin >> str; for (int x = 0; x …

Member Avatar for siddhant3s
0
161
Member Avatar for empror9

hello geys, i have some codes and i tried to find the output for each of them. most of the codes i answered but there are some codes which are strange for me (the output) first, i want from every one is to find the output without test it, please …

Member Avatar for empror9
0
64
Member Avatar for empror9

see this code with the queastion [CODE]#include <iostream> using namespace std; int main() { char str[30]; cout << "enter a word: " << endl; cin >> str; // if the user input: malaysia // so the output will be 3 because there are three charchter of 'a' return 0; } …

Member Avatar for batchprogram
0
118
Member Avatar for C++_Beginner

Help me please. I don't know where the error is. If you find it i will appreciate it. Very much. It says its inhere somewhere : [CODE] else (ENEMIES > ADVENTURERS) { cout << "\nAlong the way a band of Ogres ambushed the party. "; cout << "All fought bravely …

Member Avatar for C++_Beginner
0
94
Member Avatar for empror9

hello guys, i want to programming a simple game. please see these picures first picture: [URL="http://img519.imageshack.us/img519/6323/boardf.jpg"]http://img519.imageshack.us/img519/6323/boardf.jpg[/URL] second picture: [URL="http://img151.imageshack.us/img151/9964/18245360.jpg"]http://img151.imageshack.us/img151/9964/18245360.jpg[/URL] last picture: [URL="http://img25.imageshack.us/img25/3871/21456530.jpg"]http://img25.imageshack.us/img25/3871/21456530.jpg[/URL] "Jump over a token and capture the token. Every move must be a jump! Only horizontal and vertical moves are allowed, no diagonal movement in the game. The …

Member Avatar for Salem
0
115
Member Avatar for empror9

hello guys, i have a simple question which is how can i declare a variable to accept character and number at one time for example, i ask the user to input 'a1' to do something waiting for you

Member Avatar for empror9
0
195
Member Avatar for empror9

hello guys, how can i print a random values and print random function? could you please write the code thank you

Member Avatar for Stefano Mtangoo
0
121
Member Avatar for empror9

ok could you please see my code [CODE]srand(time(NULL)); system("MODE CON: COLS=90 LINES=360"); system("TITLE Press ^<ESC^> to exit"); cout << "Press <ESC> to exit\n\n"; int milliseconds = 500; char key=0, esc=27; while(key != esc) { int villain = rand(); system("cls"); char wall = 177, flute = 14, hero = 2, life_hero …

Member Avatar for Excizted
0
140
Member Avatar for empror9

hello, how can i call function from another function? i declare 3 functions which are move_mid ,move_left and move_right please see this code (it's just my idea and i know i has many syntacs erorr , but my goal is just how a function call some functions) [CODE]move_left() { cout …

Member Avatar for empror9
0
85
Member Avatar for empror9

Hello guys, i would like to ask you about c++ language. i have an assignment and i want to do a movement for the hero? i have an assignment and i want to do a movement for the hero which will be controled by the keyboard.i apologise because my english …

Member Avatar for strmstn
0
141
Member Avatar for empror9

Hello guys, i would like to ask you about c++ language. have an assignment and i want to do a movement for? i another questions, the hero should for example take a bomb to destroy the wall , hoe can i disply a message to show the user that what …

Member Avatar for empror9
0
151