ubuntu c/c++ IDE(¿ª·¢»·¾³)
Ç°ÑÔ ²»¶ÏÓÐÍøÓѽ«±àÒëÆ÷ GCC ÎóÈÏΪ IDE£¨¼¯³É¿ª·¢»·¾³£©
ÆÚÍûÍÑÀëÃüÁîÐÐ
ÆÚÍûÄÜÔڲ˵¥Öз¢ÏÖÆäÉíÓ°
ÆÚÍûÆäÄÜÓÐÒ»¸ö¼¯±à¼±àÒëÁ´½Óµ÷ÊÔÔËÐÐÓÚÒ»ÌåµÄ½çÃæ
¹Ê±¾Îĸø´ó¼Ò¼òµ¥ÂÞÁÐһЩ C/C++ ±à³ÌÖпÉÓÃµÄ IDE£¬»òÐíÄã´ÓÖпÉÒÔÕÒÒ»¸öÄãϲ»¶µÄ¡£
Ϊ±ÜÃâÒÔÏÂij¸öÈí¼þ°²×°Ê±²»×Ô¶¯°²×° build-essential ²»·ÁÏÈÖ´ÐУº
sudo apt-get install build-essential
anjuta Anjuta DevStudio µÄ¹Ù·½µØÖ·£ºhttp://anjuta.sourceforge.net/
AnjutaÊÇÒ»¸öC/C++ IDE£¬Ëü×î´óµÄÌØÉ«ÊÇÁé»î£¬Í¬Ê±´ò¿ª¶à¸öÎļþ£¬ÄÚǶ´úÂ뼶µÄµ÷ÊÔÆ÷(µ÷ÓÃgdb)£¬Ó¦ÓóÌÐòÏòµ¼£¨Application widzards£©¿ÉÒÔ·½±ãµÄ°ïÖúÄã´´½¨GNOME³ÌÐò¶ø²»ÐèÒªÄã×Ô¼ºÐ´Ò»Ð©ÓëÄãÐËȤÎ޹صĴúÂë¡£
°²×°·½·¨£º
sudo apt-get install anjuta
²Î¿¼£º
LinuxÏÂÓÃAnjutaд¸öHello World µÄC++³ÌÐò¾¹Èç´Ë¼òµ¥£¡
kdevelop KDevelop Project µÄ¹Ù·½µØÖ·£ºhttp://www.kdevelop.org/
KDevelop-Projectµ®ÉúÓÚ1998Ä꣬ÆäÄ¿µÄÊÇΪKDEÌṩһ¸öÒ×Óõļ¯³É¿ª·¢»·¾³(Integrated Development Environment)¡£´Ëºó£¬KDevelop IDE²ÉÓÃGPL½øÐз¢²¼£¬ËüÖ§³ÖºÜ¶à ³ÌÐòÉè¼ÆÓïÑÔ¡£
°²×°·½·¨£º
sudo apt-get install kdevelop
²Î¿¼£º
KDevelopɨäÌû
geany &n
Ïà¹ØÎĵµ£º
/*
title£ºÔ¼Éª·òÎÊÌâµÄÑ»·Á´±í½â·¨
author£ºcoolsky600
date£º2010 04 22
notice£ºcÓïÑÔ ÃæÏò¹ý³Ì
*/
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
int num; //È«¾Ö±äÁ¿Î§È¦ÈËÊý
int out; & ......
¼ÙÉèÎÒÃÇʹÓÃmysql_real_queryÖ´ÐÐÁËÒ»ÌõsqlÓï¾äÖ®ºó£¬·µ»ØֵΪ·Ç0Öµ£¬´ó¼Ò¶¼ÖªµÀÕâÊÇÕâÌõÓï¾äÖ´Ðгö´í£¬µ«ÊÇÎÒÃÇÏë
Á˽âµØ¸üÏêϸµãµÄ»°£¬¾¿¾¹ÊÇʲôÔÒòµ¼ÖÂÁËÕâ¸ö´íÎóÄØ£¿Õâʱºò¾ÍµÃÓÃÉÏmysqlÌṩµÄÁíÍâÒ»¸öAPI£ºmysql_errno¡£
mysql_errno»áÌṩ×î½üÒ»´Îµ÷ÓõÄC API³ö´íµÄÐÅÏ¢£¨²»¼ûµÃÿ¸öAPI¶¼»á¶ÔÕâ¸öerrno½øÐÐÉèÖ ......
C/C++
/*
* File: main.cpp
* Author: Vicky
*
* Created on 2010Äê4ÔÂ29ÈÕ, ÉÏÎç9:46
*/
#include <iostream>
using namespace std;
int maximum(int[], int);
int main(int argc, char** argv) {
// int sg[3][4] = {
int sg[][4] = {
{68, 77, 73, 86},
{87, 96, 7 ......
#include <assert.h>¡¡¡¡¡¡¡¡//É趨²åÈëµã
#include <ctype.h>¡¡¡¡¡¡¡¡ //×Ö·û´¦Àí
#include <errno.h>¡¡¡¡¡¡¡¡ //¶¨Òå´íÎóÂë
#include <float.h>¡¡¡¡¡¡¡¡ //¸¡µãÊý´¦Àí
#include <fstream.h>¡¡¡¡¡¡ //ÎļþÊäÈ룯Êä³ö
#include  ......