已经通过服务号的认证,其他功能都可以用,但是模板消息不可用,问题出在哪里呢?请高手过目啊~
解决方案
40
个人只能注册订阅号
……继续阅读 »
9年前 (2016-04-12) 1460浏览
0个赞
template<class T>
int Sort<T>::CoutDigit(T a[], int size)
{
int d = 1;
int c = 10;
int i;
for (i = 0; i < size; i++)
{
while (a[i] >= c)
{
c *= 10;
……继续阅读 »
9年前 (2016-04-12) 1026浏览
0个赞
C++刚开始学
在书上看到:一个类至少有 一个拷贝构造函数;事实上,可以有多个。
而且刚刚看到以下代码:
class ROSCPP_DECL NodeHandle
{
public:
/**
* \brief Constructor
*
* When a NodeHandle is constructed, it……继续阅读 »
9年前 (2016-04-12) 1981浏览
0个赞
如上图所示:ps=p1*s1+p2*s2,这些变量均定义为double型。
运行后发现,如上图所示:
p1=0.997467…
p2=0.0025329…
s1=3979.422177…
s2=0.50322978…
而ps却出现了负数,应该是溢出了吧?造成的原因是什么?应该怎么样修改代码使程序能正确输出p……继续阅读 »
9年前 (2016-04-12) 2468浏览
0个赞
int minus(void)
{
char s1[M],s2[M];
int a[M]={0},b[M]={0},l1,l2,c,k,i;
printf(“2.长整数的减法:\n”);
printf(“请输入两个长整数(输完一个按一次回车):\n”);
gets(s1);
gets(s2);
l1=strle……继续阅读 »
9年前 (2016-04-12) 1191浏览
0个赞
紧急求帮助,用visual studio 2015运行hello world程序总是显示无法打开包括文件: “stdio.h”: No such file or directory,问一下是什么问题?谢谢
试过两种代码如下:
1.
#include < stdio.h >
int main()
{
printf(“hello, wor……继续阅读 »
9年前 (2016-04-12) 1355浏览
0个赞
#include<iostream>
#include<string.h>
#include<stdio.h>
#define False 0
#define True 1
using namespace std;
nt Max[100][100]={0};//各进程所需各类资源的最大需求
int Avaliable[10……继续阅读 »
9年前 (2016-04-12) 1018浏览
0个赞
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int craps(void) //这是一个双骰子的函数,本人感觉这个函数的返回值本人没有整对
{
enum Status{CONTINUE,WON,LOST};
int sum,myPoint,die1,……继续阅读 »
9年前 (2016-04-12) 1488浏览
0个赞
讨教大家一个C语言问题 这是一个txt 内容:
0.992 1.029 1.074 1.120 1.008 1.018 0.974 0.980 0.982 0.957 0.862 0.975 1.049 1.047 1.038 0.959 1.011 1.017 1.007 0.963
本人用fscanf方法读取成double类型的数组 并且在读取的函数中打……继续阅读 »
9年前 (2016-04-12) 1097浏览
0个赞