Sorry, I posted without noticing your answer, thanks for your answer Salem.Without using boost and imbue, wofstream and wifstream were not working right, as I explained in my previous post.Now it...
Type: Posts; User: Awareness
Sorry, I posted without noticing your answer, thanks for your answer Salem.Without using boost and imbue, wofstream and wifstream were not working right, as I explained in my previous post.Now it...
Well, I think using boost library and imbue solved the problem.
I used it as this:
std::locale loc= boost::locale::generator().generate("tr_TR.UTF-8");
wofstream filestream1;...
I am using old C++ previous to C++11 standards.
I have been trying to read from a file(which includes some Turkish characters too) into a wstring,string or vector, then write the contents into...
Thanks for your answers.
Thanks Elysia. How can I use UTF-8 in C++?
Thanks for your answers.
algorism, yes you are right, opening a file (which has international characters in it's name) using standard c++ functions worked well like you said(at least on my ...
Thanks for your answers.
Is it possible to open a file which has international characters in it's name(for example: Turkish characters), using standard C++ library(instead of using a framework's api)?
Thanks for your answers.Seems like making a "wipe permanently" tool for ntfs drives more complex than I thought it was. (Making most software seems complex actually)
How can we wipe a folder permanently?For files I overwrite the file's contents using "85" as a char value, so it overwrites files with 01010101 bits.But I don't understand how I can overwrite...
Thanks for your answer.I will look at them.
Sorry,I wrote a wrong thing.I said if the user wants to create all combinations of 76 numbers,it is wrong.The true version is,if the user wants to create a lot of combinations,for example more than...
I am not sure if my question is suitable for this forum section or C Programming section.I am trying to write a lottery program.The problem is, the 5 numbers of any combination shouldn't repeat the...
Thanks for your answers. :)
Thanks for your answer.What does ostream& return actually?
cout <<"Date:" << dt << ".";
Does it become like
cout << "Date:" << cout << "." when it returns?
#include <iostream>
using namespace std;
int & fonksiyon(int&);
class Date
{
int mo, da, yr;
public:
Date(int m, int d, int y)
Thanks for your answer.
Program is running on Windows 7.
You are right about using feof() in loops,in my program I think it doesn't work actually, the lines:
if ( fgets ( buffer3, 6,...
Thanks for your answer :)
You said fseek adds an offset to the current position of the file pointer.If I use SEEK_CUR ( fseek(fp,offset2,SEEK_CUR)) you are right,but if I use SEEK_SET instead of...
There is a sentence in a text file and I am trying to insert a word into 9. character in the text file. For example,if the sentence is "Los Angeles is a good city,Paris is a good city" , my program...
Thanks for your answer :)
Thanks for your answer.I am a bit confused,is android's calendar and google calendar same
thing?( though it's still good that we can sync an app with google calendar)
Is it possible to sync Android's calendar with our own calendar program on Android,using c/c++?
I had a look at Android Ndk docs,but I couldn't find what I was searching for.
Thanks for your answer.I mean how many 1 and 2 numbers are there in the results?
1 2 3 4 //There are 1 number and 2 number
...
1 4 5 6 //There is 1 number
...
3 6 7 8 //There are no 1 or 2...
(I am not sure if this is the right section of the forum to post,I think it is)
Let's say there are 50 numbers starting from 1 to 50.They will be grouped like:
1 2 3 4
1 2 3 5
1 2 3 6
......
I still think they could give a nice equivalent of Qml Ui's advanced capabilities for C++ too,instead of reinforcing Qml...