c++

Any other programming language that is not covered in the Web Scripting category.

c++

Postby lecter on Sat Feb 25, 2006 4:17 pm

hi, im looking for some c++ language tutorials for study. and what compilator is good for newbies like me?

thx for answers
lecter
Newbie
Newbie
 
Posts: 5
Joined: Sun Apr 10, 2005 9:35 pm

Postby Bugs42 on Sun Feb 26, 2006 5:37 am

If you need tutorials, Google is your friend. Here's one, but there's many others: http://www.cplusplus.com/doc/tutorial/


As for compiler, Dev-C++ is great. http://www.bloodshed.net/devcpp.html
Sufficiently advanced technology is indistinguishable from magic.
Bugs42
Valued Member
Valued Member
 
Posts: 189
Joined: Sat Dec 03, 2005 6:48 pm

Postby PP06 on Sun Feb 26, 2006 4:17 pm

I have learned it in Borland C++ 5.0 but I think that programming on UNIX-like systems (at home or remote mashine) is free and more sofisticated.
I use it this way:

i make script for running my source (if compiling my source runned successful):
$ echo "#! /bin/bash">run
$ echo "gcc ./new.c && ./a.out">>run

$ vim new.c
i (...writing code...) esc
:w
:!run

Hints:
-gcc is UNIX C++ compiler
-it's good idea to have . in your PATH variable (if not, then write: $ export PATH=$PATH:. )

good luck! Cool
PP06
Newbie
Newbie
 
Posts: 6
Joined: Sun Feb 26, 2006 1:46 pm

C#

Postby KriZstan on Mon Mar 27, 2006 7:10 pm

whats with this C# stuff? like C++++ and the # has the 4 +'s so # is the short cut?
Thanks,

KriZstan Z. Star
KriZstan
Newbie
Newbie
 
Posts: 16
Joined: Mon Mar 27, 2006 6:18 pm
Location: Augusta, GA USA

Re: C#

Postby Bugs42 on Tue Mar 28, 2006 6:13 am

KriZstan wrote:whats with this C# stuff? like C++++ and the # has the 4 +'s so # is the short cut?

C# (pronounced "See sharp") is Microsoft's response to Java and a part of their .Net framework.
Sufficiently advanced technology is indistinguishable from magic.
Bugs42
Valued Member
Valued Member
 
Posts: 189
Joined: Sat Dec 03, 2005 6:48 pm

Postby reikor0x on Tue Mar 28, 2006 9:13 am

Under Linux you can compile C++ source with g++ compiler.
C# it's only for Microsoft.

g++ is like gcc

Usage :
gcc input.c -o output (-I for include directory)
reikor0x
Newbie
Newbie
 
Posts: 15
Joined: Mon Mar 27, 2006 11:18 am
Location: italy milano

Postby rgos on Wed Mar 29, 2006 1:57 pm

code::blocks http://www.codeblocks.org/downloads.shtml
A very nice ide and it has a download bundled with mingw compiler (windows)
http://jcatki.no-ip.org/fncpp/Resources
some c++ related resources
and if you want to buy a really good book try
"the c++ programming language" by stroustrup
rgos
Newbie
Newbie
 
Posts: 13
Joined: Sat Mar 18, 2006 9:54 am

Re: C#

Postby bluebell on Wed Mar 29, 2006 2:18 pm

KriZstan wrote:whats with this C# stuff? like C++++ and the # has the 4 +'s so # is the short cut?


C# is a lot like java. Though the semantics might be similiar the syntax is quite different and also underlying framework for .net is also much different.

C# also can be compiled under *nix systems using Mono.
http://www.mono-project.com
bluebell
Contributer
Contributer
 
Posts: 31
Joined: Wed Mar 29, 2006 2:38 am

Re: C#

Postby mobes on Fri Mar 31, 2006 6:49 am

Learning a language syntax is imporant and all but a real understanding about the general workings of programming in general is crucial (methods/structures, arrays, loops, recursion...).
mobes
Newbie
Newbie
 
Posts: 16
Joined: Fri Mar 31, 2006 5:53 am

Heres a link.

Postby AmadeusV on Sun Apr 02, 2006 3:37 am

Hi, heres a link that contains allot of usefull tutorials.

http://www.oopweb.com/CPP/Files/CPP.html
AmadeusV
Newbie
Newbie
 
Posts: 15
Joined: Mon Mar 20, 2006 5:24 am

Postby cons00m on Sun Apr 02, 2006 9:00 pm

cons00m
Contributer
Contributer
 
Posts: 34
Joined: Thu Mar 23, 2006 12:36 am

Postby ravenhair on Mon Apr 03, 2006 1:24 pm

PP06 wrote:-it's good idea to have . in your PATH variable (if not, then write: $ export PATH=$PATH:. )


It's nice but a huge security hole. You could accidentaly leave an executable in the wrong place or someone can leave one where you might execute it. imagine a program named ls that deleted everything.

Just keep the danger in mind.
ravenhair
Regular
Regular
 
Posts: 80
Joined: Tue Nov 08, 2005 5:51 pm

Postby arn0ld on Tue Apr 04, 2006 10:54 am

wanna know c++? i would like to recommend this book Problem Solving w/ C++ by Walter Savitch.. and the compiler to use is the dev c++.. hope it can help you.. Smile
arn0ld
Regular
Regular
 
Posts: 110
Joined: Fri Mar 31, 2006 7:09 pm
Location: Las Phelippinas

Postby noizy on Fri Apr 21, 2006 11:02 pm

Code: Select all
#include<stdio.h>
#include<conio.h>


void main ()
    {
    clrscr();
      double x,wrk,total,totalovr;
      int z;

      printf("Enter Employer Class 1,2 or 3:  ");
      scanf("%d",&z);

      printf("Enter Work Hours: ");
      scanf("%lf",&wrk);

       if((z==1) || (z==2) && (wrk<=40))
       {
       total=wrk*20;
       printf("Your Total Salary is: P%lf",total);
         }
         else if((z==3) && (wrk>=41))
         {
         totalovr=((wrk-40)*35.50)+(40*20);
         printf("You Total Salary W/Overtime is: P%lf",totalovr);
         }
   getch();


    }
Smile
noizy
Contributer
Contributer
 
Posts: 48
Joined: Mon Apr 17, 2006 11:06 pm
Location: philippines

Postby noizy on Fri Apr 21, 2006 11:06 pm

Code: Select all
#include<stdio.h>
#include<conio.h>
   void main()
   {
   clrscr();   //clearscreen
   int id,uni;

   //ID
   printf("With ID Enter 1,Without ID Enter 0: ");
   scanf("%d",&id);                    //input

   //Uniform
   printf("With Uni Enter1,Without Uni Enter 0: ");
   scanf("%d",&uni);       //input

   if(id==1)  //decision
      printf(" With ID and Uniform");    //print output
   else
    if(uni==0)     //another decision
      printf("Without ID and W/out Uniform");    //print output
    else
      printf("W/out or W/ ID and W/out or W/ Uniform");     //print output

   getch();
   }


try this it can help you...
Smile
noizy
Contributer
Contributer
 
Posts: 48
Joined: Mon Apr 17, 2006 11:06 pm
Location: philippines

Next

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron