- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
[CODE]using System; using System.Collections.Generic; using System.Text; class BaseClass { public virtual void method() { Console.WriteLine("BaseClass method"); } } class SubClass : BaseClass { public override void method() { Console.WriteLine("SubClass method"); } public void someMethod() { Console.WriteLine(); } static void Main(string[] args) { BaseClass var = new SubClass(); var.method(); var.someMethod(); } … |
|
[CODE]using System; using System.Collections.Generic; using System.Text; class BaseClass { public virtual void method() { Console.WriteLine("BaseClass method"); } } class SubClass : BaseClass { public override void method() { Console.WriteLine("SubClass method"); } public void someMethod() { Console.WriteLine(); } static void Main(string[] args) { BaseClass var = new SubClass(); var.method(); var.someMethod(); } … |
|
I need to get the current time from Internet using C language. Any help is appreciated, hopefully a source code sample. Thank you in advance. |
|
Re:
Hello So I have a simple structure : [CODE] struct students { char name[30]; unsigned int noofcourses; char course[50]; char status[30]; }arr[50]; //50 students [/CODE] I would like to know is how could I read multiple courses in per student from memory.[CODE]Example: Joey Brown 4 Math$Chem$Phy$Cooking Enrolled m8!! [/CODE] So … |
|
Re:
what is the difference between procedure and functions?? |
|
Re:
Hi everyone, I am not getting how to enter values to that array. Please some one give me a solution. typedef struct user { int array[10]; }user; void main() { int i; user *tmp; printf("enter array values"); for(i=0;i<10;i++) { scanf("%d",&tmp->array[i]); } for(i=0;i<10;i++) { printf("[%d]\n",tmp->array[i]); } } |
|
The following program compiles (using MS Visual Studio 2010) with no errors or warnings and runs without any error, why? Thanks in advance for explanation. [CODE]#include <stdio.h> int f[3] = { 1,2,3 }; int g[4] = { 12,45,55,65 }; int main(int argc, char *argv[]) { printf("%d\n", f[5]); return 0; } … |
|
Does anybody know how member of function can be a pointer to a function. The following example crashes when I call the member that is pointing to a function. [code]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> typedef long fooPtr(char *); typedef struct { fooPtr *func; long cnt; } MyStruct; … |