Well to do this you would require to push all characters on and ahead of the insertion 1 char ahead. Leaving you with a blank space to type in. This could be done with some work.
If its I/O to a...
Type: Posts; User: Nathan the noob
Well to do this you would require to push all characters on and ahead of the insertion 1 char ahead. Leaving you with a blank space to type in. This could be done with some work.
If its I/O to a...
The function above shows how i init and use the variables.
No i meant its in the beginning of the header within both functions.
No those 2 variables are not global i declared them at the beginning of the header.
The LEFTARROW RIGHTARROW ENTERKEY are global.
bool ItemBuyBox(string Itemname)
{
//Variable Setup//
string Question = "Would you like to purchase";
string Yes = "Yes";
string No = "No";
bool Buying = true;
int...
if(Arrowkey == ENTERKEY)
{
bool Check = ItemBuyBox(Itemarray[Arrowkeyplace]);
if(Check == false)
{
BuyBoxClear();
}
else if(Check == true)
...
Thats too bad, Well thanks for taking time to respond :D.
And yes i will resort to that.
Yes, And im asking if their is a way to change it.
Also, This is infact a strictly output function.
In the snippet of code below i have it output lines to form a box around the console window. But in the very last sqaure on row 26 column 80 when i place a sqaure it pushes
the text down to the next...
In the snippet of code below i have it output lines to form a box around the console window. But in the very last sqaure on row 26 column 80 when i place a sqaure it pushes
the text down to the next...
So you want the user to type in how many lines the diamond takes up?
Like 5 would = too
----*
---**
--***
---**
----*
Well thats not that much different from asking if
PlayerX = NUMBER;
PlayerY = NUMBER;
for(int i = 0;i < NUMBEROTILES;i++)
{
ProposedX = Number + 1;
ProposedY = Number;
...
But Humans dont think like that humans have "Tactics and Strategies" Which dont use math but instead implement certain plays to manipulate the situation. In chess a chess professional doesn't...
Well if the ai had a static memory of all the cards in his deck and was aware of the amount of cards on the field in his hand and in his graveyard, He could comtemplate the chance of him getting a...
Well first of all its unnecessary to put void as an argument in main. If the user fails to input a number between 1 and 10 a second time it is accepted input. You should change that to something like...
Bump
What im asking is how do i access more than the 16 standard colors.
How do i allow my console to accept true colors?
And How do the byte encoded colors work like
char Color = 0xF F A 5 F F
| | | | | |
1 2 3 4 5 6 Bits?...
void ReadString(string Text, int speed)
{
int Tet = Text.size();
int i = 0;
for(i = 0;i < Tet;i++)
{
cout << Text[i];
Sleep(speed);
if(kbhit())
{
Oh but above you said i would need to check both incase. :( And Lol i just made it so when ch = -32 ch = '-' and that worked :D.
When is ch not 0 and -32? PS thank you very much :D.
while(choice != 'f' && choice != 'm')
{
if(kbhit())
{
choice = getch();
...
If i remove it from the eqaution and press Any of the 4 arrows or home end page up/down or delete i get a letter of the alphabet. Im on windows xp.
Like Left arrow = K.
Right Arrow = M.
I want the user to either press Capital or small F/M but they can press right arrow and it outputs an m i want to know how to avoid this.
Hello? A little help?
while(choice != 'f' && choice != 'm')
{
if(kbhit())
{
choice = getch();
...
I have just realized that this problem is not within the eqaution for if i change the values of all the numbers before eqaution it comes out as expected. :( Now to bug search sorry for the false...