Coreper Posted January 11, 2007 Report Share Posted January 11, 2007 thanks!btw: did you understand them? [or: are you dutch?] Quote Link to comment Share on other sites More sharing options...
cozofdeath Posted January 11, 2007 Author Report Share Posted January 11, 2007 No I couldn't understand them, but I could definitely tell the difference between you code and language. I have a lot of dutch in my background, unfortunately I never took the time to learn the language. I wish I did though. There was actually so many settlers that came over here we have our own dialect of dutch/german called Pennsylvania dutch. Where abouts are you from? Quote Link to comment Share on other sites More sharing options...
Coreper Posted January 12, 2007 Report Share Posted January 12, 2007 im from the Netherlands, as you can see in my profile :Di live in a [stupid/boring] small village: Udenkinda cool that you have a small dutch backgroundcan you show me some of your Pennsylvania dutch? Quote Link to comment Share on other sites More sharing options...
cozofdeath Posted January 12, 2007 Author Report Share Posted January 12, 2007 I don't speak it. A few people here still do though. I really don't know much about it. Theres a lot of info on it on google. Quote Link to comment Share on other sites More sharing options...
Alexis Blaze Posted January 15, 2007 Report Share Posted January 15, 2007 hello all... it so nice to see such enthusiastic people here...I'm a computer science student and my primary programming language is (Native) C++... I really love it.. Been using it for 3,5 years now... If i may give some opinion.. there are some thing that you need to learn before C++...1. try to learn basic C, some algorithm and data structure, before you move forward to the more advance C++, or you will be confuse with it... Like some of the source code i see here, i can't say that it is C++..2. don't use any of those given function/methods in C/C++ if you don't really understand what's going on in the function.. once you made a big software, you'll understand why...3. learn about Object Oriented Programming Concept (like class, attributes, methods, inheritence, polymorphism, etc...), because C++ is an OOP language... It can be used with structural paradigm only to support backward compatiblity... C++ is not C++ without object...There are a lot of good programming books out there, like "Introduction To Algorithm" by Steven Skiena (well all of his books actually.. lol) and "C++ The Complete Reference" by Herbert Schildt...If you all REALLY interested in being an expert in programming, visit the programming contest website like ACM, and TopCoder... Join their forum and try to solve lots of problem there...Have fun in learning! and welcome to the club! Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted January 19, 2007 Report Share Posted January 19, 2007 Thanks - good post and good advice! Quote Link to comment Share on other sites More sharing options...
cozofdeath Posted January 20, 2007 Author Report Share Posted January 20, 2007 Yes, good post. The sites look very interesting! Thanks Quote Link to comment Share on other sites More sharing options...
Coreper Posted January 24, 2007 Report Share Posted January 24, 2007 i might have a challenge for you:im making a toolbar, and i would like to see if this is possible:make a C++ script which reads text from a website page [in my case: http://www.udenscollege.nl/intranet/Leerlingen/monitor1.htm and http://www.udenscollege.nl/intranet/Leerlingen/monitor2.htm, so that will be 2 scripts] and displays it afterwards in a ticker [for a toolbar: it displays text, which slides to the left]this is possible, because ive searched it on google, BUT most of the search results came onto a main page of a website [no scripts there...]so maybe you guys could do this [but if you find something for this on google, its good too!]here is the script which is automattically used, but only displays text YOU put in the lineyou must enter text at the: Enter your ticker message here, part<html><body><script>//Specify the Ticker content//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):var marqueecontent = ' Enter your ticker message here. You can add <a href="http://www.effectivebrand.com">links</a> and any other <b>HTML</b>...'//Specify the ticker speed (larger is faster 1-10)var marqueespeed=1//Pause ticker onMousever (0=no. 1=yes)?var pauseit=1//configure background color:var marqueebgcolor="threedface"//Specify the ticker heightvar marqueeheight="20px"////NO NEED TO EDIT BELOW THIS LINE//////////////(don't delete <nobr> tag)marqueecontent = '<nobr><font face="Arial">'+marqueecontent+'</font></nobr>';marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NSvar marqueewidth=document.body.clientWidth;//added by Guyvar copyspeed=marqueespeedvar pausespeed=(pauseit==0)? copyspeed: 0var iedom=document.all||document.getElementByIdif (iedom)document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')var actualwidth=''var cross_marquee, ns_marqueefunction populate(){if (iedom){cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarqueecross_marquee.style.left=parseInt(marqueewidth)+8+"px"cross_marquee.innerHTML=marqueecontentactualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth}else if (document.layers){ns_marquee=document.ns_marquee.document.ns_marquee2ns_marquee.left=parseInt(marqueewidth)+8ns_marquee.document.write(marqueecontent)ns_marquee.document.close()actualwidth=ns_marquee.document.width}lefttime=setInterval("scrollmarquee()",20)}window.onload=populatefunction scrollmarquee(){if (iedom){if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"elsecross_marquee.style.left=parseInt(marqueewidth)+8+"px"}else if (document.layers){if (ns_marquee.left>(actualwidth*(-1)+8))ns_marquee.left-=copyspeedelsens_marquee.left=parseInt(marqueewidth)+8}}if (iedom||document.layers){with (document){document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')if (iedom){write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>')write('</div></div>')}else if (document.layers){write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')write('</ilayer>')}document.write('</td></table>')}}</script><style type= "text/css"><!--BODY {margin-left:0; margin-right:0; margin-top:0; margin-bottom:0;width:100%;height:100%;overflow:hidden;background-color:threedface;}--></style></body>something which also is an option, is to make these pages RSS feeds, so the toolbar can open them and display the text in the toolbar Quote Link to comment Share on other sites More sharing options...
cozofdeath Posted January 28, 2007 Author Report Share Posted January 28, 2007 No, sorry Coreper. I'm still in the newb c++ stage. Moving into the windows environment is a completely different thing. Command prompt applications are hard enough already. Sorry man I wish I could. Quote Link to comment Share on other sites More sharing options...
Coreper Posted January 28, 2007 Report Share Posted January 28, 2007 ok, doesnt matteranother thing:i'm finally learning Pascal now [at school] and its suprisingly easy! probably because it looks much like the NQC and the TI-83/84 Programming language Quote Link to comment Share on other sites More sharing options...
cozofdeath Posted February 1, 2007 Author Report Share Posted February 1, 2007 Sounds interesting. I've been getting myself into a little php. Its taking the buzz away from c++ for the moment. Post how Pascal goes. Maybe even post a simple Hello World example so I can see how the syntax looks. Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted February 2, 2007 Report Share Posted February 2, 2007 I loved Pascal very much, but it is a disappearing language. (Except for Borland Delphi, which I hate!) Quote Link to comment Share on other sites More sharing options...
Coreper Posted February 2, 2007 Report Share Posted February 2, 2007 i know, you can do more with C++, but Pascal is great to learnthis is kindy funny, 'cause the Pascal programming language looks really like the TI-83/84 programming language, that comes in really fine, 'cause then i can see connections and problems faster [sorry for the bumpy english]here are 4 programmes ive written: [ive translated them into english]This program will multiply 2 numbers <> this is my first programPROGRAM NumberMultiply;VAR getal1, getal2: integer;BEGIN write('Give a number'); readln(getal1); write('Give another number'); readln(getal2); writeln(getal1,'*',getal2,'=',getal1 * getal2); readlnEND.This program will tell you when the Eastersunday is, after you have given a certain year. <> this is my second programPROGRAM Eastercalculation;VAR jaartal, a,b,c,d,e,f:integer;BEGIN write('Which year?'); readln(jaartal); a:= jaartal MOD 19; b:= jaartal MOD 4; c:= jaartal MOD 7; d:= (19*a+24) MOD 30; e:= (5+2*b+4*c+6*d) MOD 7; f:= d+e-9; IF f <= 0 THEN writeln('Eastersunday is on ',f+31,' march') ELSE IF f = 26 THEN writeln(''Eastersunday is on 19 april') ELSE IF (f = 25) AND (d = 28) THEN writeln('Eastersunday is on 18 april') ELSE writeln('Eastersunday is on ',f,' april'); readlnEND.this program calculates how you can pay a amount of money [in cents] the best [with the lowest amount of coins] <> this is my third program, im really proud of this onePROGRAM Money;VAR a1,a2,b1,b2,c1,c2,d1,d2,e1,e2,f1,f2,bedrag:integer;BEGIN write('What is your total amount of money?(in cents)'); readln(bedrag); writeln('You need (in coins):'); a1 := bedrag DIV 50; a2 := bedrag MOD 50; writeln(' ',a1, ' times 50 cent'); b1 := a2 DIV 20; b2 := a2 MOD 20; writeln(' ',b1, ' times 20 cent'); c1 := b2 DIV 10; c2 := b2 MOD 10; writeln(' ',c1, ' times 10 cent'); d1 := c2 DIV 5; d2 := c2 MOD 5; writeln(' ',d1, ' times 5 cent'); e1 := d2 DIV 2; e2 := d2 MOD 2; writeln(' ',e1, ' times 2 cent'); f1 := e2 DIV 1; f2 := e2 MOD 1; writeln(' ',f1, ' times 1 cent'); readln;END.This program will tell you if the year you entered is a leap-year <> this is my last and fourth programPROGRAM LeapYear;VAR jaar,a,b: integer;BEGINwriteln('Which year?');readln(jaar);IF (jaar MOD 4 <> 0) THEN writeln('It is no leap year.')ELSEIF (jaar DIV 100 <> 0) AND (jaar MOD 4 = 0) THEN writeln('It is a leap year.');readlnEND.you can run these files by saving them as a .PAS file and opening them with TurboPascal [i uploaded it here] Quote Link to comment Share on other sites More sharing options...
cozofdeath Posted February 5, 2007 Author Report Share Posted February 5, 2007 Very interesting. Looks a little like C but not. Thanks for taking the time to translate. All of the programs worked. There was one tiny thing in the second program in this line... IF f = 26 THEN writeln(''Eastersunday is on 19 april')But after changing the '' to ' it worked. It seems to be a cool language to learn. Quote Link to comment Share on other sites More sharing options...
Coreper Posted March 19, 2007 Report Share Posted March 19, 2007 does anyone else got some news?i would like to keep this topic alive...btw: cozofdeath, your forum has been offline for a long while now... {you did that on purpose didnt you?}btw: ive got some neat Pascal programsill post them as soon as i can get them from school to here. Quote Link to comment Share on other sites More sharing options...
cozofdeath Posted March 19, 2007 Author Report Share Posted March 19, 2007 does anyone else got some news?Noi would like to keep this topic alive...Same here.btw: cozofdeath, your forum has been offline for a long while now... {you did that on purpose didnt you?}Yeah its been gone for a while now. I actually reformatted and reinstalled and left out the forum. btw: ive got some neat Pascal programsill post them as soon as i can get them from school to here.Awesome.I really only come to this forum so it would be cool to keep something like this going even if no one really has anything to say about a post right away maybe someone will later on. I think it makes you want to keep working at it because usually I only learn something till I get bored of it then I stop. So its nice to post something you've done or learned then you can look back at it and really see the progress your making. Whether its about C, pascal, php, etc. Quote Link to comment Share on other sites More sharing options...
jason.b.c Posted March 20, 2007 Report Share Posted March 20, 2007 Oh wow , i had almost forgotten about this...Coz , Coreper...Hello...., Maybe for a new project , one of you could try to re-write the code for this thing so it can work in windows..?http://www.h-renrew.de/h/avrterminal/avrterminal.htmlavrterminal.tar.gzIt would be neat to see that... Quote Link to comment Share on other sites More sharing options...
Coreper Posted March 20, 2007 Report Share Posted March 20, 2007 ive been wondering about that Linux >to> Windows coding too, but it is too complicated for me...i just did a quick search on that and found this: ZipZag, PicoZIP and AlphaZIPlet me know if that works somehow...i also read something about .rpm files > you can convert .tar.gz to .rpm, but can windows handle them?i'm gonna take some pictures of our finishes robot [finished a long while ago...]we were asked to use it on the open day of our school: we made it all the way to the newspapers >> more here [watch out: its dutch]; im on this picture [in the striped sweater], but the picture is really weird: my head looks stretched!, and you cant see our robot properlywhen i will take the pictures, i will take some pictures of the other robot too...ill show the programs we used then, too Quote Link to comment Share on other sites More sharing options...
Coreper Posted March 22, 2007 Report Share Posted March 22, 2007 i wanted to take the pictures yesterday, but i found out that they already destroyed our robotmayeb i can find some pictures of it on our school site Quote Link to comment Share on other sites More sharing options...
cozofdeath Posted March 22, 2007 Author Report Share Posted March 22, 2007 Hello...., Maybe for a new project , one of you could try to re-write the code for this thing so it can work in windows..?I'll give it a shot but I really chances are low that I can do it. I haven't been playing with C for a while. i wanted to take the pictures yesterday, but i found out that they already destroyed our robotmayeb i can find some pictures of it on our school siteThat sucks. Are you still learning pascal? Quote Link to comment Share on other sites More sharing options...
Coreper Posted March 23, 2007 Report Share Posted March 23, 2007 it sucks indeedand yes: im still learning pascal: after i finish my school work [i must make a PPpresentation] i will post my most recent programssome of them are really nice! Quote Link to comment Share on other sites More sharing options...
Coreper Posted March 24, 2007 Report Share Posted March 24, 2007 i finished my presentation earlier yesterday, but then this great movie [i-Robot] was on tv, so i had to see iti attached all the programs i have ever made, in a .zip file, in the .PAS format and as executables [so you dont need Turbo Pascal to run them]Short descriptions:BANK: calculates your money on the bank, with a certain amound of interest, after a certain periodBIGNUMBE: calculates the biggest number, of the 3 you enteredCOINS: calculates how to pay a certain amount of money with the lowest amount of coinsCOUNT: you give a number, this program counts towards that numberDIE1: the computer simulates the throw of a die, and shows the results of the times a number has been thrownDIE2: the computer simulates the throw of 2 dies, and shows the results: the times a number has been thrown and the number the thrown numbers make after adding them all upEASTER1: calculates the eastersunday of a certain yearEASTER2: calculates the eastersundays of a certain period of yearsFACTORI: calculates the factorial of a certain numberGUESS1: you need to guess a number under the hunderd, using the WHILE command. the computer tells you if you need a bigger or smaller numberGUESS2: you need to guess a number under the hunderd, using the REPEAT-UNTIL command. the computer tells you if you need a bigger or smaller numberGUESSGAME: you need to guess a number under the hunderd, within 20 turns, the computer tells you if you need a bigger or smaller numberLEAPYEAR: calculates if a certain year is a leapyearMULTIPLY: multiplies 2 numbersNNUMBER1: displayes a row of systematic numbers [all from a certain number] > this is the not-properly coded versionNNUMBER2: displayes a row of systematic numbers [all from a certain number] > this is the properly coded versionRABBITS: calculates the amound of rabbits after a certain amound of monthsTAX1: calculates the price including taxes, after you give a price without taxesTAX2: calculates the price without taxes, after you give a price including taxesWAIT1: calculates how many turns are needed to throw a 6 with a dieWAIT2: calculates the average amound of turns needed to throw a 6 with a dieWAIT3: calculates the average and highest amound of turns needed to throw a 6 with a dieWEIGHT: calculates the price you have to pay to post your lettermy most recent programs are: DIE1, DIE2, GUESS1, GUESS2, GUESSGAME, RABBITS, TAX1, TAX2, WAIT1, WAIT2, WAIT3i like GUESSGAME the best Quote Link to comment Share on other sites More sharing options...
cozofdeath Posted March 25, 2007 Author Report Share Posted March 25, 2007 i finished my presentation earlier yesterday, but then this great movie [i-Robot] was on tv, so i had to see it :lol: I-Robot is good.OMG man! Thats a lot of programs. I would post some php but I haven't been making it into executables just scripts. But hopefully soon I will be able to make some nice Windows apps with it. Quote Link to comment Share on other sites More sharing options...
Coreper Posted June 15, 2007 Report Share Posted June 15, 2007 any progress or news?dont let this topic die! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.