Jermil and pictures and words.
categories: computer, geeks, work

Subscribe to my blog! You’ll be glad you did!!!

Traffic Light Under Study For RemovalI haven’t programmed in C++ in a good while. Life was good. I was using Visual Basic .NET and a smidge of C# and SQL stuff. Sounds like fun huh???

If your eyes are glazing over and your brain is shutting down already, you can skip to the end of this post and check out an update.

With this new team, I have to program in C++ on a Ubuntu Linux machine. I haven’t used Linux or Solaris since college. It sucked then. Surprisingly, it still sucks.

Anyway, I haven’t programmed in C++ in forever. I forgot how to use it. I had to google search the syntax for an “if statement” (one of the simplest things ever).

So I was trying to do a printf on a string. That basically means I was trying to output text to the screen. But apparently printf doesn’t work too well with strings and I was getting a wicked warning that looked like this:
warning: cannot pass objects of non-POD type ‘struct std::string’ through ‘…’; call will abort at runtime

I had no idea what it meant and figured it was just a warning so I could ignore it. But that makes the program not work at all. Hence the mention of abortion.

What I had to do was use the c_str method. Whatever the variable name was, I had to change it to:
variablename.c_str()

Fascinating!!!



***Update on the
Cat Piss Plant’s Performance***

My cat piss pot is THRIVING!!! I took these pictures last night.

Cat Piss Plant SeedlingsCat Piss Plant Seedlings

Popularity: 35% [?]

Enter your email address to get new posts sent directly to your email.

Delivered by FeedBurner

 Subscribe to the RSS feed

3 comments

May 13th, 2008

:shock: Nerd work indeed. I was hoping for some fun SQL action. Just looking at your C++ nonsense makes me glad I switched majors early on! Now that I think about it, if they had a full-blown web design major, I might have been tempted to switch considering when we started college.

May 13th, 2008

I think if you take one or two programming classes, you can pick up web programming pretty easily. Easy for me to say…

If you had done web programming and graphic design, you could dominate the web design field.

Sarah

May 13th, 2008

I won’t lie, I skipped to the end. I was thinking about your earlier post about the coworker who is a “sloppy eater” and after I had first read it thought it was harsh. Well, after the past 2 days of work I have to say, I think I understand.

leave a comment