View Full Version : Your first post.

11-09-2005, 08:59 PM
So, what was your first post? Was it a question? Did you come here as a new programmer with a problem that you'd laugh at now? Was your first post an answer for someone? Was your first post an introduction? This question came to me because I noticed the "Newest Member" statistic at the bottom of the page, every time I see it change I expect a programming question to follow immediately after, and it usually does.

Oh, yeah. My first post was a question. I can't remember what it was exactly, I joined, posted a little bit, then quit for about 8 months before I got back into programming. Now I've switched my major to Computer Science and I'm ready to attempt a career in this fine art. If I had to guess, my question probably had something to do with my first program (a really bad calculator) I think I asked how to do the while loop properly.

11-09-2005, 09:07 PM
Newbie Loop Question.

05-10-2004, 04:51 PM I'm brand new to C++ programming, this shouldn't be too difficult of a question for a real programmer. I made a calculator program and I'm not understanding the loop I managed to put in.

See... what it does it is perform all of the operations then loop back to the beginning with a "while" command. I specifically did this:

int x;

See how it simply ends with a curly bracket? What I want to do is make my final command, which is:

cout << "1: Try Again \n";
cout << "2: Exit \n";
cout << ">";
...the reply "Try Again" I want to make start the loop again, while the command "Exit" I want to close the program. Unfortunatly, since the "cout" is in the loop brackets, the "cin" and all of the "If" commands have to be in the loop bracket as well, so the "Exit" command just makes it loop still. How do I make this work?

I believe this was your first post. Very funny post. :p

11-09-2005, 09:14 PM
Wow, that's worse than I remembered. Yeah, I forgot about that view all posts, I should have checked mine. Back then I had a friend who was an excellent programmer. He got invited to E3 yearly for his work with MODs on Quake. Ever here of "Chicken Tag"? Anyway I recall asking him: "HOW DO I MAKE IT LOOP FOREVER OMG OMG TELL ME!", he didn't want to both and said just use while(1)... I had no idea what it mean, obviously.

11-09-2005, 09:17 PM
Great start: :rolleyes:
I think the code posted by Salem may be incorrect.[edit]#13 (A shot at Prelude???)

And #11 was on casting malloc in a now infamous thread.

::shakes head::

11-09-2005, 09:19 PM
Salem must have torn you up for that, btw I haven't seen Salem around here for a while. Anybody know what happened to him?

11-09-2005, 09:57 PM
My first post was helping someone with searching through a string for certain words.

11-09-2005, 10:02 PM
Salem must have torn you up for that, btw I haven't seen Salem around here for a while. Anybody know what happened to him?

His title says, "Banned" but I have no clue why that would've happened...

My first post (http://cboard.cprogramming.com/showthread.php?t=34517). At least it's semi-intelligent...Although I have no idea why I used dynamic allocation in that example...

11-09-2005, 10:11 PM
He could just be using that as a custom user title. I've seen people do that before on other forums just to screw with people.

11-09-2005, 10:14 PM
I forgot to put "break" statements in a switch/case block.

I believe Salem's title is just a joke - he's not banned.

11-09-2005, 10:45 PM
My first post (http://cboard.cprogramming.com/showthread.php?t=25078)

Damn I used a lot of smilies back then :D :D

11-10-2005, 12:51 AM
Nice connect four game. :)

11-10-2005, 01:15 AM
My first post on cprog was as "nv", back when this board's predecessor's predecessor allowed two-character nicknames. I don't think I will be able to find it in the archives, at least 3 transitions to different boards will have killed it for sure. Maybe it's better that way :D

11-10-2005, 03:50 AM
Like nv, my first post was before we had vBulletin. I remember the gist of it though.

I had an extensively multithreaded application receiving files over a wireless LAN, manipulating them and passing them on to an Oracle database. I'd noticed that my memory wasn't freeing as I believed it should. Sunlight gave me a steer to better documentation of the way Windows allocates and releases memory, which alaid my fears that I was leaking memory.

11-10-2005, 06:54 AM
Oddly enough, mine didn't have anything to do with C or C++. Don't ask me how I ended up here: http://cboard.cprogramming.com/showthread.php?t=544

11-10-2005, 07:09 AM
Mine was on the board's predecessor (but not the same as nv or adrian). If I recall, it was a pretty basic question that showed I had no idea what I was doing, and Salem ripped me a new one. I think it had to do with serial communication.

11-10-2005, 07:24 AM
Mine was on the old boards, asking the best way to access a PAB file. I am still awaiting a response.

11-10-2005, 07:59 AM
I don't recall asking a question for quite a while. Hell, I don't ever remember asking a question. :eek: But I do remember making quite a few posts that make me cringe. I wasn't exactly a genius with C, it's a wonder I didn't get burned very much for being stupid. ;) I don't remember if my very first was on the old boards or not, but I had to dip into the archives to find my first here (edited because the archives remove formatting):

Prelude 09-11-2001, 02:57 PM

void func_name()

void as a return type should be used when everything you plan
to do with the data in the function is to be used only in that
function. Should you choose to give the function parameters,
such as adding two numbers:

void add_two(int x, int y)

then you plan to add your two numbers and then if you want to
print them you would do so inside that function.

int func_name()

A data type besides void tells the function that it is to send an
item of data back to the part of your program that called the
function. Say you call this function with a return type int from

int add_two(int x, int y){
int sum;
//do stuff
return sum;

using return sum; you told the function to send sum back to main
where you can assign it to a variable local to main and then print
it out or modify it. sum itself does not change until you call the
function again, you just give the value of sum to another variable
so that you can use it in main.

You can send any number of data types back to the function that
called your function. int, char, float, double, pointers, etc...

Here's the full program to add two numbers using a return type
of int:

#include <stdio.h>

int add_two(int x, int y);

int main(){
int one, two, three;
printf("Enter two numbers: ");
scanf("%d%d", &one, &two);
three = add_two(one, two);
printf("The sum of your two numbers is %d", three);

return 0;

int add_two(int x, int y){
int sum;
sum = x + y;

return sum;

The output of this program is the sum of the two numbers the
user entered in plus one.

Hope that helps


It could have been worse, I suppose. ;)

11-10-2005, 08:08 AM
Haha, Prelude diligently answers questions as the terrorist attacks occur. This is the kind of leadership we need!

11-10-2005, 08:14 AM

Who knows(I like how I sounded like I knew, JUST how long it took to become an expert at all the information covered on that site :p)

11-10-2005, 10:51 AM

11-10-2005, 11:26 AM
Haha, Prelude diligently answers questions as the terrorist attacks occur. This is the kind of leadership we need!
:D :D :D

wow... I'm surprised my first post was to help somebody:

I was referred here by a friend I knew in High School... He hasn't posted here in years...

11-10-2005, 12:17 PM
>Haha, Prelude diligently answers questions as the terrorist attacks occur.
I didn't even notice the date on that post. :p

11-10-2005, 02:32 PM
Here was my first thread (post):

A little help

05-25-2005, 07:34 PM Hey, I am a new member. Also, i'm new to programming. I just wanted to know if my software & book are good sources to learn from. The software is called Borland C++ & Data Tools v4.5. The book is called An Introduction to Computer Science with C++. I am pretty sure the software is a little outdated (1997?). Just wondering if this would be a good place to start. Thanks.

Now i have like 50 books, and Visual C++ .net. Very odd how life passes by. ;)

11-10-2005, 03:27 PM
You bought 50 C++ books in 7 months?

11-10-2005, 04:31 PM
No, lol, i'm just exagerating. I have like 5....so if you times that by 10 it would equal 50. I want to be so good at programming that my milk dances for me :( but it's going to take a while......wait i don't drink milk. LOL :(

11-10-2005, 04:35 PM
It's not my powers in programming that makes my milk dance for me... I just managed to sneak some of that goo off the set of Ghostbusters 2. It really works.

11-10-2005, 04:53 PM
My first post (http://cboard.cprogramming.com/showthread.php?t=50566) was a question. I suppose it could have been worse.


11-10-2005, 05:03 PM
Mine was definitely a question, and pretty embarrasing at that:
(I don't know how to make a word in the post into a link.)

I believe Salem's title is just a joke - he's not banned.
I noticed that he was still on the list of moderators, but hadn't posted in a while (I pretty much stay on the C++ board so he could have been posting elsewhere), changed the title to banned and lost the avatar.
I half-expected him to be waiting for someone to ask why he was banned before he started posting again.

11-10-2005, 07:49 PM
yah we had a post about it, I had my thing say banned for a while. It's funny.

Jeremy G
11-10-2005, 08:30 PM

My first thread.
I made two answer posts before that.

11-11-2005, 04:43 PM
#include <iostream.h>
#include <windows.h>

int main()
cout << "Stephen's C++ Calculator" << endl;
cout << "Enter a number" << endl;
int a;
cin << a;
cout << a << endl;
cout << "Now push a math sign" << endl;
int sign;
cin << sign;
cout << a <<""<< sign << endl;
cout << "Now push a second number" << endl;
int b;
cin << b;
if (sign == " + ");
int resultplus;
a + b = resultplus;
cout << resultplus << " is your answer!" << endl;
if(sign == " - ");
int resultminus;
a - b = resultminus;
cout << resultminus << " is your answer!" << endl;
if(sign == "/");
int resultdivide;
a / b = resultdivide;
cout << resultdivide << " is your answer!" << endl;
if(sign == "*");
int resultmultiply;
a * b = resultmultiply;
cout << resultmultiply << " is your answer!" << endl;
return 0;

It hurts me to admit that I actually posted this...

Edit: At least I can say my stupidity wasn't all my fault. I learned to declare variables from the RPGToolkit, so that's why I didn't declare them at the beginning of the main function. The RPGToolkit also didn't require variable initialization.

The reason I didn't use the standard headers is because I was using an outdated C++ book which, frankly, sucked.

11-21-2005, 07:50 PM

I think I posted a few under guest :rolleyes: