精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • warning C4700:local variable 'l' used without having been initialized

    warning C4700:local variable 'l' used without having been initialized
    #include "stdio.h"
    #include "stdlib.h"
    #define ERROR 0
    #define ok 1
    #define OVERFLOW -2
    #define list_init_size 100//線性表存儲空間的初始分配量
    #define listincrement 10//線性表存儲空間分配增量
    typedef int status;
    typedef int elemtype;//類型定義
    typedef struct{
    elemtype *elem;//存儲空間基址
    int length;//當前長度
    int listsize;//當前分配的存儲容量 (以sizeof(ElemType)為單位)
    }sqlist;
    status Initlist(sqlist l,int list_number)
    {if(list_number>list_init_size) return ERROR;
    l.elem=(elemtype*)malloc(list_number*sizeof(elemtype));
    if(!l.elem) exit(OVERFLOW);
    l.length=0;
    l.listsize=list_number;
    return ok;
    }
    //在線性表中插入一個元素
    status listinsert_sq(sqlist l,int i,elemtype e )//構(gòu)造一個空線性表L
    {/*在順序線性表L中的第i個位置之前插入新的元素e
    i的合法值為1=q;--p) *(p+1)=*p;//插入位置及之后的元素后移
    *q=e;
    ++l.length;
    return ok;
    }
    void outputlist(sqlist l)
    {int j;
    for(j=0;j
    其他人氣:535 ℃時間:2020-02-03 00:02:44
    優(yōu)質(zhì)解答
    你的main函數(shù)中的l變量應(yīng)作為全局變量,放在最最開始的那幾行,在執(zhí)行完函數(shù)時的過程中,l中三元素的值當然會變,但執(zhí)行完,l就有返回執(zhí)行前的狀態(tài)了,函數(shù)在執(zhí)行時會為括號中的各個參數(shù)創(chuàng)建一塊空間,但執(zhí)行完畢之后就會自...
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點,以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機版