随笔分类 -  C/C++学习

摘要:在VS 2013 中编译 C 语言项目,如果使用了 scanf 函数,编译时便会提示如下错误: error C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disa 阅读全文
posted @ 2016-10-23 12:35 lhuan 阅读(23364) 评论(1) 推荐(4) 编辑
摘要:已知两点坐标和半径求圆心坐标程序 #include <iostream> #include <fstream> #include <cmath> using namespace std; ofstream fout; typedef struct { double x; double y; }Poi 阅读全文
posted @ 2016-08-09 16:53 lhuan 阅读(3878) 评论(0) 推荐(0) 编辑
摘要:问题: 已知圆上三个点坐标分别为(x1,y1)、(x2,y2)、(x3,y3) 求圆半径R和圆心坐标(X,Y) X,Y,R为未知数,x1,y1,x2,y2,x3,y3为常数 则由圆公式:(x1-X)²+(y1-Y)²=R² (1)式(x2-X)²+(y2-Y)²=R² (2)式(x3-X)²+(y3 阅读全文
posted @ 2016-08-07 15:46 lhuan 阅读(17904) 评论(1) 推荐(2) 编辑
摘要:英文原文:C++ 11 Threading: Make your (multitasking) life easier 转载:http://www.oschina.net/translate/cplusplus-11-threading-make-your-multitasking-life 介绍 阅读全文
posted @ 2016-08-07 13:00 lhuan 阅读(1624) 评论(0) 推荐(0) 编辑
摘要:回调函数定义:函数作为参数,而发起的函数调用过程称为回调函数。 // _回调函数C++.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include"stdlib.h"#include <stdio.h>using namespace std;int myCm 阅读全文
posted @ 2016-07-29 11:51 lhuan 阅读(305) 评论(0) 推荐(0) 编辑
摘要:[摘要]本文是对STL--迭代器(iterator)的讲解,对学习C++编程技术有所帮助,与大家分享。 原文:http://www.cnblogs.com/qunews/p/3761405.html 1 头文件 所有容器有含有其各自的迭代器型别(iterator types),所以当你使用一般的容器 阅读全文
posted @ 2016-07-26 10:54 lhuan 阅读(33238) 评论(1) 推荐(5) 编辑

点击右上角即可分享
微信分享提示