can anyone explain to me what is: 'T', 'L', 'wchar_t', 'LPCWSTR' and 'LPCTSTR'?
how can i convert strings\char* to these types?
(i understand these isn't a tutorial, but i realy need these introdution)
or you can give me just a nice link.
can anyone explain to me what is: 'T', 'L', 'wchar_t', 'LPCWSTR' and 'LPCTSTR'?
how can i convert strings\char* to these types?
(i understand these isn't a tutorial, but i realy need these introdution)
or you can give me just a nice link.
thanks, these classic technique have a term name?
(for google search: i want read more about it)
i understand. thanks for all.. realy.. thanks for all
so the languages have their own OOPL. and some more easy than others. like the classic program language(they can be diferent, more powerfull, more easy). but true the C++ is general purpose language(for any type of projects).
thanks for all
sorry what you mean?
i have question: if properties and events are OOPL too, why the C++ don't have it?
(unless we do it)
i think it's basics of OOPL too
yes... now works fine. thanks to all
Dani, please can you see my profile settings?
i thinnk that it's ok. but i don't understand why i don't recive the mail notifications :(
even for that, i can't recive the mail :(
i don't know what cause these :(
thanks for all to both
sorry... i didn't get the mail notification :(
http://en.wikipedia.org/wiki/Programming_paradigm
thanks for all
i did anotherthing on my mail. i select your mail by safety, for see if it's the problem
do me a favor. send me a mail from these forum, for test please
ok.. thanks for all
'Last Updated by deceptikon'
yes
'Automatically Watch Articles I Post In?' it's checked.
but i will uncheck it and check. please answer for test
on my last topic i didn't recive mails notifications(when someone answer me). how i have sure that i will recive a mail notification on topic?
if C++ isn't a real OOPL, what left?
with another words i want study(theory\concepts) the real OOPL. can you give me a link with these information?
with some work and 'random' options i delete the username and the windows did i new profile with same name. but i did 1 mistake: delete the username, before save the files. hey i'm new with these error :(
now i will use a nice program for recover the files ;)
thanks for all
when i enter on windows, i see the button user name... until here, fine. but when i click it, i get 1 error about user profile. can anyone help me fix it, please?
thanks for all.. realy.. thanks
i belive that you recive 1 mail for change these title topic. but if it's ok.. then these is the title ;)
'I believe there is a slight delay. I think you are just faster then the system.'
lol i love you answer ;)
realy.. thanks for all
thanks
why the print is 5001 instead 5000?
can you give me a nice link for study about chrono libary?
out off topic: why i didn't recive the mail when someone answer me?
(i only have seen on these topic)
my problem was:
- i can't use int, but double. if the left side is int and the right is double, the compiler will considered int instead double. that's why i recived bad results.
- instead 'auto', i must use double:
double ConvertSecondsToNanoSeconds(double a)
{
cout.precision(15);//these is for show me the results in numbers and not with 'e'..
return (a*1000000000);
}
thanks for all
auto ConvertSecondsToNanoSeconds(int a)
{
return (a*1000000000);
}
what is the chrono type for use these big number?
finally i resolved in a diferent way:
#include <iostream>
#include <chrono>
using namespace std;
int main()
{
auto start = chrono::high_resolution_clock::now();
auto end = chrono::high_resolution_clock::now();
auto interval = 5;
cout << interval << endl;
while (((end - start).count()/1000000000) <= interval)
{
end = chrono::high_resolution_clock::now();
}
cout << "hello";
cin.get();
}
thanks for all
ok.. i see the problem.. i'm using the wrong type too.
auto interval = 5000000 * 1000;
cout << interval << endl;
the outup is:
705032704
sorry... but i think, that i don't recive the mail from your answer :(
the 1 000 000 ns=1ms so 5 000 000 = 5ms... so 5 000 000 * 1000 is 1s(second) right???
int interval = 5000000 * 1000;
but seems that my calculation isn't right :(
i'm trying do a counter timer for test the interval, but without sucess :(
#include <iostream>
#include <chrono>
using namespace std;
int main()
{
auto start = std::chrono::high_resolution_clock::now();
auto end = std::chrono::high_resolution_clock::now();
int interval=50000000;
auto elapsed=std::chrono::high_resolution_clock::now();
while(elapsed.count()<=interval)
{
end = std::chrono::high_resolution_clock::now();
elapsed= end - start;
}
cin.get();
return 0;
}
can anyone tell me what i'm doing wrong?
someone correct me these: 1s=1000ms?
yes.. 1ms is my big objective... thanks for that great information my friends
thanks for all to both
mingw32... but i think that it's the GNU too
GNU compiler.. the free
sorry.. i'm confuse... so 1 000 000 it's 1ms?
i'm using Windows 7(i don't like to much of 8, because it's like i need a touchscreen because of it's 'start menu')
i have now tested your code:
the ouput is: 1 000 000
what is the output scale mode?
thanks for that. thank you
i understand.. thanks for the answer my friend
sorry what is '*nix'?
is there any function(API or something) for get 1ms of precision?
i have 1 timer, but i only get 10ms of max.
thanks.... thanks for all. thanks to all
thanks for all, but i just was explain nothing. if i realy need it, i will do a new thread. thanks for the links. thanks for all to all
have you seen the image that i send you?
you can see that it's like VB6 code. and it's good have 1 powerfull language with easy syntax and easy language ;)
and good for my pratice too. i learn Assembly and Turbo Pascal(i forget both)... i discovered that i love programming, so i discovered the VB6.. and then i see it's limits. my language you will simple too, but with some class's for allmost we use(multithread, timer(for now is 10ms of precision), strings, Console, instead Graphics i will use the Sprite(combine images with effects and shapes), controls(i must learn about API windows), and more).. will give me work. but what will give me work will be the properties and events, because they aren't directly in language ;)
more dificulty is how detect all types of errors;)
i have 1 function in VB2010(yes i use the VB2010 for do the conversion and the IDE) for separe all keywords\functions names\special characters\strings(not yet for chars and comments). these function make 50% of my work;)
i will change all what i did, because i must change my language sintax. will be great(think in VB6).
do you know why i'm build a new language?(ok using the c++ compiler, because i just convert it to C++)
- be simple to use like VB6(VB2010 in very things seems complex);
- powerfull like C\C++;
- anotherthing: 'limit is your imagination'. for exemple:
- you don't use Console for games(normaly), but why not let the programmer do it, if want it ;)
- VB2010 have nice functions in Console class... hey can i change the window size?? or change the window position?(i continue with Console);
- VB2010 it's great, but why i can't change the alpha\transparent values with controls?(yes they have it, but aren't real... because they just copy the parent background image;
(and more)
i understand that i'm speak out off topic, but you get the point ;)
anotherthing: realy... thanks for all... thanks
sorry. i recive 1 mail from these forum. what means 'DaniWeb articles you've recently viewed‏'?
mike_2000_17 i see what you mean by that link. sorry about that. i just was trying be more simple, but sometimes we can't
i'm doing these for be more easy to convert my language to C++. but like you said for don't go in these way, i stop it ;)
thanks for all to both
i continue with very errors messages. see the original example:
events<int,int> moved{[](int a, int b) { ; }};
i need convert it to a macro(for just avoid the templates arguments):
EVENTS(moved,int a, int b);
i'm using what you correct me(thanks for that).
if you tell me these is impossible... thanks anyway and thanks for all
sorry, i think, by forum rules, we can't. but take these free(realy free):
C++ tutorial: http://www.tutorialspoint.com/cplusplus/cpp_tutorial.pdf
C tutorial: http://www.tutorialspoint.com/cprogramming/cprogramming_tutorial.pdf
they are totaly free. but, in forums, i think we can't share ebooks. but read these nice tutorials and the links that i posted.
good learning
i re-read your tutorial, but i continue falling :(
see these other macro:
#define EVENTS(a)(...) events<...> a{[](...) { ; }};
tell me where i'm failling please:(