Can anyone help me how to write colors with c++. I've seen some games made with c++ that even include 256 colors.????
Type: Posts; User: Smoki
Can anyone help me how to write colors with c++. I've seen some games made with c++ that even include 256 colors.????
Thanx it works. But is there any way of playing Mp3-s because the wav-s are sooo huge files comparing to mp3. Or is there any way to make wav-s but not that big files?
Still the same message.
#include <Winmm.lib>
I did it like this but in Dev c++ says No such file or direktory??
What is worng with this code?
#include <windows.h>
#include <mmsystem.h>
int main()
{
PlaySound("test.wav",NULL,SND_ASYNC|SND_FILENAME);
dwks thanx man very very much, although it doesnt work. It works on the other codes. Thanx once more for wasting your time with my problems. Im learing intesivly so i hope one day i can contribute to...
That CODE works that u've sent me anywhere. Just not in this game im making.
I tryed. Still not working. Its interesting, when i make it TRUE and enlarge it it works. It only doest want to dissapear.
I did. I just sent you the one without it so u can judge where to put it. In the Int Main() ive put it in the very begining. And the result Remains the SAME.
I know that there are much shorter ways, but for the moment i learnt Functions, Pointers & Arrays. So i came up to the idea that i can make something only with these. So i dont know how to do that...
As u can see its not finished yet, i want to put up more levels. Thanx dwks.
#include <cstdlib>
#include <iostream>
#include <windows.h>
#include <console.h>
#include "conio.h"
namespace con = JadedHoboConsole;
using namespace std;
void gotoxy(int x, int y) //...
Now i tryed it with TRUE and gave value 50 it gets bigger. But with FALSE it doesnt work. Now i call this trange. HERE U HAVE THE CODE. Sorry its not commented and some things are written in albanian...
I tryed that. But no result. I tyed it on a simple code it worked. But on this one not. If you want i can send u the whole code (its a small game im makin thats why i need to get rid of the cursor).
Dev C++
This is a part of my code. I made the cursor as a function and this is a part of another function. I tryed to put it in the INT MAIN but it doesnt seem to work.
P.S. I use colors is that a...
Where should i put it. I did it in int main() but it doest work. Mostly the programme is with functions.
Hi guys. First i want to thank all of you that have hellped me so far.
I realy need to know how to hide the cursor in c++. Its realy important.
Does anyone have an idea how can i get the coordinates so i will know where am i typing when i use coordinates.
Like
x=5, y=20; i know approximately where that is, but i need the exact thing.
IT says cannot find the path 'C:\Documents
it is strange it worked before but when i tryed it now it doesnt (i mean the same code) i had to replace it with c:\docu~1\alluse~1\.....
WHY THAT?!
system ("\"C:\\Documents and Settings\\All Users\\Desktop\\Aitorg\\org\\3.bat\"");
What is wrong with this command that it doesent get executed.??
Can anyone tell me how to read the default gateway ip adress and to save that to a string?
I would like to know is it possible and how to loop something and the loop to remain, and at the same time to continue other operations:
example:
----------------------------------------...
can anyone give an example like the full code coz i dont know how to implement this in my code! PLZ.
ur right, there is a way, but i guess i g2 search more, although i have been searchin for hours with different keywords and when i found this forum trust me i was realy hoping someone could help me...