Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to retive body of Lotus Notes mail. Pin
raghava56016-Jun-09 22:09
raghava56016-Jun-09 22:09 
Questionrequired equivalent VC++ MFC functions ordinal number Pin
Member 372149115-Jun-09 20:01
Member 372149115-Jun-09 20:01 
AnswerRe: required equivalent VC++ MFC functions ordinal number Pin
«_Superman_»15-Jun-09 20:14
professional«_Superman_»15-Jun-09 20:14 
QuestionReg. Error C2440 in visual studio 2008.... Pin
Rakesh515-Jun-09 19:44
Rakesh515-Jun-09 19:44 
AnswerRe: Reg. Error C2440 in visual studio 2008.... Pin
«_Superman_»15-Jun-09 19:51
professional«_Superman_»15-Jun-09 19:51 
AnswerRe: Reg. Error C2440 in visual studio 2008.... Pin
Stuart Dootson15-Jun-09 22:05
professionalStuart Dootson15-Jun-09 22:05 
QuestionPreTranslateMessage in ActiveX Control Class Pin
Nishad S15-Jun-09 19:43
Nishad S15-Jun-09 19:43 
QuestionFunction Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 18:46
Rajdeep.NET15-Jun-09 18:46 
Hello friends,

I am new to this forum and this is my first question here. Actually, I am a .NET programmer. However, nowadays am a terrible fan of C++ since the language is machine+soft/hardware independent. I needed some help for function calling code, which I had written in C# and now am trying to convert it to C++ (note: Its not VC++, just C++, the code of which is compiled in Borland compiler or C-free and not Visual Studio)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        public void function01()
        {
            Console.WriteLine("Hi, I am function 01, now calling function 02"); // Prints message
            function02(); // calls function02
        }
        public void function02()
        {
            function01(); // calls function01
        }
        public static void Main()
        {
            Program p = new Program();
            p.function01();
        }
    }
}


Now, I need the C++ version of this. Can anybody in the forum please explain me the C++ code of this. I mean, implementing the function call concept in C++. I hope its aint that easy as is in the case of C#.

Hope to hear from you guys soon,
Happy Programming,
Rajdeep.NET Big Grin | :-D

Always ready to help (if possible, often I am a NooB!) and be helped!

AnswerRe: Function Call in C++ (Newbie question) Pin
«_Superman_»15-Jun-09 18:55
professional«_Superman_»15-Jun-09 18:55 
GeneralRe: Function Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 19:26
Rajdeep.NET15-Jun-09 19:26 
GeneralRe: Function Call in C++ (Newbie question) Pin
«_Superman_»15-Jun-09 19:29
professional«_Superman_»15-Jun-09 19:29 
GeneralRe: Function Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 20:42
Rajdeep.NET15-Jun-09 20:42 
GeneralRe: Function Call in C++ (Newbie question) Pin
«_Superman_»15-Jun-09 22:31
professional«_Superman_»15-Jun-09 22:31 
GeneralRe: Function Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 23:56
Rajdeep.NET15-Jun-09 23:56 
GeneralRe: Function Call in C++ (Newbie question) Pin
«_Superman_»16-Jun-09 0:00
professional«_Superman_»16-Jun-09 0:00 
GeneralOT: Rajdeep.Net Pin
EliottA23-Jun-09 5:24
EliottA23-Jun-09 5:24 
GeneralRe: OT: Rajdeep.Net Pin
«_Superman_»23-Jun-09 16:17
professional«_Superman_»23-Jun-09 16:17 
GeneralRe: OT: Rajdeep.Net Pin
Rajesh R Subramanian28-Jul-09 0:29
professionalRajesh R Subramanian28-Jul-09 0:29 
GeneralRe: OT: Rajdeep.Net Pin
ThatsAlok21-Jun-12 21:34
ThatsAlok21-Jun-12 21:34 
QuestionRe: Function Call in C++ (Newbie question) Pin
David Crow16-Jun-09 2:57
David Crow16-Jun-09 2:57 
AnswerRe: Function Call in C++ (Newbie question) Pin
molesworth16-Jun-09 3:36
molesworth16-Jun-09 3:36 
QuestionProblem running while and scanf Pin
Denis J. González15-Jun-09 18:37
Denis J. González15-Jun-09 18:37 
AnswerRe: Problem running while and scanf Pin
«_Superman_»15-Jun-09 19:04
professional«_Superman_»15-Jun-09 19:04 
GeneralRe: Problem running while and scanf Pin
Denis J. González15-Jun-09 19:08
Denis J. González15-Jun-09 19:08 
GeneralRe: Problem running while and scanf Pin
«_Superman_»15-Jun-09 19:24
professional«_Superman_»15-Jun-09 19:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.