![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
cuiran
爱专研新技术,喜欢挑战。
展开
-
C++学习 第一讲
#include //struct Pointclass Point{ public: int x; int y; void init() { x=0; y=0; } /** *析构函数 **/ ~Point() { int z=5; cout<<z<<endl; } Point(int a,int原创 2010-04-21 22:27:00 · 1332 阅读 · 0 评论 -
c++ socket通信
<br />首先是打开vc6.0, 点击文件新建<br />选择如图所示:<br /> <br /><br /> <br />输入一个工程名<br /> <br />然后新建一个C++文件<br /> <br />如图所示:<br /> <br />Server端代码:<br />#include <WINSOCK2.H>#include <stdio.h>#pragma comment(lib,"ws2_32.lib")void main(){ //创建套接字 WORD myVer原创 2010-09-01 09:38:00 · 21522 阅读 · 6 评论 -
C++中的算幂
// First.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream.h"int main(int argc, char* argv[]){ int value=2; int pow=10; int res=1;原创 2010-05-07 13:40:00 · 4419 阅读 · 0 评论 -
C++画图
// DrawView.cpp : implementation of the CDrawView class//#include "stdafx.h"#include "Draw.h"#include "DrawDoc.h"#include "DrawView.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THI原创 2010-04-26 14:05:00 · 11826 阅读 · 0 评论 -
C++画扇形
// DrawView.cpp : implementation of the CDrawView class//#include "stdafx.h"#include "Draw.h"#include "DrawDoc.h"#include "DrawView.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THI原创 2010-04-26 14:35:00 · 4250 阅读 · 0 评论 -
C++版杨辉三角
#include void main(){ int i,j,n; long int k; long int fact(int); cout<<"输入一个数:"; cin>>n; cout<<"杨辉三角"<<endl; for(i=0;i<=n;i++) { for(int l=0;l<((n-i)*3);l++) { cout<<" ";原创 2010-04-23 13:04:00 · 13431 阅读 · 3 评论 -
c++类的继承访问特性
原创 2010-04-22 09:50:00 · 1624 阅读 · 0 评论 -
C++学习 第二讲
#include class Animal { public: Animal() { cout<<"Animal construct"<<endl; } ~Animal() { cout<<"Animal deconstruct"<<endl; } void eat() { cout<<"animal eat"原创 2010-04-22 10:01:00 · 1345 阅读 · 0 评论 -
Eclipse下的C++
//============================================================================// Name : demo.cpp// Author : cuiran// Version :// Copyright : Your copyright notice// Descrip原创 2010-04-22 09:35:00 · 1385 阅读 · 0 评论 -
error LNK2001: unresolved external symbol __imp__inet_ntoa@4问题解决
开发环境:VC 6.0 出现错误描述原创 2014-11-12 21:22:44 · 20485 阅读 · 3 评论