I am using sfml for Graphic programs but i am not able to get input in sfml window. and using cin>> takes the input from the main console window...how can i take input from SFML window
Type: Posts; User: Username changed
I am using sfml for Graphic programs but i am not able to get input in sfml window. and using cin>> takes the input from the main console window...how can i take input from SFML window
hey i notice that in Turbo C++ the ios::ate is working as it should....ie it doesn't truncates the file.......
but at the same time in code::blocks Mingw compiler it is truncating the file
yes but i don't know why it is getting truncates.........any idea
yeah......i know that i can append using ios::app ..........
but my question is that will ios::ate truncates the file ...?
what is the use of using ios::ate if it truncates the...
does ios::ate truncates the file it the file already exist in c++.......
i tried and found that ios::ate truncates the file...
oh..k thanks a lot...u helped me a lot.......
thn what is difference between GUI and graphics library in c++
i am using windows and right now i want my program to run on cross-platform.........and is GUI different from graphics library stuffs
I have learnt some basic of c++ programming ...... but now i want to add some graphics to my c++ programs .So how can i achieve this...helpp
where can i download wxwidget pre-built
Can anyone suggest Best GUI library to begin with in c++....
I have tried wxWidget but its compiling is bit confusing. and in wxWidget i am getting error "‘wx/wx.h’: No such file or directory" ...
hey but i thought u asked it to do without using string constant in cout...like "go" "stop" "ready" halt"......i thought there would be some way to directly output the name of enumerators........but...
#include<iostream>
using namespace std;
enum status{go,stop,be_ready};
int show_status(status st)
that i know obviosly.........for declaring symbolic integer constant.....
but i don't see any idea behind making a type for enum :p
enun{go, stop, ready, halt}
vs
enum status{go, stop, ready, halt};
and where is enumeration with name is benefficial.
:) any help would be appriciable
#include<iostream>
using namespace std;
struct test
{
char b;
int a;
long l;
};
ohh hmmmm thanks......one more question ........wht would be difference between a enumeration with name and without name......and where is emumeration with name would be beneficial
eg:-
enum{...
can anyone tell me what is Anonymous Structure, union and enumeration in c++ .........and how to use it.
and i more question can i initialize element of a structure in its defination.:- for...
i know using namespace std; is important to wite as it contain cout,cin,etc........but is that namespace std is contained inside iostream header file OR iostream header file is contained inside...
What are stream in c++ ? hey guys.....i know this question have been asked several time.but i could nt able to find appropriate answer.......i google it also but can't find correct...
Can somebody tell me what actually a Stream means in C++..i am lots confued on this topic..Is is something that store bytes from input or output,,or smthing else....and how does it act as source and...
yes i do thanks buddy.....u helped me a a lot
RIGHT GUESS BRO...i have got c++ project ......and my schools r using Turbo c++ as compiler
NO ..Matticus i have not...can u guide ...me how to install dosbox...but first what is dosbox?
PLS somebody.help me ......i have turbo c++ on windows xp SP2.....whenever i commpile my code in turbo c++ i am getting output outside ithe screen.....but when i used code::block....i get the...