dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Printing DB<type>

  1. #1
    Join Date
    Apr 2006
    Posts
    1

    Red face Printing DB<type>

    Code:
    class db<T> where T: struct{}
    public static void Main(){
    	db<int> d=new db<int>();
    	displayDB<int>(d);
    }
    
    static void displayDB<T>(db<T> m){
    	System.Console.Writeln(m);
    }
    This code can't pass thecompiler symptom check.
    Thanks in advance

    Bell

  2. #2
    Join Date
    Mar 2006
    Location
    You can guess, but it'll be wrong
    Posts
    12

    Re: Printing DB<type>

    Apposition or repetition is needed for a complete logic in expression.
    static void displayDB<T>(db<T> m) where T: struct{
    Emiene Vous

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)