Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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[][]{


Ïà¹ØÎĵµ£º

MySqlÓëJavaµÄʱ¼äÀàÐÍ

MySqlµÄʱ¼äÀàÐÍÓР         JavaÖÐÓëÖ®¶ÔÓ¦µÄʱ¼äÀàÐÍ
date                                  ......

C/C++Ê¥Õ½(Ò»)


±êÇ©£º
it
·ÖÀࣺC/C++
ÎҵĻØÒäºÍÓÐȤµÄ¹ÊÊ --- C/C++ʥսƪ
Àîά
------------------------------------------------------------------------------------------
ÉùÃ÷
ÒÔϵÄÕâƪÎÄÕÂÄÚÈÝÊÇÎÒ¸öÈ˵ĻØÒäÒÔ¼°¿´·¨£¬Ã»ÓÐÈκÎÌرðµÄÆ«¼û£¬Ðí¶àµÄÊÂÇéÊǸù¾ÝÎҵļÇÒäÒÔ¼°´ÓÐí¶àÈ˵ÄËß˵ÖеÃÖªµÄ£¬Ò²ÐíÄÚÈݲ»ÊÇ°Ù·Ö ......

C/C++Ê¥Õ½£¨Èý£©

¹Ø¼üµÄʱ¿Ì - MFC Or Not
ÔÚSymantec C/C++ºÍWatcom C/C++Öð½¥µØÕ¾ÎÈÁ˽Ų½Ö®ºó£¬ËÄ´ó±àÒëÆ÷¾öÕ½µÄʱ¿ÌÒ²Ö𽥱ƽüÁË¡£ÔÚ1994ÄêδµÄ¾öս֮ǰ£¬SymantecºÍWatcomͬʱÃæ¶ÔÁËÒ»¸ö·Ç³£ÑÏÀ÷µÄ¿¼Ñ飬ÄǾÍÊÇC/C++ FrameworkµÄÑ¡Ôñ¡£ËäÈ»SymantecºÍWatcom¶¼ÒÔ¸÷×ÔµÄÌØÉ«Õ¼µÃÁËÊг¡£¬²»¹ýÔÚµ±Ê±¶ÔÓÚÒ»¸öC/C++¿ª·¢¹¤¾ßÀ´Ëµ£¬×îÖØÒªµÄÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ