??很难???
基础题啊Din count =0; //这个是vb还是c#,vb也是dim啊
Sqlcommand mySQL=new Sqlcommand (“Select * from visitor where groupID=” *grpid* “;”, myconnection); 这个sql看着有点别扭,*grpid*是啥,groupID到底是字符还数字??最后那个;又是啥,groupid又是在那里定义滴??Private static string m_dsn = “data source = xxx, 1433; Network Library=dbmsscon; Initial Catalog=xx; Password=xxx”; 
这个连接字符串不知道对不对,平时不怎么手写连接字符串,有点模糊来着,不过无伤大雅,估计也没人无聊到会去考连接字符串滴另外:try 也有问题,catch在那呢?Public static sqlconnection Getconnection 我觉得最后也别这么来使用即用既弃的using比较,使用static sqlconnection谁知道会不会碰到连接数的问题

解决方案 »

  1.   

    Public static count records ()  ?? count是啥类型啊???这啥古怪题目啊,就没几句话是正常滴
      

  2.   

    Section -1: Spot the mistakes in C# or write the following in C++ .Also take care of memory leaks. Just highlight and state the mistakes within the space provided. (2 min)
    部分1:找出下面C#或者C++代码里的错误,在空白处补全缺少的代码。注意内存泄漏的问题。(2分)
    下面是题目了:
    。。


    不知道我说的对不对