|
Oh! That's all right then. I too have a job writing "Hello world" applications - pay is pretty good, isn't it?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Joking aside
using namespace std;
is frowned on.
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
#define ohCrap -1
int main {
return ohCrap;
}
|
|
|
|
|
Thank you, Sir!
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Mi gusto! If you want the C code to work harder, you can do:
#define workHard while(true) ;
<h1>define goodLuckGettingHere -1</h1>
int main() {
workHard;
return goodLuckGettingHere;
} Of course, I know you already know this, but since we're having fun... And if you know how to get rid of the 'h1' in the autocomplete let me know
|
|
|
|
|
That's the MCU version.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
This is dangerously close to a programming question!
|
|
|
|
|
About as dangerously close to a programming question as the recent spate in QA
|
|
|
|
|
#include <cstdlib>
int main()
{
return EXIT_FAILURE;
}
You're welcome.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Did you read the requiremenz?
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
The relevant restrictions of the CPOL are:
CPOL 1.02: a. You agree not to remove any of the original copyright, patent, trademark, and attribution notices and associated disclaimers that may appear in the Source Code or Executable Files.
b. You agree not to advertise or in any way imply that this Work is a product of Your own.
CPOL 1.02: f. You agree not to use the Work for illegal, immoral or improper purposes, or on pages containing illegal, immoral or improper material. The Work is subject to applicable export laws. You agree to comply with all such laws and regulations that may apply to the Work after Your receipt of the Work.
Representing other's work as your own is all three. Not that it would stop many people.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
I thought your question about the "requiremenz" related to the comment that I added, so I explained it. Nothing else was intended.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Nope.
It was related to the actual requirements (convert C++ code to C , not the opposite), only David apparently got it.
Actually I didn't consider the remarks in your code at first. Now it makes sense.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
CPallini wrote: convert C++ code to C , not the opposite
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Indeed looks unusual, especially considering that proposed C++ programs are very, very C -like.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
|
It iz!
Plz, plz, plz...
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
|
|
CPallini wrote:
Read the requirements...
C not C++
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Maybe he meant "real" C
main(argc, argv)
int argc, char ** argv
{
}
|
|
|
|
|
That's really ugly!
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
That's C for you!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Er... yeah. I'm working on a code base where this is used a lot. The phrase "pus-oozing bedsore" is the kindest thing I've had to say about it so far.
Software Zen: delete this;
|
|
|
|