Câu hỏi của Nhuyngo Nhuyngo95

Sao code dưới đây không xuất ra được danh sách thí sinh A,B?

#pragma once #include<iostream> #include <string> using namespace std; class Bngay { private: int ngay, thang,nam; public: friend istream&operator>>(istream&is,Bngay &a); friend ostream&operator<<(ostream&os,Bngay a); }; class thisinh { protected: ...

Nhuyngo Nhuyngo95 viết 18:28 ngày 30/09/2018 chỉnh sửa

Giải thích về" lệnh printf " trong hàm main

#include <stdio.h> #include <conio.h> #include <stdlib.h> int s = 1;//tim kc nn tu s den tat ca cac dinh int const max = 20; int a[max];//day so cho truoc int mtk[max][max], n; int d[max][max];//d[i][j]:kcnho nhât tu ai den aj int p[max][max];//p[i][j]:dinh truoc dinh j tren ...

Nhuyngo Nhuyngo95 viết 18:25 ngày 30/09/2018 chỉnh sửa

Không hiểu code trong C

#include <stdio.h> #include <conio.h> #include <stdlib.h> int s = 1;//tim kc nn tu s den tat ca cac dinh int const max = 20; int a[max];//day so cho truoc int mtk[max][max], n; int d[max][max];//d[i][j]:kcnho nhât tu ai den aj int p[max][max];//p[i][j]:dinh truoc dinh j tren ...

Nhuyngo Nhuyngo95 viết 18:24 ngày 30/09/2018 chỉnh sửa

Cách sử dụng hàm friend để overload operator nhập xuất

taị sao khai báo tu và mau rồi mà nó vẫn báo lỗi vậy mn Untitled.png 1366x768 38.2 KB

Nhuyngo Nhuyngo95 viết 18:23 ngày 30/09/2018 chỉnh sửa

Mọi người cho mình hỏi cái phía dưới giải nén ra rồi làm sao vậy?

VD4_VeTamGiac.rar (file://NHUY/Users/NhuY59/Downloads/VD4_VeTamGiac.rar)

Nhuyngo Nhuyngo95 viết 18:23 ngày 30/09/2018 chỉnh sửa

mọi người cho minh hỏi code này bị lỗi gì mà không xuất s ra được vậy

' ' ' #include<conio.h> #include<iostream> #include<math.h> using namespace std; typedef struct PS { int a,b; }PS; ostream&operator<<(ostream &os,PS p); istream&operator>>(istream& is,PS&p); int ucln(int x,int y); PS rutgon(PS p); PS operator+(PS ...

Nhuyngo Nhuyngo95 viết 18:18 ngày 30/09/2018 chỉnh sửa

Cần sự giúp đỡ về code này

mn giúp tìm lổi code này với #include<iostream> #include<math.h> #include <string.h> #include <fstream> using namespace std; #define max 100 int n; int a[100][100]; //ghi file ra o d void ghifile(string s) { ofstream matran (s,ios :: out) ; cin>>n; ...

Nhuyngo Nhuyngo95 viết 18:15 ngày 30/09/2018 chỉnh sửa

Trong class trong trường hợp nào ta dùng quyền truy xuất Private,Public và Protected

trong class trong trường hợp nào ta dùng quyền truy xuất Private,Public và Protected vậy mn

Nhuyngo Nhuyngo95 viết 18:11 ngày 30/09/2018 chỉnh sửa
< 1 2 3 >