درسته. اینجا من اشتباه کردم. ما نمیتونیم یک متغیر مثل char a[50] رو به عنوان یک نوع داده حساب کنیم.
اگ بخوای متن یا تکست رو از فایل بخونی یه انتخاب خوب اینه
std::queue<std::string> MyQueue
اگه بخوای باینری رو بخونی انتخاب بهتر اینه
std::queue< std::vector <char> > MyQueue
اما اگه همچنان میخوای از کاراکتر استفاده کنی باید اینجوری صفت رو تعریف کنی std::queue <char*> MyQueue
مثال
#include <iostream>
#include <queue>
std::queue <char*> msgs;
int main()
{
char one[50]="salam";
msgs.push(one);
char two[50]="jahan\n\n";
msgs.push(two);
msgs.push("in be khatere inke az noe dadeye dorosti estefadeh mikone doroste");
while(!msgs.empty())
{
std::cout << msgs.front();
msgs.pop();
}
return 1;
}