|
by: Steven T. Hatton |
last post by:
This is a purely *hypothetical* question. That means, it's /pretend/,
CP. ;-)
If you were forced at gunpoint to put all your code in classes, rather than
in namespace scope (obviously classes themselves are an exception to this),
and 'bootstrap' your program by instantiating a single application object
in main(), would that place any...
|
by: Fred Zwarts |
last post by:
In C++ execution of a program starts already before execution of main().
The initialization of static variables defined outside the scope of main
is performed first. I could imagine a program where the whole job
can be done in the constructor and destructor of a static variable.
(Wouldn't that be the ultimate OOP program, just the creation and...
|
by: Neelesh |
last post by:
Hi all,
it is strange that the following code compiles and runs (tested with
g++ 3.4.2)
#include <iostream>
using namespace std;
int main(int a, int b, int c, int d, int e)
{
cout << "hello " << endl;
|
by: Bill Cunningham |
last post by:
> #include <stdlib.h>
> #include <stdio.h>
>
> int main(int argc, char *argv) {
> FILE *in, *out;
>
> if(argc==1)
> {
> in = stdin;
> out = stdout;
|
by: Beni |
last post by:
I have been programming in C for about a year now. It sounds silly,
but I never took the time to question why a C(or C++ or Java) program
execution begins only at the main(). Is it a convention or is there
some deeper underlying reason?
|
|
by: junky_fellow |
last post by:
I was reading the various posts in this newsgroup, and found
that main function should be declared as
int main(void) // if no arguments are passed to main
i wanted to know whats the purpose of return value int ?
where does main return ? As far as i know it is the first function
to be given control. So where does this first function return...
|
by: Fred Nelson |
last post by:
Hi:
I'm trying to implement an overall error handler in my VB.NET windows
application.
I need to place an "On Error Goto" in "Sub Main".
I have tried to create a Sub Main and have had no luck - all the examples
I've read don't explain this to me either.
|
by: =?ISO-8859-15?Q?Luigi_Malag=F2?= |
last post by:
Hello,
i'm having a problem with "multiple definition error" linking a library.
I have a program with a main. I have another program with classes and a
main too. I created a library of the second program, after compiling, in
this way:
ar -r /path/lib/libtest.a ./Class1.o ./Class2.o ./Class3.o
Notice that from the list I excluded ./main.o...
|
by: fatwallet961 |
last post by:
is the main function in python is exact compare to Java main method?
all execution start in main which may takes arguments?
like the follow example script -
def main(argv):
==============================
|
by: chang |
last post by:
Hi ALL,
I am working in C from past few months. Still now i can't
figure out who is called main() in 'C' programme?
Main() is a function from that we can call our sunroutines but someone
has to call this Main() and it will return to whom and in runtime
this Main() is stored/runnng exactly where in the memroy ?
I will appreciate if someone...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
|