Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <locale.h>
- #include <iostream>
- #include <windows.h>
- #define max 100
- using namespace std;
- void funcao(const wchar_t *x);
- int main()
- {
- setlocale(LC_ALL, "pt_BR.UTF-8");
- SetConsoleTitle("L2Titanium");
- wchar_t nome [1] = {'a'}; //wchar_t tem um suporte maior de caracteres na faixa de 107 mil;
- int x = wcslen(nome);
- wchar_t a = 'a';
- funcao(&a);
- cout<<x<<endl;
- char NewNome [100];
- int NewX;
- cin.getline(NewNome,max);
- NewX = strlen(NewNome);
- cout<<NewX<<endl;
- system("pause");
- return 0
- }
- void funcao(const wchar_t *x){
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement