Author Topic: Coding and Scripting > Learning C++  (Read 11947 times)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Coding and Scripting > Learning C++
« Reply #45 on: January 23, 2012, 08:00:23 PM »
Quote
#/bin/sh
echo compiling C++ using -ansi -pedantic-errors -Wall
g++ -ansi -pedantic-errors -Wall $1 $2 $3

Save in a file called gccp, did not work to well, claimed no input file,

the example should work, may be you have wrote wrongly.
that line should be:
Quote
#!/bin/sh

Quote
This worked fine, so now I am c++ programmer  :)

Nearly  ;) ;D

Quote
Because the parapllelport program had a 'make' file:

Quote
[gert@localhost ParallelPortTest]$ make
g++ -ansi -Wall ParallelPort.cpp main.cpp -lGL -lglut -o ParallelPortTest
In file included from main.cpp:31:0:
main.h:39:21: fatal error: GL/glut.h: No such file or directory
compilation terminated.
make: *** [ParallelPortTest] Error 1
[gert@localhost ParallelPortTest]$

Well I edited the Make file

Quote
SRC   = ParallelPort.cpp main.cpp
TARGET      = ParallelPortTest
CXX      = g++
CXXFLAGS   = -ansi -Wall
# LIBS      = -lGL -lglut
LIBS      = -llibmesaglut3-7.11.2-1pclos2011 -llibmesaglut3-devel-7.11.2-1pclos2011

all: $(TARGET)

$(TARGET): $(SRC)
   $(CXX) $(CXXFLAGS) $(SRC) $(LIBS) -o $(TARGET)

clean:
   rm -rf $(TARGET)

It is not helping  :D

You need to specify libraries, not packages, the following command should be of some help:
Quote
pkg-config --libs glut
if fact the command return:
Code: [Select]
-lglut -lGLU -lGL
so, your makefile should be changed to include:
Code: [Select]
LIBS = -lglut -lGLU -lGL
Quote
Code: [Select]
[gert@localhost ParallelPortTest]$ make
g++ -ansi -Wall ParallelPort.cpp main.cpp -llibmesaglut3-7.11.2-1pclos2011 -llibmesaglut3-devel-7.11.2-1pclos2011 -o ParallelPortTest
In file included from main.cpp:31:0:
[color=red]main.h:39:21: fatal error: GL/glut.h: No such file or directory[/color]
compilation terminated.
make: *** [ParallelPortTest] Error 1
[gert@localhost ParallelPortTest]$ gccp temp.cc

Ummm, perhaps not a c++ programmer just yet  ;D

... Hmm ... may be the source is wrong, and that included file is enclosed in double quote instead of angle brackets ?
should be:
Code: [Select]
#include <GL/glut.h>and not
Code: [Select]
#include "GL/glut.h"

Enjoy the beauty of C/C++ development!  :D ;D

AS

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2444
  • Any Bugs in site?
Re: Coding and Scripting > Learning C++
« Reply #46 on: January 23, 2012, 08:43:00 PM »
 ;D :'( ;D Thanks

Grrrrr had a beautiful prepared lot of information here. Just seem to have evaporated.

1.. The gccp is running, ! was the problem, when inserting the ! it overwrote the / and did I have some fun. Having corrected the ! of course I knew the line now was correct, totally blind hard to believe I still make these mistakes  >:(.

2.. The libraries is another matter not so easy as I out in uncharted water.

Quote

[root@localhost ~]# pkg-config --libs glut
Package glut was not found in the pkg-config search path.
Perhaps you should add the directory containing `glut.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glut' found
[root@localhost ~]#


PKG_CONFIG_PATH trying to come to grips with this, have no real idea what it is about.

Quote

[root@localhost ~]# locate PKG_CONFIG_PATH
[root@localhost ~]#


pkg-config --help throws no light for me.  
« Last Edit: January 24, 2012, 04:05:53 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: Coding and Scripting > Learning C++
« Reply #47 on: January 23, 2012, 08:54:25 PM »
I've nothing to supplement this topic at the moment. The teacher seemed to have missed my name so I'm gonna have to say, "Present!"  ;D

My favorite, AS ... hash-bang-bin-bash ... well, shell!  ;)
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2444
  • Any Bugs in site?
Re: Coding and Scripting > Learning C++
« Reply #48 on: January 24, 2012, 01:24:01 AM »
Have found the content of PKG_CONFIG_PATH

Quote

[root@localhost ~]# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/kde4/libexec
[root@localhost ~]#


[root@localhost ~]# echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig
[root@localhost ~]#


Looking for glut

Quote

[root@localhost ~]# locate glut
/home/gert/.kde4/share/apps/RecentDocuments/120123-parport_yyao_glut.glk.desktop
/home/gert/xC-programs/120123-c++prog_pralellport/.120123-parport_yyao_glut.glk.kate-swp
/home/gert/xC-programs/120123-c++prog_pralellport/120123-parport_yyao_glut.glk
/usr/lib/libglut.so.3
/usr/lib/libglut.so.3.7.1
/usr/share/doc/libmesaglut3
/usr/share/doc/libmesaglut3/COPYING


Quote

[root@localhost ~]# pkg-config --libs libglut
Package libglut was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglut.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libglut' found
[root@localhost ~]# pkg-config --libs libglut*


Looking for something libglut

Quote

[root@localhost ~]# locate libglut*
[root@localhost ~]#


Should that not have found

Quote

/usr/lib/libglut.so.3
/usr/lib/libglut.so.3.7.1



Quote

[gert@localhost ParallelPortTest]$ pkg-config --version
0.25
[gert@localhost ParallelPortTest]$



Time out for me  :D
« Last Edit: January 24, 2012, 02:56:09 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Coding and Scripting > Learning C++
« Reply #49 on: January 24, 2012, 04:06:00 AM »
[root@localhost ~]# pkg-config --libs glut
Package glut was not found in the pkg-config search path.
Perhaps you should add the directory containing `glut.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glut' found
[root@localhost ~]#

pkg-config --help throws no light for me.  


wedgetail
,

did you installed the library package libmesaglut3-devel-7.11.2-1pclos2011 ?


Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2444
  • Any Bugs in site?
Re: Coding and Scripting > Learning C++
« Reply #50 on: January 24, 2012, 04:15:56 AM »
Why my pkg-config is a bit short on work

http://en.wikipedia.org/wiki/Pkg-config


Quote
When a library is installed (automatically through the use of an RPM, deb, or other binary packaging system or by compiling from the source), a .pc file should be included and placed into a directory with other .pc files (the exact directory is dependent upon your system and outlined in the pkg-config man page). This file has several entries.


Quote

[gert@localhost ParallelPortTest]$ pkg-config --list-all
gtk-engines-2    gtk-engines-2 - GTK+ Theme Engines
ncurses++        ncurses++ - ncurses 5.9 add-on library
menu             menu - ncurses 5.9 add-on library
panel            panel - ncurses 5.9 add-on library
xkeyboard-config XKeyboardConfig - X Keyboard configuration data
xbitmaps         X bitmaps - Bitmaps that are shared between X applications
ncurses          ncurses - ncurses 5.9 library
usbutils         usbutils - USB device database
form             form - ncurses 5.9 add-on library
shared-mime-info shared-mime-info - Freedesktop common MIME database
[gert@localhost ParallelPortTest]$



Now look for the *.pc files

Quote

[root@localhost ~]# locate *.pc
/usr/lib/pkgconfig/form.pc
/usr/lib/pkgconfig/gtk-engines-2.pc
/usr/lib/pkgconfig/menu.pc
/usr/lib/pkgconfig/ncurses++.pc
/usr/lib/pkgconfig/ncurses.pc
/usr/lib/pkgconfig/panel.pc
/usr/share/pkgconfig/shared-mime-info.pc
/usr/share/pkgconfig/usbutils.pc
/usr/share/pkgconfig/xbitmaps.pc
/usr/share/pkgconfig/xkeyboard-config.pc
[root@localhost ~]#



Testing the pkg-config

Quote

[root@localhost ~]# pkg-config --libs ncurses
-lncurses
[root@localhost ~]#



Yep it does work.  Now to track down those pesky .pc files that has decided I was an easy victim   :D :D
« Last Edit: January 24, 2012, 04:25:02 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2444
  • Any Bugs in site?
Re: Coding and Scripting > Learning C++
« Reply #51 on: January 24, 2012, 04:34:54 AM »
as
 ;D yeaahh in my notes.  Seems I forgot to do it via Synaptic.  I did not even get surprised when I did not see

Quote
libmesaglut3-devel-7.11.2-1pclos2011 ?

anything like that doing the locate , how bad can it go.  I was so convinced after having used the devel in fake Makefile.

Jeeves, I hope not many people frequent this corner, this is doing no good for my profile. Anyway I have had some fun forcing myself to actually think.  When the lack of .pc files showed up I was getting a bit concerned.

I have just done the install. Would have shown the commit log but my history does not respond in Synaptic. Better do a reload. I do however have about 100 .pc files now.
« Last Edit: January 24, 2012, 04:01:30 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2444
  • Any Bugs in site?
Re: Coding and Scripting > Learning C++
« Reply #52 on: January 24, 2012, 05:01:44 AM »
as

Quote
[gert@localhost ParallelPortTest]$ pkg-config --libs glut
-lglut -lGLU -lGL
[gert@localhost ParallelPortTest]$


Seems I have caught up a bit.
Having some weird problem with my konsoles/terminal, they will not open from panel. I will have quick re-compile attempt and the n start looking at the terminal problem.  Seems to have started after the re-boot, which did get me the history access back in Synaptic.  :)

Seems my Makefile was already prepared from your earlier suggestion, here is the content again:

Quote
SRC      = ParallelPort.cpp main.cpp
TARGET      = ParallelPortTest
CXX      = g++
CXXFLAGS   = -ansi -Wall
# LIBS      = -lGL -lglut
#gert: trying to make it pclos compatible as per 'as'suggestion
LIBS      = -lglut -lGLU -lGL



all: $(TARGET)

$(TARGET): $(SRC)
   $(CXX) $(CXXFLAGS) $(SRC) $(LIBS) -o $(TARGET)

clean:
   rm -rf $(TARGET)


The main.h where there earlier was some editing has returned to the original too, just checking

Quote
..
..
#include <string.h>
#include <GL/glut.h>

#include "ParallelPort.h"
..
..


The acid test, let it make:

Quote
[gert@localhost ParallelPortTest]$ make
g++ -ansi -Wall ParallelPort.cpp main.cpp -lglut -lGLU -lGL -o ParallelPortTest
[gert@localhost ParallelPortTest]$


The red name will be my exe file, run as ./P.... in terminal

Quote

[gert@localhost ParallelPortTest]$ ./ParallelPortTest
Using /dev/parport0 for session
Unable to open /dev/parport0. Error from operating system is:
Error #13
Permission denied
[gert@localhost ParallelPortTest]$



Heeeeh, I know what that is, should have run as root?:

Quote
[gert@localhost ParallelPortTest]$ su
Password:
[root@localhost ~]#   < ----- now at position: /root



The above confused me a bit, the su knocked me back quite a few branches
Is that normal, I thought that going su errrrh, left you in position in the system tree??.

Quote

[root@localhost ParallelPortTest]# pwd
/home/gert/xC-programs/120123-c++prog_pralellport/yya0-GLUT/ParallelPortTest
[root@localhost ParallelPortTest]#



Ok, one more go at getting up and standing

Quote

[root@localhost ParallelPortTest]# ./ParallelPortTest
Using /dev/parport0 for session
Unable to open /dev/parport0. Error from operating system is:
Error #6
No such device or address
[root@localhost ParallelPortTest]#



Pheew, that is not so easy, thiiiinking????

Quote
[root@localhost ParallelPortTest]# dmesg |grep parp
[root@localhost ParallelPortTest]#


Ouch, that hurts no parport0

Quote

[root@localhost ParallelPortTest]# lsmod |grep parp
parport_pc             28023  0
parport                25179  2 parport_pc,ppdev



What else is that is in the back of my head?  
Last night I think it was I did not have a response to above |grep  I did manual module install with:

Quote

[root@localhost ~]# modprobe parport_pc && modprobe ppdev

[root@localhost ~]# lsmod |grep parp
parport_pc             28023  0
parport                25179  2 ppdev,parport_pc
[root@localhost ~]#



Hmmmmm, what is going on

Quote
[root@localhost Documents]# locate parport
/dev/parport0
/home/gert/.kde4/share/apps/RecentDocuments/120123-parport_yyao_glut.glk.desktop
/home/gert/xC-programs/120123-c++prog_pralellport/.120123-parport_yyao_glut.glk.kate-swp
/home/gert/xC-programs/120123-c++prog_pralellport/120123-parport_yyao_glut.glk
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/parport
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/i2c/busses/i2c-parport-light.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/i2c/busses/i2c-parport.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/parport/parport.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/parport/parport_cs.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/parport/parport_pc.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/parport/parport_serial.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/pps/clients/pps_parport.ko.gz
/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/staging/comedi/drivers/comedi_parport.ko.gz
/lib/udev/devices/parport0
/usr/include/linux/parport.h
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/arch/x86/include/asm/parport.h
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/drivers/parport
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/drivers/parport/Kconfig
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/drivers/parport/Makefile
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/include/asm-generic/parport.h
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/include/linux/parport.h
/usr/src/kernel-devel-2.6.38.8-pclos3.bfs/include/linux/parport_pc.h
[root@localhost Documents]#


Well it seems that parport modules not installed??

I have found a script checking for paralellport

http://umax1220p.sourceforge.net/ppdiag

Looked interesting and I could understand a fair bit and I don't quite agree with it, so I have a problem too late in the day.
I have run the script and get very simple message.

Quote

[root@localhost Documents]# ./ppdiag
S01: no parport module or symbol were found
S01: it is most likely that your kernel does not have any parport support compiled
S01: can't handle this case, exiting ...
[root@localhost Documents]#



Further dissection will have to wait as my head is in turmoil, but by Joe it is fun.   ;D ;D
« Last Edit: January 24, 2012, 06:41:24 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Coding and Scripting > Learning C++
« Reply #53 on: January 24, 2012, 06:06:35 AM »
[root@localhost ParallelPortTest]# ./ParallelPortTest
Using /dev/parport0 for session
Unable to open /dev/parport0. Error from operating system is:
Error #6
No such device or address
[root@localhost ParallelPortTest]#

If the error is correct ... it say "ENXIO        6     No such device or address".
Assuming you have a parallel port on your system, is it enabled in BIOS ?
(I do not have parallel devices anymore, can't test here).

Quote
Pheew, that is not so easy, thiiiinking????

There is to say that you started with a not really simple task, not really a task for beginner, but I see you are having fun!  :D ;D

AS

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2444
  • Any Bugs in site?
Re: Coding and Scripting > Learning C++
« Reply #54 on: January 24, 2012, 06:48:00 AM »
as
I will call that two very good points.   ;D  Now I have to just check BIOS

Hmmm, I think there is something wrong here no reaction to printers in PCC.

Parport turned off in BIOS ok,  you must be psychic  ;D ;D well done. Not showing up in dmesg should have set the alarm bells off so much I could not work the keyboard.

Note: I need to check /etc/modprobe.conf  again now it is running.

Quote

[root@localhost ParallelPortTest]# dmesg |grep parport
parport_pc 00:06: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP]
[root@localhost ParallelPortTest]#


I think I should look into this script a bit more, though I guess the message it gave was correct, leave it for the time being.

Quote

[root@localhost Documents]# ./ppdiag
S01: parport built as module

S02: parport0:
S02:    modes:PCSPP
S02:    ADDR :0x378
S02:    IRQ  :7
S02:    DMA  :no DMA used

S03: no parport parameters

S10: ppdev built as module

S12: /dev/parport0 exists ...
S12: /dev/parport0 is readable ...
S12: /dev/parport0 is writable ...

successfull end ....

[root@localhost Documents]#


Well well perhaps there is still hope for my aspirations to become c++ programmer  ;D  a slow one mind you
Ok another stab at running the ParallelPortTest

Quote

[root@localhost ParallelPortTest]# ./ParallelPortTest
Using /dev/parport0 for session
....

I now have the Window showing the sketch of the program but no reponse to the keys that should control the toggling of the "Lights".
When I use keys 0..3 for example the characters show up on the cli for the session.  This I find a bit unexpected I would assume that the keyboard was monopolised by the Window program.

Now it is getting tough, don't leave me   :'( but I am off to ZZzzz...  What fun so many years since las.. zzzzz....

Just a bit of wakeup.  Not sure what is going on but I cloded a couple of konsoles and for the 3rd time moved the mouse into the picture and then started pushing keys and lots seem to work.  :D :D :D :D :D

« Last Edit: January 24, 2012, 07:28:28 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11591
  • ----IOFLU----
Re: Coding and Scripting > Learning C++
« Reply #55 on: January 24, 2012, 07:27:07 AM »


The main.h where there earlier was some editing has returned to the original too, just checking

Quote
..
..
#include <string.h>
#include <GL/glut.h>

#include "ParallelPort.h"
..
..



It seems you didn't pay attention to as' earlier reply;

#include "ParallelPort.h"

should be;

#include <ParallelPort.h>
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2444
  • Any Bugs in site?
Re: Coding and Scripting > Learning C++
« Reply #56 on: January 24, 2012, 07:34:25 AM »
old-polack
I am almost gone. You are right the number of dumb things I have done today when I have all the facts has been dispiriting. Perhaps I can beat the score tomorrow  ;D

The include you mention needs more looking at, but at the moment it is left as original, why the ParalellPort.h is not in < > intrigues me but it works with the " " I do however no nothing about the use of those in C/C++   :)  ZZZ...zzz
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Coding and Scripting > Learning C++
« Reply #57 on: January 24, 2012, 07:52:24 AM »


The main.h where there earlier was some editing has returned to the original too, just checking

Quote
..
..
#include <string.h>
#include <GL/glut.h>

#include "ParallelPort.h"
..
..



It seems you didn't pay attention to as' earlier reply;

#include "ParallelPort.h"

should be;

#include <ParallelPort.h>

Hmm ... let aside the "attention"  :D :D

Actually the code looks good, as I believe that the file ParallelPort.h is a file specific to the program wedgetail is trying to build.

The difference from angle brackets and double quotes, is that the first will direct the compiler to search the header file only in "system directories" (i.e. /usr/include), additionally on directories specified on gcc command line by means of -I option.

The double quotes instead, direct gcc (cpp preprocessor really) to search the file in the current directory. The notion of current is relative to the file where the include directive is in, in this case main.h.

AS

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11591
  • ----IOFLU----
Re: Coding and Scripting > Learning C++
« Reply #58 on: January 24, 2012, 08:03:56 AM »
as:

Hah! That will teach me not to assume that you had checked the system includes, before making that suggestion, and not checking myself, before posting.  ;D ;D ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Coding and Scripting > Learning C++
« Reply #59 on: January 24, 2012, 08:19:07 AM »
as:

Hah! That will teach me not to assume that you had checked the system includes, before making that suggestion, and not checking myself, before posting.  ;D ;D ;D


I remember very well the lot of errors I have done myself while trying to learn C programming ... painful times  :D ;D
There was no google around ...  nor forum help.  :( But I have had the "bible" (first edition):
http://www.amazon.com/Programming-Language-2nd-Brian-Kernighan/dp/0131103628   ;)