C/C++ÓëJava¶àάÊý×飬±éÀúÓë×î´óÖµ»ñÈ¡·½·¨£¡
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, 78, 89},
{90, 70, 81, 86}
};
int row = (sizeof (sg) / sizeof (int)) / (sizeof (sg[0]) / sizeof (int)); // 3ÐÐ
int row2 = sizeof (sg[0]) / sizeof (int); // 4ÁÐ
cout << row << endl; // 3
cout << row2 << endl; // 3
int max = 0;
for (int i = 0; i < row; i++) {
for (int j = 0; j < row2; j++) {
cout << sg[i][j] << "\t";
if(max < sg[i][j])
max = sg[i][j];
}
cout<<endl;
}
cout<<"the max grade is : "<<max<<endl;
cout << "the max grade is : "
<< maximum(&sg[0][0], 3 * 4) //´«µÝµÚÒ»¸öÔªËصØÖ·ºÍÔªËظöÊý
<< endl;
return (EXIT_SUCCESS);
}
int maximum(int grade[], int num) {
int max = 0;
for (int i = 0; i < num; i++)
if (grade[i] > max)
max = grade[i];
return max;
}
Êä³ö£º
3
4
68 77 73 86
87 96 78 89
90 70 81 86
the max grade is : 96
the max grade is : 96
ÔËÐгɹ¦£¨×ܼÆʱ¼ä£º 329ºÁÃ룩
public class MyTest {
public static void main(String[] args) {
int[][] is = new int[][]{
Ïà¹ØÎĵµ£º
ÓõÄÊÇCommonsÉÏ´«×é¼þ£¬ÏÂÔصØÖ·£ºCommons
ÍøÉÏÕÒµÄСÀý×Ӹĵģ¬ÐÞ¸ÄÁ˲¿·Ö´íÎó¡£
1£¬FileUpload.java
package com.fileupload;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.Charset;
import java.util.Iterator;
import java.util.List;
import ja ......
·½°¸Ò»£º
// html & JavaScript
...
<button value="Click me"
onclick="window.navigate('app:command&arg1=1&arg2=2')" />
...
// C++: ÏìÓ¦ µÄÏûÏ¢º¯ÊýOnBeforeNavigat2
virtual void OnBeforeNavigate2( LPCTSTR lpszURL, DWORD nFlags, LPCTSTR lpszTar ......
ODBCºÍIDAPIÖ®Õù
µ±MicrosoftÔÚÖ𽥵Ļ÷°ÜËûµÄ¾ºÕù¶ÔÊÖ£¬²¢ÇÒÓµÓÐÁ˴󲿷ÝPCÊý¾Ý¿âÊг¡Ö®ºó£¬±ãÂýÂýµÄÁ˽⵽ÕÆÎÕ±ê×¼µÄÖØÒªÐÔ¡£´ËÍâMicrosoftΪÁËͳһ¸÷Ó¦ÓóÌÐòÖ®¼ä²»Í¬×ÊÁϵĴæÈ¡£¬Òò´Ë¿ªÊ¼Öƶ¨´æÈ¡×ÊÁϵÄͳһ±ê×¼-ODBC¡£Microsoft¸ü´óµÄÄ¿µÄÊÇΪÁË×¼±¸ºÍÃé×¼ÏÂÒ»³¡µÄ´óÕ½£¬ÄǾÍÊÇPCÉϵÄRDBMS²úÆ·¡£µ±È»Microsoft Ҫһͳ ......
¹Ø¼üµÄʱ¿Ì - MFC Or Not
ÔÚSymantec C/C++ºÍWatcom C/C++Öð½¥µØÕ¾ÎÈÁ˽Ų½Ö®ºó£¬ËÄ´ó±àÒëÆ÷¾öÕ½µÄʱ¿ÌÒ²Ö𽥱ƽüÁË¡£ÔÚ1994ÄêδµÄ¾öս֮ǰ£¬SymantecºÍWatcomͬʱÃæ¶ÔÁËÒ»¸ö·Ç³£ÑÏÀ÷µÄ¿¼Ñ飬ÄǾÍÊÇC/C++ FrameworkµÄÑ¡Ôñ¡£ËäÈ»SymantecºÍWatcom¶¼ÒÔ¸÷×ÔµÄÌØÉ«Õ¼µÃÁËÊг¡£¬²»¹ýÔÚµ±Ê±¶ÔÓÚÒ»¸öC/C++¿ª·¢¹¤¾ßÀ´Ëµ£¬×îÖØÒªµÄÒ ......
Ôںܴó³Ì¶ÈÉÏ,±ê×¼C++ÊDZê×¼CµÄ³¬¼¯.ʵ¼ÊÉÏ,ËùÓÐC³ÌÐòÒ²ÊÇC++³ÌÐò,È»¶ø,Á½ÕßÖ®¼äÓÐÉÙÁ¿Çø±ð.ÏÂÃæ¼òÒª½éÉÜÒ»ÏÂ×îÖØÒªµÄÇø±ð.
ÔÚC++ÖÐ,Ãñ,¾Ö²¿±äÁ¿¿ÉÒÔÔÚÒ»¸ö³ÌÐò¿éÄÚÔÚÈκεط½ÉùÃ÷,ÔÚCÖÐ,¾Ö²¿±äÁ¿±ØÐëÔÚ³ÌÐò¿éµÄ¿ªÊ¼²¿·Ö,¼´ÔÚËùÓÐ"²Ù×÷"Óï¾ä֮ǰÉùÃ÷,Çë×¢Òâ,C99±ê×¼ÖÐÈ¡ÏûÁËÕâÖÖÏÞÖÆ.
&nb ......