[Error]expected identifier before numeric constant.-setlocale

Hi,
I wanna use setlocale(LC_ALL".."); but i get these errors.
--expected identifier before numeric constant--
--expected ',' or '...' before numeric constant--
Screenshot:http://prnt.sc/dq7ge6

1
2
3
4
5
6
7
8
9
#include<iostream>
#include<fstream>
#include<cctype>
#include<iomanip>
#include<locale.h>
using namespace std;
class account
{
	setlocale(LC_ALL"Turkish");
I am not quite sure how to help, never used it myself but have you tried rereading the setlocal reference sheet (found on this url: http://www.cplusplus.com/reference/clocale/setlocale/ )

You probably already looked there. I want to help you with this but I am not sure myself.

Based on the error:
psykhe wrote:
--expected identifier before numeric constant--
--expected ',' or '...' before numeric constant--


It appears to be something to do with your class but I don't really see anything wrong with it...

Edit: oh wait, I think the fuction setlocale needs a comma (,) between LC_ALL and "Turkish"

Maybe you could look at this following tutorial, which may help:
http://www.cplusplus.com/doc/tutorial/classes/


I hope what I said helps at all.

~Hirokachi
Last edited on
Thanks for the answer dude. A guy helped me about this and finally it's works perfectly.Solution is , account(); setlocale(LC_ALL, "Turkish");
Last edited on
Thank you for posting the solution.

I was wondering about it myself.

~Hirokachi
Topic archived. No new replies allowed.