Skip to content

Instantly share code, notes, and snippets.

@bossxomlut
Created April 1, 2018 14:55
Show Gist options
  • Select an option

  • Save bossxomlut/8f96e9e511a7eab08826d3f773644626 to your computer and use it in GitHub Desktop.

Select an option

Save bossxomlut/8f96e9e511a7eab08826d3f773644626 to your computer and use it in GitHub Desktop.
#include<stdio.h>
#include<conio.h>
#include <fcntl.h> //_O_U16TEXT
#include <io.h> //_setmode()
#include <string.h>
#include "khaibao.h"
void main()
{
SV sv1;
char str[10];
_setmode(_fileno(stdout), _O_U16TEXT); //needed for output
_setmode(_fileno(stdin), _O_U16TEXT); //needed for input
wprintf(L"Xin chào!");
//FILE* fp=_wfopen(L"tep.csv",L"r,ccs=UTF-8");
wchar_t a[]=L"Ngô Tấn Vịnh";
wprintf(L"%s\n", a);
//fscanf(fp,"%s",&str);
printf("%s",str);
_getch();
//fclose(fp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment