I need some help

General Discussion

Everybody can Add Topics, Everybody can Reply to this Topic.

Add New Topic Category Index Forum Index
1 2 3 4
  Sunday, March 29th, 2009 at 3:35:22 AM #16655
DeadLazyBum
DeadLazyBum
Site Admin
'♥'
Level 33
Posts: 2,964
Submissions: 137
DeadLazyBum is Offline

People say the best way to learn a language is to place yourself inside it. Well, I'm having a serious lack of motivation to learn C++ even though I am capable and have all the materials needed to learn, so I need to just place myself there and do it. Suggest a program that would be semi-easy to make, and I'll try it, but remember I don't know much, so it might take a while.

Tl;DR Suggest me a program and I will try to make it.

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
  Sunday, March 29th, 2009 at 3:40:21 AM #16656
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

Personally, I find C a hard language to learn, and if you're impatient like me, you probably won't find it rewarding. I first started programming in QBASIC, and it was a fairly easy jump to get to object-oriented programming in Visual Basic. I found the language was easy enough, and powerful enough, that I could make an application in VB in a couple hours that would take me a month or more in C++.

If you're seriously considering staying with C, I would recommend trying the typical Hello World examples, and trying to build off of that. Save several different versions and see what you can abstract from there. What sort of programs have you wrote so far? Anything using different forms? Libraries? Objects? Maybe I can make a semi-uneducated guess from there.

Member Added Image
  Sunday, March 29th, 2009 at 3:46:32 AM #16658
DeadLazyBum
DeadLazyBum
Site Admin
'♥'
Level 33
Posts: 2,964
Submissions: 137
DeadLazyBum is Offline

I can do the Hello World things, cout is pretty easy. I was thinking about starting in Visual Basic, but decided that C++ would be better in the long run because I can make games with it (which I wouldn't mind doing as a hobby) and that I've just heard good things about it. I've also heard that PHP is partly based off of C++, though I haven't seen any examples of that yet, and I want to learn PHP.

As for programs I've written so far, I had a calculator that converted Fahrenheit to Celsius and back, but I didn't come up with it, I learned it in a tutorial, and I can do basic math with C++.

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
  Sunday, March 29th, 2009 at 3:52:31 AM #16660
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

PHP's libraries and binares are all C++, and the language is close to being C, but after a few syntatical changes between BASIC and PHP it wasn't hard to learn.

A good example of the change is this:

In Basic:
VAR$ = "Alphanumeric, not seen as a number"
VAR% = 12 'Is a number, only numeric -- -32,768 to 32,767 range.
VAR# = 200 'Still a number, only numeric -- -65,536 to 65,535 range.

In PHP, the variable designator changes sides, and "$" covers all of the types:

$VAR = "Alpha";
$VAR = 12;

Either way, it can be used in calculations without any conversion functions like BASIC.


It looks like they re-did their site, but W3Schools has some good information on PHP (and several other web-languages).



Try making a program that can load/save a file. If you can do file transactions, you'll be able to add quite a bit of functionality to your programs by using the disk for variable space, instead of memory.

Member Added Image
  Sunday, March 29th, 2009 at 3:56:33 AM #16661
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

Typical file read loop in PHP:

$file = @fopen("C:/path/file.ext","r");
while (!@feof($file))
{
$var = @fgets($file);
echo $var . "<br />";
}
@fclose($file);

(The @ by the functions is error suppression in PHP, which you may not want if you're wanting debug information).


Similar code in Visual Basic:
open "C:/path/file.ext" for input as #1 'Change the forward slashes to back slashes.
do while not eof(1)
Line Input #1, Var$
Form1.Print Var$ + (Chr$(13)+Chr$(10))
loop
close #1

Member Added Image
  Sunday, March 29th, 2009 at 3:56:35 AM #16662
DeadLazyBum
DeadLazyBum
Site Admin
'♥'
Level 33
Posts: 2,964
Submissions: 137
DeadLazyBum is Offline

Alright, I'll try to do that, doesn't seem like it should be too hard. Another thing I keep forgetting that I want to do is make a .nfo reader. No computer I have ever been on has the ability to just open .nfo files how they are supposed to be opened. I always get an error. So I open it in notepad, but I want to be able to make one of those. I'll try that after I try yours though.

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
  Sunday, March 29th, 2009 at 3:58:20 AM #16663
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

What are .NFO files? I'm not familiar with it.

Member Added Image
  Sunday, March 29th, 2009 at 4:11:10 AM #16665
DeadLazyBum
DeadLazyBum
Site Admin
'♥'
Level 33
Posts: 2,964
Submissions: 137
DeadLazyBum is Offline

I get them a lot downloading torrents and E-books, instead of having a read-me .txt file some people make .nfo files.

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
  Sunday, March 29th, 2009 at 4:16:33 AM #16666
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

Oh. I gotcha.

I don't want to steer you the wrong way, but in VB that would be amazingly easy to write...

Member Added Image
  Sunday, March 29th, 2009 at 4:17:30 AM #16667
DeadLazyBum
DeadLazyBum
Site Admin
'♥'
Level 33
Posts: 2,964
Submissions: 137
DeadLazyBum is Offline

Alright, I'll try VB, any recommended readings?

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
  Sunday, March 29th, 2009 at 4:23:18 AM #16668
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

I learned from books myself. I really hope telling you that won't steer you wrong.

You want me to whip together a quick one and shoot you the project files? You can play with the code on that? Either way, I can probably tell you what you'd need to know in order to get it to work...

Member Added Image
  Sunday, March 29th, 2009 at 4:25:28 AM #16669
DeadLazyBum
DeadLazyBum
Site Admin
'♥'
Level 33
Posts: 2,964
Submissions: 137
DeadLazyBum is Offline

I meant what books did you use to learn. I've been teaching myself the languages I know through e-books.

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
  Sunday, March 29th, 2009 at 4:29:21 AM #16670
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

ISBN Numbers or names be best?

Member Added Image
  Sunday, March 29th, 2009 at 4:32:19 AM #16671
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

The one I learned the most from was:

Teach Yourself Visual Basic 4 (3rd Edition) in 21 days by Sams Publishing.

Because it is at VB6 (yea, there's 2005 and 2008, they changed the language, so I have no idea what these are about), I'd recomend a newer book.

Other ones I have on my shelf are these (which are all pretty good):

Visual Basic 5 for Dummies (IDG Books)
Visual Basic 5 Bible (IDG Books)
Visual Basic 6 Complete (Sybex)
Visual Basic 6 Super Bible (Sams Publishing)

Member Added Image
  Sunday, March 29th, 2009 at 4:36:22 AM #16672
DeadLazyBum
DeadLazyBum
Site Admin
'♥'
Level 33
Posts: 2,964
Submissions: 137
DeadLazyBum is Offline

Quote:
ISBN Numbers or names be best?

Names are best.

I'll see if I can find some VB 6 for dummies or something. I always liked those books. Thanks.

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
  Sunday, March 29th, 2009 at 4:38:41 AM #16673
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

Cool cool. Any questions about it, feel free to post/message.

Member Added Image
  Sunday, March 29th, 2009 at 5:03:41 AM #16674
DeadLazyBum
DeadLazyBum
Site Admin
'♥'
Level 33
Posts: 2,964
Submissions: 137
DeadLazyBum is Offline

Will do. I just downloaded 30 e-books on the subject, I should be good for a while.

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
  Sunday, March 29th, 2009 at 5:07:07 AM #16675
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

God damn!



Zip+Send2Me

Member Added Image
  Sunday, March 29th, 2009 at 5:09:24 AM #16676
DeadLazyBum
DeadLazyBum
Site Admin
'♥'
Level 33
Posts: 2,964
Submissions: 137
DeadLazyBum is Offline

Quote:
Zip+Send2Me

If you really want them, I will.

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
  Sunday, March 29th, 2009 at 5:15:13 AM #16677
Toasty
Toasty
SysOp
Level 40
Posts: 7,388
Submissions: 227
Toasty is Offline

I love collection shit to read. If you can, it would be highly appreciated.

Member Added Image
1 2 3 4