-
Posts
27 -
Joined
-
Last visited
Awards
This user doesn't have any awards
Contact Methods
-
Twitter
@ebdaa3sea
Profile Information
-
Gender
Female
-
Location
Riyadh
System
-
CPU
intel i5 4670
-
Motherboard
GA-Z87-HD3
-
RAM
Kingston (4*4)
-
GPU
NULL
-
Storage
WD 500GB
-
PSU
seasonic
-
Cooling
NULL
-
Operating System
windows 8.1
ebdaa3sea's Achievements
-
can you tell me why dell ?
-
Hello everyone i am confuse between the is monitors 1- benq BL2711U http://www.benq.com/product/monitor/bl2711u/ 2- Asus PB279Q https://www.asus.com/Monitors/PB279Q/ 3- Acer S277HK wimidpp http://us.acer.com/ac/en/US/content/model/UM.HS7AA.001 4- Dell P2715Q http://accessories.us.dell.com/sna/productdetail.aspx?c=us&cs=04&l=en&sku=210-ADOF my uses : watch movies,animes and simple work .
-
The ADT not from me i know i ask about the code depends on this ADT
-
// From the software distribution accompanying the textbook // "A Practical Introduction to Data Structures and Algorithm Analysis, // Third Edition (C++)" by Clifford A. Shaffer. // Source code Copyright (C) 2007-2011 by Clifford A. Shaffer. #ifndef LINK_H #define LINK_H #include<iostream> using namespace std; // Singly linked list node template <typename E> class Link { public: E element; // Value for this node Link *next; // Pointer to next node in list // Constructors Link(const E& elemval, Link* nextval = NULL) { element = elemval; next = nextval; } Link(Link* nextval = NULL) { next = nextval; } }; #endif #ifndef STACK_H #define STACK_H // Stack abtract class template <typename E> class Stack { private: void operator =(const Stack&) {} // Protect assignment Stack(const Stack&) {} public: Stack() {} virtual ~Stack() {} // Protect copy constructor // Default constructor // Base destructor // Reinitialize the stack. The user is responsible for // reclaiming the storage used by the stack elements. virtual void clear() = 0; // Push an element onto the top of the stack. // it: The element being pushed onto the stack. virtual void push(const E& it) = 0; // Remove the element at the top of the stack. // Return: The element at the top of the stack. virtual E pop() = 0; // Return: A copy of the top element. virtual const E& topValue() const = 0; // Return: The number of elements in the stack. virtual int length() const = 0; }; #endif #ifndef LSTACK_H #define LSTACK_H #include "Stack.h" #include "Link.h" // Linked stack implementation template <typename E> class LStack : public Stack<E> { private: Link<E>* top; // Pointer to first element int size; // Number of elements public: LStack(int sz = 3) // Constructor { top = NULL; size = 0; } ~LStack() { clear(); } void clear() { while (top != NULL) { // Destructor // Reinitialize // Delete link nodes Link<E>* temp = top; top = top->next; delete temp; } size = 0; } void push(const E& it) { // Put "it" on stack top = new Link<E>(it, top); size++; } E pop() { // Remove "it" from stack if (top == NULL){ cout << "Stack is empty"; exit(1); } E it = top->element; Link<E>* ltemp = top->next; delete top; top = ltemp; size--; return it; } const E& topValue() const { // Return top value if (top == 0){ cout << "Stack is empty"; exit(1); } return top->element; } int length() const { return size; } // Return length }; #endif //This my Stack ADT //This is My Code Depends on Stack #include<iostream> #include"LStack.h" using namespace std; void hanoi(int des,LStack<int>&ob1,LStack<int>&ob2,LStack<int>&ob3){ if(des>0) {ob3.push(ob1.pop());} else { hanoi(des-1,ob1,ob2,ob3); ob3.push(ob1.pop()); hanoi(des-1,ob1,ob2,ob3); } } int main(){ int s=4; LStack <int> b1,b2,b3; for(int i=0;i<s;i++) { b1.push(i);} hanoi(s,b1,b2,b3); system("pause"); return 0; } my Qeustion 1- how i can output this code as graphics? 2- if correct how i can connected with SFML ?? 3- how can i move disk ?? 4- what i need to complete the code if it is not completed
-
design tower of hanoi game with C++ using stack
ebdaa3sea replied to ebdaa3sea's topic in Programming
thank you for answer me Note: i have basic and some advance subject of c++ i `m study C++ before but this is first time programming game :) -
design tower of hanoi game with C++ using stack
ebdaa3sea replied to ebdaa3sea's topic in Programming
yes h have Visual Studio 2013 community edition but i don`t know how can use for my game This is the first time programmed game but i want create graphic for my game even it is simple -
design tower of hanoi game with C++ using stack
ebdaa3sea replied to ebdaa3sea's topic in Programming
thank you for answer me do you have a set number of disks or based on difficulty, user-input,etc? i want set number of disk Do you want graphics in your game? You could make it a console came. If you are indeed going for graphics, then I suggest SDL. yes but i don`t know how i start in SDL can i move the desk ?? -
design tower of hanoi game with C++ using stack
ebdaa3sea replied to ebdaa3sea's topic in Programming
thank you for answer me do you have a set number of disks or based on difficulty, user-input,etc? i want set number of disk Do you want graphics in your game? You could make it a console came. If you are indeed going for graphics, then I suggest SDL. yes but i don`t know how i start in SDL can i move the desk ?? -
My problem I want design tower of Hanoi game with C++ using stack But i do not know how can i start and what IDES use Question 1-Can i use windows form foe visual studio for create this game or no?? 2-How can i move disk from column A& B& C and how can i do it ?? 3- is necessary use OpenGL , Direct X or is not necessary?? 4- what about insert pic for column and disk for moving between column as object ??
-
and i like the is but my uses just watching no gaming no designer so i think Will not benefit me at full strength http://www.amazon.com/dp/B00OKSEVTY/ref=wl_it_dp_o_pd_S_ttl?_encoding=UTF8&colid=23PHB32I83V1X&coliid=I1CUJS6QI8ARQ0
-
Hi everyone i want ask about this monitor http://www.amazon.com/dp/B00Q7VCSGU/ref=wl_it_dp_o_pC_nS_ttl?_encoding=UTF8&colid=23PHB32I83V1X&coliid=I1WHZ204R9OQHH the panel is VA so what is best 4K with panel VA or 4K with panel IPS_PLS i am not gaming and designer i am watch anime and movie but anime more than movie
-
i watch anime more than movies but i like 4k resolution with panel IPS many company have screen UHD with panel TN or 2k resolution with panel IPS
-
the is first time i want buy headphones i am search before ask and i like these since is cheap and good design 1- http://www.amazon.com/dp/B00LT8B3P8/ref=twister_B00MW8WS8U?_encoding=UTF8&psc=1 2- http://www.amazon.com/JBL-J56-BT-Bluetooth-Headphone/dp/B00GO79UD6/ref=sr_1_17?s=electronics&ie=UTF8&qid=1421682283&sr=1-17&keywords=jbl+headphones
-
hi everyone i one of these monitors for PC what is best for my uses ?? 1 - http://www.amazon.com/dp/B00OKSEVTY/ref=wl_it_dp_o_pd_nS_ttl?_encoding=UTF8&colid=23PHB32I83V1X&coliid=I1CUJS6QI8ARQ0 2 - http://www.amazon.com/dp/B00NTQHIUM/ref=wl_it_dp_o_pd_nS_ttl?_encoding=UTF8&colid=23PHB32I83V1X&coliid=I3KGIDM5CBFEED 3 - http://www.amazon.com/dp/B00Q7VCSGU/ref=wl_it_dp_o_pC_S_ttl?_encoding=UTF8&colid=23PHB32I83V1X&coliid=I1WHZ204R9OQHH 4 - http://www.amazon.com/dp/B00Q7VCSGU/ref=wl_it_dp_o_pC_S_ttl?_encoding=UTF8&colid=23PHB32I83V1X&coliid=I1WHZ204R9OQHH my uses is watch anime and movie and browser only i am not uses for gaming note : if you have another suggestion give me
-
just headphones i do not want mic because i am not uses