88、下列程序的运行结果是?
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <iostream>    
const char* str = "vermeer";
using namespace std;
int main()
{ 
  const char* pstr = str;
  cout << "The address of pstr is: " << pstr << endl;
  return 0;
} 

89、下列程序输出结果是?
 
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <iostream>    
using namespace std;
inline void max_out(int val1, int val2)
{
    cout << (val1 > val2) ? val1 : val2;
}
int main()
{
    int ix = 10, jx = 20;
    cout << "The larger of " << ix;
    cout << ", " << jx << " is ";
    max_out(ix, jx);
    cout << endl;
} 

90、int max( int *ia, int sz ); 
 
int max( int *, int = 10 ); 
 算函数重载?还是重复声明?
 如果在两个函数的参数表中只有缺省实参不同则第二个声明被视为第一个的重复声明 。
91、请编写一个 C++函数,该函数给出一个字节中被置 1 的位的个数。
#include <iostream>
using namespace std;
unsigned int TestAsOne0(char log)
{
	int i;
	unsigned int num = 0, val;
	for (i = 0; i < 8; i++)
	{
		val = log >> i;//移位
		val &= 0x01;   //与1相与
		if (val)
			num++;
	}
	return num;
}
int main() {
	
	char q = 'a';
	cout << "ascis q=" << q-0 << endl;
	int c = TestAsOne0(q);
	cout << "c=" << c << endl;
	return 0;
}
 
输入为a,
输出
ascis q=97
c=3 
92、编写一个函数,函数接收一个字符串,是由十六进制数组成的一组字符串,函数的功能是把接到的这组字符串转换成十进制数字.并将十进制数字返回。
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main()
{
    string str1("1024");
    stringstream ss1;
    int d1;
    ss1 << str1;
    ss1 >> d1;
    cout << d1 << endl;
    stringstream ss2;
    int d2;
    string str2("1aF"); //1aF十进制431
    ss2 << hex << str2; //选用十六进制输出
    ss2 >> d2;
    cout << d2 << endl;
    system("pause");
    return 0;
} 

93、输入一个字符串,将其逆序后输出 
  
 
 <stdio.h>
#include<string.h>
void stringNx(char a[])
{
    int i = strlen(a) - 1;
    
                


















