Friday, July 31, 2009

Hi every o one learning c++ anyone got some help you know tutorials for begginers?

also howdo i wite a simple graphics porgram you know like paint only easier

Hi every o one learning c++ anyone got some help you know tutorials for begginers?
google it. We had to find out a bit about each of the languages our software development course can cover(we only do one throughly) and c++ was one so we hit google and its amazing how much things cann be simpliefed
Reply:If you are just starting to learn programming, there is no such thing as writing a simple graphics program, ya know, like paint.


W3schools has lots of tutorials and they are interactive. But I dont remember if C++ is there.


Does anyone have a free downlad link for a C++ Compiler and do you have any books to recommend for tutorials?

I'm looking to learn how to write in C++ programming language.

Does anyone have a free downlad link for a C++ Compiler and do you have any books to recommend for tutorials?
Tons of them.


http://www.programmersheaven.com/


http://www.cyberdiem.com/vin/tutorials.h...


http://www.faqs.org/docs/Linux-HOWTO/C++...


http://oopweb.com/CPP/Documents/CPPHOWTO...


http://s14.invisionfree.com/Ruby_R_US/ar...


Get Ruby.


http://www.ruby-lang.org/en/


It is thinking/human C


Two different HELLO WORLD programs in c++ what's the difference?

The code doesn't seem to display right in Yahoo Answers so I will just post the link to the site I asked this question on. The link takes you directly to the comment I made, which is by the username Wesley. (Random name I thought of)





http://www.learncpp.com/cpp-tutorial/06-...





You can respond to the comment on the site or directly here in Yahoo Answers.





Reason for asking:





The C++ book I ended up buying shows the code like that and also other codes. Instead of what I'm used to.. cout %26lt;%26lt; "Hello world"





it's some other ****.

Two different HELLO WORLD programs in c++ what's the difference?
The true beauty of computer programming is that there are many ways of providing a valid solution. The difference you are seeing is with the standard namespace.





Namespaces allow you to give a "possession" to written code. For instance, if you write a function and Chuck Norris writes a function, you can each put it in your own namespace. Say if Norris wants to use your function, he will include your namespace, so when he's using it, he will know to whom the code belongs. It is used often in work environments.





In C++, you can use the standard namespace by writing the statement





using namespace std;





or you can use std:: with each statement that is part of the namespace. As you will see in programming with the standard namespace, it is good practice to use the single line above your main program. Try out each way and get accustomed to different code, because as you will see, everyone writes their code differently.
Reply:if you pick the "namespace std" then you don't put std in it.





cout %26lt;%26lt; "Hello World!n"; //don't put std if you use namespace std (that is standard namespace.)





Howerver if you not pick a "namespace std" then put std in it. such as:





std::cout %26lt;%26lt; "Hello World!n"; // you must put std if don't pick namespace std;
Reply:Many functions and objects in C++ are standard and are contained in the standard library. Neither example is wrong. To help clarify your confusion, you should look up namespaces and the using statement, as well as the scope resolution operator ::. This is probably beyond your understanding, but cout is an ostream object. At this point, don't be too concerned about that, but think of it like a variable that is declared. Now, say by accident you made a variable called cout (eg. int cout;). How would the compiler know which cout that you are referring to? Well, through the use of namespaces, one can put all their created objects and variables in a namespace. cout happens to reside in a namespace called 'std', which is short for standard. 'endl' is also in there. The proper way to use a namespace is to put the namespace, followed by the scope resolution operator ::, then the name of the object (eg. std::cout, std::cin, std::endl). However, this can beome cumbersome in a large program. The way to save some typing is with the using statement. There are a few ways to use this statement. One can use it locally in a function or globally. Many people will use the std namespace globally, so at the top of their program after the includes, you will see " using namespace std;" This means anything in that namespace, you will not need to put std:: infront of it, though you still can.


So you can do helloworld either way:


using namespace std;


int main()


{


cout %26lt;%26lt; "Hello World!" %26lt;%26lt; endl;


// you can still even do std::cout with


// the using namespace std; statement


return 0;


}





or


int main()


{


std::cout %26lt;%26lt; "Hello World!" %26lt;%26lt; std::endl;


return 0;


}

florist shop

I am a beginner who has the basic nack of programming in C,I want to learn Adobe CS 3 to build websites ??

I want to build a highly interactive website , and I searched for the Proffessional web building tools on the net and came across Adobe Creative Suite 3 Web Premium, but the problem is I just have a little knowledge on web building and a little programming experience in C and Java (Core) .So I wish to know that where would I find a good from scratch tutorial , that would teach me using the above product preferably a Video tutorial, also tell me that is it possible for me to learn it or I would have to learn other things first in order to learn the adobe CS3 ???


Thankyou !!!!!

I am a beginner who has the basic nack of programming in C,I want to learn Adobe CS 3 to build websites ??
First thing Adobe CS3 is not web development program its an image manipulation s/w and I'll be extremely useful while development. Second U've to learn web languages to make website u want. These are HTML, ASP, DHTML, CSS, "JAVASCRIPT", XML, AJAX[JS + XML]. Flash, Photoshop.





C has no use here, but y! JAVA is good choice, I'll be helpful in creating Java Applet applications.





First go for Photoshop play with tools and filters here, don't try to create anything... i mean to say JUST Play n enjoy painting.. After become familier with Some of tools, start using extra features.


Tip:: Java has a hard competitor Adobe Flash. This s/w is miracle and changed many websites future. Java respond some slowly 'coz of its well known BEST Feature which u hear everytime.... Plateform... :)





Go for Languages i told u above, then Photoshop and Flash.. And and Learn JScript as much u can. It's the only language u 'll use to build Interactive website [except if u r not using Flash].





Here is one s/w also Adobe Dreamweaver, specially for website developemnt, which is for those who don't know or don't want to learn languages. ;)





http://www.w3schools.com


Gud Luck n


Have a nice Coding. :)
Reply:Hello pankitdhawan,





You mean Adobe DreamWeaver. You don't really need to get the whole suite of CS3 programs. Adobe publishes "Classroom in a Book" for DreamWeaver, that could be of great help to you. Start there.





Best of luck to you.





--Rick


Can anyone with programming, specifically C++, experience help me? (little needed) What's wrong in this script

http://i218.photobucket.com/albums/cc99/...





Using Dev-C++





I switched to system pause again, though that's not the problem. Please answer here or email me to help me. The tutorial I used - http://www.youtube.com/watch?v=nziy2_U5J...





My Script:





#include%26lt;iostream%26gt;


using namespace std;





int main(void)


(





double dnumber1 = 0.0;


double dnumber2 = 0.0;


double dnumber3 = 0.0;


double daverage = 0.0;





cout %26lt;%26lt; "please enter 3 numbers... " %26lt;%26lt; endl;





cin %26gt;%26gt; dnumber1;


cin %26gt;%26gt; dnumber2;


cin %26gt;%26gt; dnumber3;





daverage= (dnumber1 + dnumber2 + dnumber3) / 3;





cout %26lt;%26lt; "The average of the numbers are... " %26lt;%26lt; daverage %26lt;%26lt;endl %26lt;%26lt; endl;





system("pause");


return 0;





)

Can anyone with programming, specifically C++, experience help me? (little needed) What's wrong in this script
int main(void)


( %26lt;===== problem





That parenthesis needs to be changed to a "{" instead


....called a "left curly brace" .... it is next to the "P" key





Change the parenthesis at the bottom of your code too.


Learning C#?

Hi! everybody,


I am new to programming and need to learn C#. I want to be able to program using C#. Can any body provide me with any tutorials, links names of books to be able to start with C#.


Thx

Learning C#?
i started learning C# through this web site:





http://functionx.com/csharp/index.htm





it has real-application examples too...





you may also want to purchase the book C# Complete
Reply:Visual C# 2005 Step by Step - Microsoft Press





I found it very good for beginners.


Learning C#?

Hi! everybody,


I am new to programming and need to learn C#. I want to be able to program using C#. Can any body provide me with any tutorials, links names of books to be able to start with C#.


Thx

Learning C#?
C Programming for DUMMIES


C++ for DUMMIES
Reply:If you are new to programming, then first go and learn c, c++ which would be very much helpful in understanding the basics.... rest is your choice...








search out at google.com for c# tutorials and you will find millions of stuffs....

sympathy flowers

How toy run NS2,C++ and TCL language?

hi,


how can i run the defult example source code such as AODV routhing protocol in NS2,i am very new in NS2,i try to use tutorial website,but there is no mention about how to run the NS2 defults??


..one more quesiton is if i modify some sourcode do i need to modify C++ source code plus TCL(or even OTCL) or just one of them is enough??


thank you,


please let me know your email address or next contact.


thank you in advacne


regards

How toy run NS2,C++ and TCL language?
I don't think that c++ can be modified


I'm looking for information on analyzing a/c compressors for semi's trucks and or large engines.?

Analyzing as far as failures drivers have on the road with a/c clutch and compressor combos.


If anyone has info as far as industry trades,books,tutorial dvd,weblinks,schools that could help me and or correspond emails with me it would be greatly appreciated.

I'm looking for information on analyzing a/c compressors for semi's trucks and or large engines.?
Do a web search for "TMC" or The Maintenance Council. This is an arm of the American Trucking Association. They are the ones who do the research and recommend standard practices for maintenance and repairs.
Reply:If there is a failure with a compressor, there is not much to diagnose, replace it and be sure of correct amount of oil and correct pressures.Also if a compressor fails, the condensor must be flushed and replace the reciever/drier. I'm not sure if you can get the brand of compressor and go to a web site that will help you. Automotive and tractor and semi-tractors have the same A/C system. They only have more or less freon in them.
Reply:The A/C compressors on big trucks will soon be a thing of the past they are working on a new system that info can`t be revealed due out in a few years. compressors will be a thing of the past


What should i do next in c++??? + MATLAB software.?

I have taken only one course of c++ at college (engineering). We learned about: scan, print,loops, conditions,functions, macros,recursive functions,switch functions,pointers, 1d %26amp; 2d arrays,structures,a very short lecture about strings . Now , at summer time, i want to learn additional things about c++. Can anybody tell me what to do? please give me the link to it. consider that i am interested in topics involving numbers and calculations and not words and characters.


An additional question: I have found a tutorial of MATLAB linked to wikipedia, but i don't know where to get a free download to a matlab software.

What should i do next in c++??? + MATLAB software.?
Writing games is a very good option you can consider if you think you can do well in math.You can start with Mesa GL which can give you even more depth into C and c++ including callbacks,line drawing algorithms, and you can graduate to splines and other more complex algorithms.Finally you would have done enough to create a game ;)


You can try hacking with the kernel and device drivers on a linux box to get a better understanding of things which make linux click ;).Most of the linux kernel is written in C and C++.


AS for your information Matlab isnt free.You will have to pay a huge sum to get it.
Reply:dfghgetggeg
Reply:so far you've learned the C heritage of C++. The next language features would be classes, object oriented programming (OOP), and then templates. You find a lot of information and tutorials on the web.





my personal opinion, though: learning this doesn't lead to anything, unless you actually USE it. So think of some nice programs and implement them in C++. That way, it's more fun and you learn faster.
Reply:if you are really a programming enthusiast and you are that good, then you can try studying about database applications or try to study directX so you can start to create games with you would be applying math and complex calculations as you go on.


What's wrong with this C++ program?

I'm simply trying to start learning C++, and this hello world thing isn't working. What's wrong with the code? This tutorial says I'm doing it right, but it keeps telling me line 5 is wrong.





#include %26lt;iostream.h%26gt;





int main()


{


cout %26lt;%26lt; "Hello World!\n";


return 0;


}

What's wrong with this C++ program?
Make the cout line the following:


std::cout %26lt;%26lt; "Hello World!" %26lt;%26lt; std::endl;
Reply:you forgot to add the line : using namespace std;


under the include directive


this lets the compiler know what cout means
Reply:If you are using Visual C++ compiler, then try


#include "iostream.h"

bridal flowers

Programming Small DLL's in C++?

Hello, I want to learn to program small DLL's in C++, so..... I can slowly move up to bigger ones. Does anyone know a good web tutorial or book to learn to program DLL's.





- Cheers, Daniel

Programming Small DLL's in C++?
I have listed several websites below that can help you write your very own DLL in C++. They are all over the web but here is a few to get you started.





Enjoy!


Using regular expressions in C++?

If you have a string of text





(for example, "1234 quick 1234 brown 1234 fox")





and you wanted to use a regular expression to identify any words in that string of text, what is the c++ code that would do it?





Note: A word is defined as any sequence of letters that is not interrupted by a space.





I could really use an example of code.





What #include statements would I need? Is there a way to do it without including regex? Where do I get regex (if I try to include it now, my compiler gives me an error, so I assume I need to get it from somewhere)?





Please note, I don't need a tutorial on regular expressions. I understand regular expressions well enough as it is, I just need to know how to use them in C++.

Using regular expressions in C++?
well... one way would be to search through the string until you found a space, or CR/LF.





Im not sure what you want to do when you find them but something like this will count them:





char mystring[] = "1234 quick 1234 brown 1234 fox";


int count, words = 0, spaces = 0, crlf = 0;


BOOL wordsstart = 1;





for (count = 0; count %26lt; sizeof(mystring); count++)


{


if (mystring[count] == 0x20) //space


{


spaces++;


wordstart = 1;


}


else if (mystring[count] == 0x0a || mystring[count] == 0x0d) //carriage return or line feed


{


crlf++;


wordstart = 1;


}


else if (wordstart %26amp;%26amp; ((mystring[count] %26gt;= 'a' %26amp;%26amp; mystring[count] %26lt;= 'z') || (mystring[count] %26gt;= 'A' %26amp;%26amp; mystring[count] %26lt;= 'Z')))


{


words++;


wordstart = 0;


}


}





its just off the top of my head, but it should work
Reply:google up pcre





http://www.pcre.org/!


Visual C# Programming Project?

I am in a computing class in my school that allowed us to learn what ever we wanted, so long as we were learning at a decent pace and the instructer knew what we were doing.


Anyways, I chose to teach myself Visual C# and I learned alot of the basics in coding, as well as creating forms.





After 9 weeks though we have to submit a project review thing that shows what we have done, and I want to code something that can demonstrate what I have learned, but cant come up with any cool ideas.





Anyone know of something I could do, even if its abit harder if you know of a tutorial or something that makes a cool program, or even a full project already done that allows you to edit it and customize it ect.

Visual C# Programming Project?
Well the good way to gain brownie points and actually do something that you can write on your resume is work on an open source project either fixing code or adding features. Unfortunately MS is not very friendly with Open source so I really dont know any projects in c#. Try doing something web related like a online diet diary or fitness tracker etc. The problem with web apps is that if you do not know what you are doing you can make your code insecure and get hacked.


How do I use C++?

I have never donw any programming in my life and was recommended to start with C/C++. I have no idea how to use it and I also need to know what I need to get to program on. I also need to know how to get my hands on whatever I need and how to get a decent tutorial so I can learn easily.

How do I use C++?
Go to book store and buy "Beginning programming for dummies", not kidding, this was my first book, and now I am a certified programmer. Don't start with C/C++.
Reply:I think you shouldn't use C++. VB.Net is a great beginner language (I started with it and in less than a year I moved on to C# and I have to say I'm pretty good) and you can download it for free. C++ gets mind boggling. If you insist on C++ then go to the bookstore and find some book entitled "Beginning C++" or something like that and read every page. You will need an IDE, I like Dev C++ because it's pretty good and it's free. Good luck.
Reply:If you've never done any programming C++ is not the place to start. I would recommend a scripting language like perl or python, which are free and you can download to any computer - mac, linux or windows. There are some basics you need to understand and any easy language will help you as much as any.


Here are the very basics:


variables


arithmetics


boolean (true/false) logic


conditionals (if then else clauses)


loops (for counting and iterating)


input from keyboard and output to screen





once you are comfortable with these then you can move on.


Typically every one starts out creating a program that just outputs "Hello World!" to the screen. Once you've done that you're ready for trying out loops, conditionals, arithmetic etc. Then download other peoples samples and try to figure them out and modify them.





I happen to like python because it starts easy you can use any text editor to creat your first program. And plenty of online samples and documentation to get you going
Reply:You will need a compiler (to turn your code into something the computer can run). Compilers usually come with a development environment, which is where you do your coding. I would recomend either dev C++ or microsoft visual C++ depending on what you want to do with it and why you are learning it. Download links listed below.





As for learning the language, there are plenty of good resources on the internet, however I would recomend buying a book or two, especially if you are new to programming

wedding reception flowers

Help with dev c++ compiler?

I just downloaded the dev c++ compiler, I tried writing similar to the way I do in dark basic, needless to say. EPIC FAIL. I tried googling a tutorial, I copied one of their programs to see if I could manipulate it, but the code didn't even work. (I triple checked, it was exact when I tried to run but it kept saying the program had to be compiled first, even though I tried compiling it about 6 times.) Some hints for a beginner dev c++ user would be appriciated.

Help with dev c++ compiler?
I dumped Windows for Linux years ago (completed the transition in '05). I use GCC but I don't use any IDEs (one reason I jumped). Nevertheless I've searched for a couple of tutorials for you (Incidently, before you try running something you go to Execute-%26gt;Compile on the menu or hit Ctl-F9).





Actually, everyone dumps you back to the same place: Dev C++ tutorial for CS 161 Students. I remember it as a good compiler (It's GCC in disguise after all). Try to get over your natural frustration.
Reply:What error messages was the compiler giving you?





Also, I took a quick look at SharpDevelop program that shickity recommended. It is C# and .Net IDE. Unless it has a plugin to handle standard C++, it will not help someone try to write C++.
Reply:I would switch to SharpDevelop. Similar syntax, and VISUAL design. Drag-and-drop GUI for most buttons, text boxes, etc. :P


C++ Beginner! Just a tiny question!?

ok, you experienced programmers... dont laugh at me! my programing experence stopped when my commodore 64 broke! I have chose to take this last week before christmas and teach myself as much about c++ as possible. Today is my first day and I am stumped on a point in chapter 3 of my book dealing with loops.I understand the loops but i am just experimenting and trying to make a program different than the tutorial. All I want to do is output 2 variables on the same line.


cout %26lt;%26lt;first variable%26lt;%26lt; %26lt;%26lt;then the second variable%26lt;%26lt;;


get my point?


Also id like to know how to do this..


cout %26lt;%26lt;"some text"%26lt;%26lt;first variable%26lt;%26lt; %26lt;%26lt;"some text"%26lt;%26lt; %26lt;%26lt;then the second variable%26lt;%26lt;"some text";


here is my code


#include %26lt;iostream%26gt;





using namespace std;





int main()





{


int y=0;





for (int x=1;x%26lt;4097;x=x*2) {


y=y++;


cout%26lt;%26lt;y%26lt;%26lt; %26lt;%26lt;x%26lt;%26lt;endl; //%26lt;----- Problem Line!


}


cin.get();


return 1;


}





/* Output sould look like this


1 1


2 2


3 4


4 8


5 16


etc...*/





Any advice appreciated! Thanks

C++ Beginner! Just a tiny question!?
There should only be one %26lt;%26lt;. You put 2 that causes an error.


If you want to add text its the same as what you did above. Like this: cout %26lt;%26lt; "text" %26lt;%26lt; x %26lt;%26lt; endl;


Just enclose the text in double quotation marks and they will display as text.


Note: endl is end line or new line equivalent to \n in C.


use return 0 to notify the OS that the program is successfully executed. Usually the compiler will return 0 automatically when it reaches the closing bracket of main. Return 1 is used to return the number 1 to the operating system so it is not necessary and useless.
Reply:cout %26lt;%26lt; y %26lt;%26lt; x %26lt;%26lt; endl.





You got too many %26lt;%26lt;'s
Reply:int main()





you defined your main program to return an int


value, that is why your compiler is "complaining".. ^^





i don't know if it you change it to "void main()",


and delete the "return 1;" will work..


btw, im using code::blocks. it's free and more


compliant to standard C/C++, i guess.. ^_^v





btw, you should not be using "return 1;"..


it should be "return 0;", coz any number


returned by a console program to the os %26gt; 0


is interpreted(by the OS) as error value..





peace out.. ^_^v


Very simple C++ help?

I'm using visual Studio .net 2003. It's a completely legal version so I know it wasn't tampered with.





This is my code:





@include %26lt;iostream.h%26gt;





int main()


{


cout %26lt;%26lt; "Hello World!\n";


return 0;


}











This is the result:





Linking...


HelloWorld.obj : error LNK2019: unresolved external symbol "long __stdcall About(struct HWND__ *,unsigned int,unsigned int,long)" (?About@@YGJPAUHWND__@@IIJ@Z) referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)


Debug/HelloWorld.exe : fatal error LNK1120: 1 unresolved externals








My tutorial book says to type it just like that, and I started it as a blank C++ file.. is my compiler broken or am I missing something fundamental?





Thanks





-Simba

Very simple C++ help?
Linker tells you, that the code in your function "WndProc" tries to call function "About", but you do not have any function with that name. Looks like you created your project as "Windows Application" (while it should be "Console application") and didn't manage to remove all the unneeded generated code.





The easiest way to solve your problem is to start all over:


* Select from the main menu: File-%26gt;New-%26gt;Project


* In "New project" dialog select "Visual C++" to the left and "Win32 Project" to the right. Name your project and press "Ok".


* In "Win32 Application Wizard" window select "Application Settings", then set application type as "Console application". Now press "Finish" - the project will be created.


* Now type your code and compile. Good luck!
Reply:wheres stdio.h?





ignore the scope resolution operator guy, he works for Turbo...








Did you select the right t kind of Project?


try creating a simple pre-made console app from the templates...
Reply:Problem is with the @include


should read #include %26lt;iostream.h%26gt;





stdio.h is referenced in iostream.h but as a general rule include it anyway
Reply:When the linker gives you errors, it means that it cannot find the .lib files that it needs to link your program.


However, in this case, it looks like you might have told VS to build a Windows32 program, instead of a console program. I don't have VS, but I have Visual C++ 2005 Express and the project setup should be similar. When you create a project, specify a 'Win32 Console Program.'


Also, I think you're not supposed to put the '.h' file extension after the name of the header file that you wish to #include in Microsoft Visual C++. (Look in the compiler's help file for 'Standard C++ Library Overview.'


Remember to insert this line after your '#include' lines:


using namespace std;
Reply:is it


@include %26lt;iostream.h%26gt; ?





it should be


#include %26lt;iostream.h%26gt;





use "#" instead of "@"





and also you should


#include %26lt;stdio.h%26gt;


but in some compilers, it is default included.
Reply:// test.cpp : Defines the entry point for the console application.


//





#include "stdafx.h"


#include "io.h"








int _tmain(int argc, _TCHAR* argv[])


{


printf("Hello World");


return 0;


}








That is my code on VS 2005. I used a console application template.





The link file iostream.h does not exist in my system. That's strange. Sorry, if I can't be of much help.
Reply:Use std::cout


C++ Hash Table?

Hey There, I am trying to make a hash table in C++ using a linked list.





I should have been paying attention more in class but I didn't so now I do not know how to make one.





The prof's notes aren't that great and my textbook is in Java so I am a little bit screwed. So I have been searching on the internet on how to make one and I have not found a tutorial that is that great.





I need to make a hash table to put in a bunch of different words and do a bunch of calculations on.





So my question is, can someone help me, more specifically does someone know of a good website that can explain and help me create this hash table and hashing function.





Thanks.

C++ Hash Table?
Wow. Some people are SO lazy.


TEN SECONDS with a search engine brought up umpteen hits. I guarantee you spent longer than that, just writing your question!





Anyway, try:





http://cis.stvincent.edu/html/tutorials/...


http://www.nist.gov/dads/HTML/hash.html


http://www.concentric.net/~Ttwang/tech/s...


http://www.cs.fiu.edu/~weiss/dsaa_c++/co...


http://www.partow.net/programming/hashfu...


http://www.codeguru.com/cpp/cpp/algorith...


http://www.uow.edu.au/~nabg/ABC/ABC.html


http://en.wikipedia.org/wiki/Virtual_tab...





Chances are you will find what you want on AT LEAST one of those links, you lazy git.
Reply:download the sourcecode of chess program crafty , theere is a hashfunction inside it. its in C but easily rewriten in C++ by putting it in a clas





good luck you will need it

flowers gifts

C++ error, Please Help!!!!!?

i got this error in C++ 'Terminal bash'. what does it mean, how did it come and how can i fix it?





Also, do you know any good GUI tutorial website?

C++ error, Please Help!!!!!?
If you happen to be using a Linux environment, bash is your command shell and it is telling you it doesn't know how to interpret the command you issued. Check the path to the directory and the existence of the file or link, if you are indeed using Linux of some flavor. I hope this will help you find your problem.


Any similarity BTN Java languages? & C++ Languages?

Does all Java languages use the same commands? and


Does all c++ languages use the same commands?


Where can Find free really good VB.NET tutorial?

Any similarity BTN Java languages? %26amp; C++ Languages?
Firstly there's only one java language, which is written with several interfaces, but the java compiler is the same.


The syntax in Java is pretty much the same as in C++. The only thing is that Java is fully object oriented while C++ is only partially. Which means that if you write Java code, you have to declare classes, while C++ can run C codes which aren't object orinted, so you can write programs without classes. For VB tutorials try:


http://www.programmingtutorials.com/vbne...
Reply:no similarity. nowhere.

daylily

Does anybody know of a good website to learn C++ or C Computer Language?

I've been trying to learn Python, but I haven't had any luck. So I decided to try to learn C or C++. Does anyone know where I can learn it or where there is a good tutorial? Also, should I learn Python before the others?

Does anybody know of a good website to learn C++ or C Computer Language?
C++ or C? They are two different languages. You may want to pick one first. I’ll give you a general site that’s pretty useful: http://cprogramming.com , but the real way to learn C++ is through books. There’s a lot of bad learning resources out there (incorrect, obsolete, etc.) and you want to make sure you learn C++ correctly. If you pick C++ by any chance, get the books Accelerated C++ (by Koenig) and C++ Primer (by Stanley Lippman).





%26gt; I've been trying to learn Python, but I haven't had any luck.


When you didn’t understand something, did you take the time to Google it?





%26gt; Also, should I learn Python before the others?


If you can’t learn Python, you probably won’t get very far with C++ or C. Python is considered a very easy language to learn, while C++ is considered very difficult.





Edit 1:


%26gt; I was actually just wondering if Python must be learned first.


No. I would recommend starting with Python first though.
Reply:No, you don' have to learn Python first. I don't think learning C or C++ will be much easier though, so ultimately which one you learn first is up to you.





I'm linking a website that has C++ tutorials.
Reply:C++ tutorial = http://www.cplusplus.com/doc/tutorial/





Python tutorial = http://docs.python.org/tut/


Help please on microsoft visual c++ express edition 2008?

well this is really annoying me im trying to do a tutorial i downloded (the game creators) but i go to debug and it says this: c:\program files\the game creators\dark gdk\include\darksdkcamera.h(16) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory


Build log was saved at "file://c:\Documents and Settings\dan\My Documents\Visual Studio 2008\Projects\Dark GDK - Game1\Dark GDK - Game1\Debug\BuildLog.htm"


Dark GDK - Game1 - 1 error(s), 0 warning(s)


========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== any help would be good thanks

Help please on microsoft visual c++ express edition 2008?
d3dx9.h is part of the DirectX 9 SDK, you need to download and install it from the Microsoft DirectX site (see the link below). Make sure you download the SDK and not the runtime version.





***UPDATED***





Seriously, that's the problem...I'm a professional game developer, I have to include this file in all of my 3D applications. The d3dx9.h file is in the DirectX 9 include directory, if you have already installed the DirectX 9 SDK then you haven't added that directory to the list of directories that Visual Studio searches for its include files, you can do that in the options page. Alternatively you can add it to the project settings, although that's not as good an option because you'll have to do that for *all* projects you download that include it.
Reply:The video has an issue in step3. Look at the instructions at http://msdn.microsoft.com/vstudio/expres... and specifically step 3 to set the include path.


Fatal Error C1083


Error Message


Cannot open filetype file: 'file': message


To fix by checking the following possible causes


File does not exist.


File, subdirectory, or disk is read-only.


No access permission for file or directory.


Not enough file handles. Close some applications and recompile.


The INCLUDE environment variable is set incorrectly.


An #include directive uses double quotation marks around a path specification, which causes the standard directories to be skipped.


You did not specify /clr and your program uses CLR constructs.


You attempted to compile a single file in the project without first compiling stdafx.cpp. Before you can compile a single file in the project, you need to compile stdafx.cpp. In the case of the /analyze (Enterprise Code Analysis) compiler option, you will need to use the same /analyze setting for stdafx.cpp that you use for the .cpp file.


the following sample generates C1083:





Copy Code


// C1083.cpp


// compile with: /c


#include "test.h" // C1083 test.h does not exist


#include "stdio.h" // OK








Hope this helps!


ctc


C++ beginner problem!?

hey everyone, im starting out C++ programming using Visual c++ 2008.


I have done the whole hello world file. The problem is when i press start debugging (i.e. play) the prompt comes up for like less than second! Its weird, they said the prompt should come up in the tutorial but i never get a chance to see anything?


Any help?


Appreciate it:)

C++ beginner problem!?
Either set a breakpoint on the last line of your main() function, or add something like this to the end:





std::string x;


std::cin%26gt;%26gt;x;





That'll pause the program until you type something and press Return.
Reply:that isn't supposed to happen but you can make an infiite loop if you need to keep the prompt there.





like:


boolean foo;


do{


foo = true;


} while (foo == true);
Reply:If you are using Visual C++ (express?) 2008, it should stay up until you "Press any key to continue". Try pressing Ctrl + F5 instead. It runs AND compiles it. If that doesnt work, try adding system("pause"); after your cout%26lt;%26lt;"hello world"; statement.
Reply:Attempting to read anything from stdin should keep your dialog up.


Suggestions for C++ development libraries?

I'v been looking for quite a while now, and have found many different types of SDK's (software development kits). The trouble is, that their is to many to pick from and related resorces such as tutorials and instalation guides are difficult to find. Can anyone suggest a SDK that allow C++ programs to be executed without using the .NET framework and an abundent sorce of tutorials ect.... I'm using MS Visual C++ 2005 at the mom, if thats any help. thanxs

Suggestions for C++ development libraries?
You can always write C++ programs that don't use the .NET framework. In Visual Studio, select "Win32 application" or "Win32 Console Application" rather than some flavor of managed code to write a traditional compiled program.





SDKs exist to allow you to do a particular task easily. For instance, if I'm writing a game for, say, a mobile computing device there are some great SDKs that make that job a LOT easier. Most SDKs have tutorials associated with them. But you are never REQUIRED to use an SDK; you could, in principle, do everything in vanilla C if you want. No tutorials for that but there are plenty of programming books for C and C++.

flamingo plant

Microsoft Visual C++ Error C2447?

Microsoft Visual C++ error c2447?





I had decided i wanted to learn C++ so i downloaded microsoft visual C++ express 2008 and tried doing a simple "Hello World!" project.I got it to run once but now it wont run i keep getting error C2447: missing function header (old-style formal list?)





this is the code


#include %26lt;iostream%26gt;


using namespace std;





int main();


{


cout %26lt;%26lt;"Hello World!\n";


return 0;


}





it is not just this project even when i tried copying the exact code used in a microsoft tutorial it gave me the same error





Hope some can help


Thanks


=]™

Microsoft Visual C++ Error C2447?
I am conversant with earlier versions of Visual C++ and am sure they would run if you removed the semicolon after the function main(). All the best!
Reply:Your code is incorrect and the program can't read it. That's why your getting the error message. I don't know much about C++ but there is a book I used once and it was very helpful called "C++ for Dummies" don't let the word dummies trick you it has lots of information and will assit you. Good Luck


Which site offers free tutorials download of msoffice,photoshop,windows,c,c...

just visit the site given below


C++ database libraries for MySQL connection?

I am working on a windows environment, I have a MySQL database (5.0), the compiler I am using is visual C++, I want to connect to the database, query the database, populate data using C++ code, are there any libraries available for this, if not does anyone know about any sample code/tutorial that can help is writing code to establish database connectivity.

C++ database libraries for MySQL connection?
You can use the mysql ODBC drivers


http://dev.mysql.com/downloads/connector...





Then use the ODBC classes provided in Visual C++





Or, if you want pure native C++ classes, check out


http://tangentsoft.net/mysql++/





Have fun


How to make graphical interface apps using C?

sorry about my inocence.. but how to make a graphical apps for win 32 using C language, i had read about gtk or visual C++, what's the difference? wich is better? where i can find a tutorial to make gtk work in windows.

How to make graphical interface apps using C?
you need to take a look at the GUI libraries that you mentioned, gtk and Visual C/C++. there are other GUI libs out there as well. a GTK tutorial and porting guide are linked below. for Visual C++ (express edition) a tutorial is linked as well.

umbrella plant

A question about c++ and opengl?

I have learned c++ basics but i think i need to know what is a buffer so:


1.I need someone to explain to me what a buffer is and when we use it.


2.I want to start using opengl but i know nothing about it..... I use visual studio 2005 .... Is there anything i need to download before i start using opengl through visual studio?.... I need to


know how to open a new project and how to add the the libraries i need....


Is it a an advanced level to start making programs that have simple graphics... you know, like using buttons instead of writing commands and so on?


After you help me with the previous things, can you recommend a good tutorial to help me understand opengl... if not, is there a book instead of a tutorial?





NOTE: I use visual studio not visual basic.... Online tutorials helps you create opengl projects in visual basic!!


THANKS IN ADVANCE!!!

A question about c++ and opengl?
This looks like a good step-by-step tutorial for using OpenGL with visual studio 2005. http://www.cse.msu.edu/~cse872/tutorial1...





A "buffer" is a reserved segment of memory. For example, simply declaring a C++ array allocates a buffer. There are also different types of buffer classes that do different things. Some applications have sophisticated ways of using buffers to optimize performance. You'll need to be more specific in the type of information you're seeking about buffer.


C++/C# programmer learning Java 6 - should I buy Java 5 books?

I'm studying Java for the first time and have had classes in the past on C++ and a little personal C# programming experience. There seems to be a slew of Java 5 references (like Oreilly's nutshell) but my concern is if I should buy these v5 books or wait for the v6 books to be published?





I'm also trying to decide which introductory text to purchase:





Java 6 in 21 days


Core Java - vol 1 (8th ed)


Java Tutorial (4th ed)

C++/C# programmer learning Java 6 - should I buy Java 5 books?
I found Java in a Nutshell really easy to follow, I'd recommend it. I wouldn't go with introductory tutorials that waste your time teaching you general programming things that you probably already know.


The book may look thick and daunting but only the first few chapters are required reading, the rest is a function reference. I managed to read it in 3 days, and hold a 10 month Java contract without any previous experience!


I wouldn't go with a "learn x in y days" book, because you can't learn any language properly in a hurry - it takes years of practice (see link below).


Not much changes between Java versions, the 5th edition plus the release notes from version 6 should be all you need. Good luck!
Reply:if you ahve previous experience with c++ you are goin to find the many similarities with java which it will make it veyry easy for you. I would constantly use the java.sun reference or maybe java in a nutshell... but from my personal experience i use mostly online tutorials examples and maybe one book to reference the different main ideas of the language.


C++ and Libraries(DLL's)?

http://www.learncpp.com/cpp-tutorial/a1-...


I need a tutorial such as this but much more in depth with examples on more than one. I have learned C++ syntax already.

C++ and Libraries(DLL's)?
depending on your compiler, it can be a manual process or not, if you're using Borland Builder or MSVS there should be a dll wizard otherwise you'll have to write it manually.





MSVC - http://logix4u.net/Programming/vc++/A_Tu...





Borland Builder - Look at the help files





another link http://wiki.tcl.tk/2419





All dll have similar entry points, so seeing enough code shold give you the basic idea


C++ combo box...?

anyone knows how to make combo box using microsoft visual c++? i need the basic codes to use. and please a site that gives tutorial about the vb...thank you very much....

C++ combo box...?
http://www.functionx.com/visualc


http://www.vbtutor.net/vbtutor.html

deliver flowers

I dont understand C++ Classes, explain please?

I am having trouble grasping C++ classes I have read about 4 tutorials but im still confused, can someone give me a plain and simple guide of what they are how to use them please, im really annoyed at not being able to understand them.

I dont understand C++ Classes, explain please?
a class is the definition of a box of variables, so if your program acted upon cats, you'd make a class called cat.





class cat


{


char[15] color,


int numberOfWhiskers;


};





so what can you do with that? (well, nothing but define cats)





cat Sam,


Hal,


Morty;





now there are three cats (but in classes all the members are private unless declared otherwise, so you need functions (or to declare members as public)!





so Hal.numberOfWhiskers will give an error.





so we change the class to





class cat


{


char[15] color,


int numberOfWhiskers;


public :


void addWhisker();


void cutWhisker();


}





now you can give the cat whiskers or cut them off!


say you have the code (and pretend with me that a class will by default assign 0 to its members, which it won't):








void cat::addWhisker()


{


whisker++;


}





bool cat::cutWhisker()


{


if (whiskers %26lt;=0)


{


whiskers = 0


return false; //nothing changed


}


else


{whiskers--;}





}





In this way we can ensure that if a member variable needs to be created specially, then it is, you can't have a negative amount of whiskers.





There is also a function that you define:





cat::cat





that is run whenever the class is instantiated, that is everytime there's a statement like


cat Tim;


cat::cat will run on the cat tim.


This function SHOULD set every member variable, unless you have a good reason not to. it can even have arguments making it





cat Tim(7);





if you define it that way.





there's also a destructor, but it's usually only used for dynamic memory.
Reply:To understand what classes are, you should research Object Oriented Programming. See the Wikipedia link attached for some basic information.
Reply:First off, take a deep breath and be a little easier on yourself. Many people have problems grasping classes and even more think they understand them better than they really do. It takes time and effort but when the light bulb goes on you will be grateful you made the effort.





There is no way anyone here can explain classes in a limit amount of time and space. Re-read your tutorial or find better ones. There are literally hundreds available for free on the web.





One way to approach the problem is to try and put into sentences what it is you think you don't understand. That alone may help. And smaller questions are easier for people here to answer.


Programming C++?

Where can I download the turbo C++ software for free


and someone knows where can I find a good tutorial for it


Thank you

Programming C++?
download it here:


http://www.turboexplorer.com/cpp





Some tutorials:


http://www.synchrondata.com/pheaven/www/...


http://www.softlookup.com/tutorial/c++/c...


http://cplus.about.com/od/learning1/Lear...
Reply:well u can easily find one by googling it. but instead of turbo why dont u use a better compiler like Visual C++ (which is best) or blood shed or borland.


see turbo compiler is not good as it is not a strict compiler and for studying the basic concepts u should always practice on a good/strict compiler.


so go for VC++ compiler tho it will show more errors and warnings but then more u get errors more u learn from them ..


..... hope u like my suggestion





for tutorials :-


http://www.cs.wustl.edu/~schmidt/C++/





or again u can google it
Reply:I believe you can get it at download.com. This site has loads of C and C++ compilers. If you don't find turbo C++, may I recommend Bloodshed Dev C++, I use it myself, and it's awesome.


Any tutorials on how to learn VISUAL C#?

i couldnt find any


thanks in advance

Any tutorials on how to learn VISUAL C#?
http://msdn2.microsoft.com/en-us/vcsharp...


C&C 3 Keeps crashing!!! nothing works, please help!?

I just got C%26amp;C 3: Tiberium wars. i have a :





Windows Vista Home Premium (6.0)


Intel Core 2 Duo Processor (2.20 GHz)


88.4 Gb HD Free Space


2.038 Gb Ram


DirectX 10 (which i heard has backwards compatibility, so even though it needs DirectX9, it should work)





For some reason, in the tutorial, as soon as i build a power plant(First building), it quits and says something caused it to stop working. It "tries to find a solution for the problem" but nothing happens. Does anyone know what i can do





Two side notes:


-I bought this game in the bundle, with C%26amp;C the first decade


-I would very much prefer not to buy anything or spend any money to fix the problem.

C%26amp;C 3 Keeps crashing!!! nothing works, please help!?
Yea i have a windows XP and my cnc3 crashes all the time. Try storing your game saves in a folder and reinstalling the game. Then just add your game saves into the profile folder, that way u wont have to start the game over.
Reply:It might. Thanks for letting me know. Report It

Reply:After a very hard searches. This works for me. Thank you very much. Report It


floral bouquets

Where is a good tutorial website to learn programming/software engineering if you've had intro classes?

I am trying to update my programming/software engineering skills to better suit the current environment. I have had two introductory classes, which were mainly focused on Java and C. I know the basics of programming in these languages, and I know what data structures are (stacks, queues, trees, etc.). However, I am having trouble with setting up the GNU development tools such as make and gdb, as well as with the concept of a makefile, since we were never taught about this. I'm also trying to understand this software engineering/lifecycle stuff, and how it can fit into the design of software.





Would there be a tutorial website that would help with these concepts along with the more advanced concepts in software development? Thanks!

Where is a good tutorial website to learn programming/software engineering if you've had intro classes?
oh yeah you must try


For all prog language


***-----*****----***


http://www.msdn.com





http://www.programmersheavan.com





Java


*****


http://java.sun.com


http://www.javaranch.com


http://www.java2s.com





hope this will help


Cheers:)
Reply:The C programming language is the native language of GNU, and the GNU coding standards encourage you to program in C


http://www.ugcs.caltech.edu/manuals/devt...


MP3 player programed in C#?

Does anybody know where I can find a tutorial that explains how to code a simple media player in C#?

MP3 player programed in C#?
http://msdn.microsoft.com/vstudio/expres...





look near the bottom where it says "how to add audio part 1 %26amp; 2"


Looking for a tutorial on creating a 3D Modeler in VS2005?

More specifically, I am trying to build a game engine, complete with modeler/level designer/scripter. I have my graphics (OGRE), physics, etc. engines already. I found a tutorial using nothing but MFC to create it, and it was extremely tedious. I did not mind it, but the one thing I did not enjoy was not having full control over my interface design. I would like to design it and see it in front of me rather than having to wait until the end of my programming, compile it, get excited, and then find out something's wrong and not be able to see it until it's fixed. I would like to create this in Visual C++ if at all possible.

Looking for a tutorial on creating a 3D Modeler in VS2005?
lol, welcome to the wonderful world of game programming! I've used Ogre before too, and it was such a pain to work on the UI and not be able to see it, have to rebuild and run the app to see my changes. It can take a lot of time. Are you building your UI using Cegui? There's a layout tool you can get from the Cegui website, immensely helpful for designing your UI without having to recompile and load your app. Other than that, there's no other way to do what you're asking.


Please help me with DEV-C++?

I am a beginner in C++ programming and I chose to program in Dev-C++ which was a free software I followed the instructions from a tutorial and this is the program I wrote:





#include %26lt;iostream.h%26gt;





int main() {





//print out the text string, "Hello, World!"


cout %26lt;%26lt; "Hello, World!" %26lt;%26lt; endl;





return 0;





}


but when I try to compile and run the program my output console just flashes for one instant and it is gone,


I cannot see the program


what should I do?

Please help me with DEV-C++?
The problem with console programming is you either have to run it from a console or you have to do a workaround. I don't know what version of Windoze you are using, obviously. If it's XP or earlier, open the console by going to Run on the start menu, typing "command", and changing your directory to the programs you want to run.





An easier way is to add to your programs :





system("PAUSE");





before return 0. System() calls an external program. It is actually found in stdlib.h which is called by stdio.h, which is called by iostream.h. You can #include stdlib.h (or cstdlib in more uptodate syntax) or not. Pause is an MS-Dos program which pauses operation, writes "Press any key" to the window, and waits till you do to terminate. Some people use the conio.h library for this but some people don't like to think.
Reply:You should pause your program before it exits so you can see the output.





Just insert a system("pause"); before the return.

dried flowers

Game Programming C++?

I've been deeply researching into game programming. I've started this past summer trying to find a programming language and it wasn't till recently that I started to get into C++. I followed Wrath lands text rpg tutorials and created my own rpg, but was wondering how to get a game in c++ that is action not text, but using input keys like arrow keys. Even if you can how to use bitmap pictures and the coding for those... I don't want you to start listing the codes, but any websites or books that you would recommend.

Game Programming C++?
I'm currently working on my bachelor's degree in game software development, so I know what I'm talking about.





Both of the above guys make valid points. DirectX and OpenGL are good ones to learn. Learn both, and you'll make yourself that much more marketable.





DirectX isn't a huge headache, it just takes getting used to working with the additional classes and whatnot, in C++ language.
Reply:The SDL library is a wrapper for DirectX. It has lots of fine functions for loading things like PNG bitmap pictures -- with alpha channel for masking -- very useful for games.





See the link.
Reply:You shoud look into the DirectX SDK , its all about working with direct x and all the things it can do Direct3d for graphics and directinput for getting input to your program...
Reply:Well you will need to download the library files for a game engine and graphic engine. As far a graphics go I would suggest learning OpenGL. Yes it is old but there are many many sites out there that have tutorials on code and games for OpenGL. That is a way to get your foot in the door. Dont start with Directx programming. its a headache.


C Programing Exercises?

I need more exercises for my Diploma in computer studies in C programing any net resources that are for free and maybe some tutorial too . I do not know whrer to get it So please help me

C Programing Exercises?
Your wish is the web's command:





http://www.google.com/search?hl=en%26amp;q=C+P...





http://search.yahoo.com/search?ei=UTF-8%26amp;...
Reply:The Code Project website, this has very good resources.


Planet source code - this requires free registration for unlimited access to code.


How can I write a cross-platform GUI in C++?

I intend to write a small application in C++. However, I'm not sure how to code the GUI part of this app. All the tutorials I've looked at introduce C++ programming using the 'Command Prompt' as the interface. So how are applications such as Windows Media Player written? What about Mozilla Firefox; how is this written to support both Windows and UNIX?

How can I write a cross-platform GUI in C++?
You can use the APIs of some widget tools like





wxWidgets


GTK


FLTK


QT





Or you can even use some parts of the mozilla code used to make firefox and thunderbrid etc... I know people from activestate.com did it, but I don't think it's the easiest way. The above ones would be a better choice.





These all provide the same interface in Windows, Unix and Mac, so you only have to write the code once and the api does the rest to try to make it the most similar in all plataforms.





You could also use some interpreted (or semi interpreted) languages instead of C++ like, Java, Python, Perl, and use their respective GUI libraries.





If you really have to do some stuff in C++ you could do some native methods in Java or stuff like that.
Reply:The beauty of using Visual Studio is you can code the different objects in the software using different languages. For instance, you can write a web service in .NET that uses ASP, C#, and VB. It will work cross platforms.
Reply:I had to do something similear couple of times at my work. These are the 2 approaches you can take.





1. Code your logic in C++ and write the client GUI in Java, later you can use JNI to interact between Java and C++ native logic code. That why your GUI will be palform independent.





2. If you are having a Client-server architecture. Then its even better for you.





a) If you are using .NET/IIS , have server in C# and have a Java Applet client or a Java SWING client (with Java WebStart)





b) If you can write your own C++ server, your Java SWING stand-alone client can communicate with your server thru sockets.
Reply:You will have to write the code twice, this is called porting the code. Currently, the only cross platform GUI languages are all interpereted (i.e. Java).


I need help with Microsoft visual C++ 2005......?

I am a newbie in programming, I am using Microsoft visual c++ express edition to learn the basics. I want to know the keywords for entering data and also the keyword for displaying result, (like the INPUT and PRINT in the old BASIC). I used cin and cout, but the program ended up having errors. It didn't accept the cin and cout keywords. I am trying to make a simple program to accept a value as input, do some mathematical operations and display the result.





This is my project





#include %26lt;iostream%26gt;


#include "stdafx.h"


#include %26lt;sstream%26gt;


#include %26lt;string%26gt;











int main()


{


int c;


cin %26gt;%26gt; c;


int total = c + 100;


cout %26lt;%26lt; total %26lt;%26lt; end1;


return 0;


)





Also a simple but detailed tutorial would be helpful. If you know any links please post it.

I need help with Microsoft visual C++ 2005......?
In between the lines:


#include %26lt;string%26gt;





int main()


Type the line:


using namespace std;





A namespace is just an organizational thing. Everything in the standard library of functions and such that come with the C++ language are defined inside a namespace called "std", which stands for "standard". Without that line you would've had to type something like:


std::cout %26lt;%26lt; total %26lt;%26lt; std::endl;


This isn't something you'll really have to worry about, just remember to include that line "using namespace std;" in your programs.





Also, the line:


cout %26lt;%26lt; total %26lt;%26lt; end1;


end1 should be endl (lowercase L)





endl stands for "end line".





Here's a tutorial I've used before:


http://www.cprogramming.com/tutorial.htm...

gift baskets

How to write a plugin in C++.?

Hi All,





Do you know of any general/tutorial resources for writing a plugin? I'm familiar with C++ but I am not an expert. If you know of any please share them.

How to write a plugin in C++.?
Here we go...





http://www.google.co.in/search?q=+plugin...


Check out this link..





Hope my answer helps


Creating Files In C++?

Hello, I am wondering in most they have their own file types (such as .sav for a game save and .esm for a Elder Scrolls file) Just wondering how do they create, acess and delete them using C++? Can anyone give me an explaination, point me towards a tutorial or tell me a book i could get with this in it.





- Cheers, Daniel

Creating Files In C++?
To read or write text files in C++, you usually use stream objects of the standard classes "ifstream" and "ofstream." Those classes also have open and close functions and the appropriate overloaded stream operators. There is nothing really special about the different types of file name extensions, although it helps to choose a unique one that means something in the context (like an abbreviation). To read or write binary data in C++ (for example, from data structures), there are other functions you can use called "read" and "write." They take character buffers as their arguments, but you can cast any buffer to a buffer of characters so that doesn't matter. This appears to be a good place for you to start learning about it: http://www.angelfire.com/country/aldev0/...


This is another tutorial-like reference related to the subject:


http://www.developer.com/net/cplus/artic...


Another handy reference (but not a tutorial) is http://www.cppreference.com/





There's nothing particularly special about writing to files per se. The main difference between writing to files and to the console is that you have to decide on a good format for your files if you intend to read them later on. Good luck!
Reply:These are input output operations that are available in every language.


I would rather advise you to move with C# than C++ if your developing for the windows environment.
Reply:If you've ever tried opening a data file (such as a saved game file) in notepad you've probably noticed that it just looks like a bunch of gibberish. That's because when you open a file in Notepad, it has certain assumptions that it makes about the file that aren't true.





Almost all text files are encoded with 7-bit data, since 7 bits can sufficiently hold all the letters, numbers, punctuation and control characters you need.





Data files are almost always encoded in 8-bit data. So when notepad starts reading it, it looks like gibberish.





Files in C++ are handled almost exactly like input/output from the keyboard and to the screen. Except instead of using the devices, it uses file streams.





To open a file steam, you se the fstream.open() function. The parameters that you pass that function determine whether you will be reading to it, writing to it, or both.





From there you read in data just like you would read in data from the keyboard. Except the data might be more optimized than text.





You coud fit 8 different flags into a single byte of data. A flag is just a specific bit that signifies something. For example, if the first bit of the byte is a '1' it might mean that you've beaten a certain area of the game.


Thursday, July 30, 2009

Some help with C++?

Ok, I have virtually no experience in programming, just an introductory class to Microsoft's Basic.





Does anyone know of some good tutorials for ABSOLUTE beginners in Visual C++?

Some help with C++?
http://www.freetechbooks.com/forum-3.htm...
Reply:There's a "C++ For Dummies" book that you can buy. I'm actually reading that book now. I started reading it about 2 months ago, and it does a great job explaining things in an easy to understand way. I'm very happy with it, and it's great for beginners like us. I highly recommend it.





The book I am reading is not specifically for VISUAL C++, but there is probably a "for Dummies" book out there for that too.
Reply:great site with tons of tutorials and for beginners also





http://www.cprogramming.com/begin.html


JAVA to C++?

How can I convert the java into c++ code in the simplest way?


Any software tools or teaching tutorial site?

JAVA to C++?
http://www.javaworld.com/javaworld/javat...





http://www.cs.brown.edu/courses/cs123/ja...

wedding

Fellow C++ programmers out there.... pls help..?

What are some few syntax that are found in Visual C++ 6 that is not found in Turbo Borland C++ 4.5? I am using the old compiler which is Turbo C++ 4.5 and I am used to it. Our company's senior programmer told me that it is cooler to use visual C++ than C++ 4.5? Where to download Visual C++ for free??? Thank you so much in advance...





For those who answered my question about connecting C++ to MySQL, I already found a good site: http://www.cpp-home.com/tutorial.php?22_... Thank you very much also for responding..

Fellow C++ programmers out there.... pls help..?
if you want to be really cool, you have to use gcc :-p





well, turbo C and visual C 6 are both old, and don't implement all facets and details of the C++ standard (which is very big and complex). Also, the standard libraries are a bit different. And therefore the code is not always 100% compatible to the standard, and therefore you have those problems.
Reply:After a lot of research, I obtained free copies of Visual C++ from Microsoft. There was a 64 bit version (that I wanted) in Microsoft Platform SDK for Windows Server 2003 SP1 with 32 bit versions in Microsoft DDK for Windows and Visual C++ Toolkit 2003. These are command line driven and I used my old Watcom software to create/edit source code. See:





http://freespace.virgin.net/roy.longbott...





It seems that things have now changed somewhat but you might still be able to get free copies.


What is the BEST site to learn C++ with NO prior experience in programming?

I am very new to the whole programming game. I bought a book not to long ago called "C++ Without Fear", but I am having a hard time reading what this guy writes half the time.





I have also been to "Teach Yourself C++ in 21 Days" but again, this website assumes too much knowledge in programming in my opinion.





Is there a *FREE* website that offers a tutorial to fluently (or at least close to that) learn c++?

What is the BEST site to learn C++ with NO prior experience in programming?
http://www.cplusplus.com/ and http://cprogramming.com/ are probably your two best sites to get standard tutorials. You'll also want to keep track of http://www.parashift.com/c++-faq-lite/ and c-faq.com (it's offline at the moment, but you can get mirrors at anytime by googling for C FAQ).





Other sites are usually suspect (this includes the 21 days site). Most resources on C++ are either incorrect in various ways or are obsolete. Cboard.cprogramming.com, as well as the Devshed C++ Forum and Daniweb C++ forums have some very knowledgeable professionals to help out, and you should rely on them to correct mistakes initially. Their help can make a significant difference in how easily and painlessly you learn.





With C++ however, the real way to learn it is to get books. You can get an idea of how it works through online tutorials, and you probably will want to start out with online tutorials, but if you are serious about learning it, you absolutely must get a number of recognized and important books for C++. There's a lot, and I mean a lot, of old, incorrect, or otherwise terrible C++ books. Most of them aimed at beginners. The two books I recommend, and the books/authors are recognized in the C++ world, are C++ Primer (4th edition) by Lippman and Accelerated C++ by Koenig. Other recognized books are too advanced. You may find both books to be just a bit too fast paced, and assuming too much though (they really don't, but you might find it so). Apparently You can do it! (http://www.amazon.com/You-Can-Beginners-... ) is also a good book. I haven't seen it myself, but the author is definitely a recognized expert, and you can actually get his help sometimes on comp.lang.c++ and similar usenet groups. Might be worth getting his book.
Reply:www.codeproject.com


wud be best for ya
Reply:Right off the bat I can tell you need to drop the idea that your going to be a master of programming in C++ in under a month. A programming language takes time to learn the concepts and then properly creating a program that works. One of the hardest parts of programming for beginners comes at compile time. The frustration of errors can be too much for some. I'm sure you've experienced some of that already.





As I was saying, Its going to take you just under a year to get the basics down without referencing a manual. If it is something that you do leisurely then it will take longer. The only way you get better is to do more. Even the silly assignments in the back of chapters in books can help you learn more.





Some books are better than others in some respect. Some people like myself consider some books pathetic in the lack of real world examples. I've seen countless books use "Dog" and "Cat" classes, part of programming, in them.





You should have a few books, not beginner only, to be used to learn from and use as references. A few suggestions are:


Starting Out with C++: From Control Structures through Objects


http://www.amazon.com/Starting-Out-C%2B%...


and


C++ Primer Plus (5th Edition) (Primer Plus (Sams))


http://www.amazon.com/C%2B%2B-Primer-Plu...





Now, to answer your question. There isn't going to be a superior webpage to learn C++ for free. Some will be better than others, but none of them will teach you everything there is to know and get a job in programming. You might find some online college that gives more in depth training through some sort of online "pay for tuition" type class, but it is not free.





The "Best" website that I can think of to learn from for most web languages all in one place is: W3Schools http://www.w3schools.com/ , but no C++ here.





Another site to learn the very basics is @ About.com http://www.about.com/compute/ just scroll down to the programming languages section.





As for a good IDE to help you catch errors and compile your program I suggest Eclipse found @ http://www.eclipse.org/ make sure you have Java installed on your computer to run it.
Reply:Visual C is a good way to start if you are a beginner. There are many tutorials and stuff for that and it is targeted at people with no prior experience. It would be a good foundation before starting C++.
Reply:No C/C++ are too ancient for someone to have done that, you may try the '... for Dummies' series their introductory books are kinda good, while I consider myself too experienced to make use of those books they are unrivaled as to write it in a way that, well, a dummy can understand.





Skimp the entire book in store before you buy, although C++ goes hand in hand with its predecessor C, start with that.
Reply:i would suggest you try dummies for C++ it is really helpful for people starting or who have no pior knowledge to C++ programming
Reply:if u find any best site to learn C++ or any other language programme, u may get information from there, but in my openion the best way to get more and more knowledge for C++ is the virtual teacher.


Anyone know of any simple tutorials for programming a mandelbrot set with openGL and C?

plan old C, not C++ or C#.

Anyone know of any simple tutorials for programming a mandelbrot set with openGL and C?
See if this helps:





http://www.ffconsultancy.com/free/fracta...


I need a tutorial on how to create forms and save data on my website?

I've looked on google, but no luck. I assume I need to setup a "mysql" database, then use some kind of script program. I need a tutorial that explains this specific process step by step. I am a c++ programmer, so it won't be too hard for me to understand.

I need a tutorial on how to create forms and save data on my website?
There is no need for any database on the server side. You can write form data to a flat file if need be.





When a user submits form data the data is transmitted to the program referred to in the form. There are two types of methods GET and POST. The form data is made available to your program differently for each method but there are plenty of libraries for plenty of languages to abstract and hide the low level details (one method I know makes the data available by setting environment variables and you refer to the name of the environment variable which is the same as the form field name).





Once your server side program reads the data in you can pretty much do whatever you want with the data. Process it, store it to a database, write it out to a file, format it in and send it as an e-mail, etc. You are limited by what your host makes available.





Most inexpensive hosting services provide MySQL and/or Postgress relational database servers, so that is a logical choice.





However, never ever neglect security. Thoroughly scrub and edit the input data before using or storing it. If you are expecting a field to be a number between 1 and 12 make sure it is a two digit number between one and 12 and not letters, not SQL commands, not HTML commands, not a string of digits 12,218 bytes long followed by system commands, etc.





A good term to start searching with is "CGI".
Reply:Yes, you first need to pick out a database. I really enjoy working with mySQL. Then you should try php for your webpages. This is great stuff, and I use it on all of my dynamic sites. But basically php is a server side scripting language, so you can import/export info with this.





-3xpl0it


My pc help site: http://www.pchelphq.com

flowers on line

What is the best current C++ compiler?

I am getting into C++ programming and I would like to know what the best current C++ compiler there is. Also if you know any good tutorial sites , that would be awesome..

What is the best current C++ compiler?
g++


microsoft visual c++
Reply:The BorlandC++ compiler is good and free to download.


Check out the links below for some good tutorials.
Reply:Microsoft Visual C++ 2005


You can download it free from the main site in Microsoft.com


and this is a good link


http://msdn2.microsoft.com/en-us/express...


Find Microsoft Visual C++ It's Free


Visual C# Game Development...?

Where can I find a tutorial (better to be a video tutorial) that teaches how to develop games using Microsoft Visual C# 2005 Express Edition?

Visual C# Game Development...?
Videos: http://msdn.microsoft.com/directx/xna/vi...


Mainly Text:http://www.xnatutorial.com/





Best PC Game Dev site: http://www.gamedev.net/
Reply:Pheewww.


I don't think its as easy as just watching a video!


I have the official Microsoft Visual C# book to help me!


Microsoft do have videos on their site I think, I prefer reading from paper though. To be able to teach you how to do games programming in a video, I reckon the video is going to be a few hours long!


Good luck though, Ant...


PIC programming in C language?

Any web giving free basic tutorial for learning basics of PIC programming using language "C"

PIC programming in C language?
Check out the vendor website for application notes... Also forums are a great source of help.





IAR systems offeres a free compiler (the workbench edition) I used their version for AVR micros and was quite pleased with it. The AVR workbench edition for AVR was limited to a 4K compile and did not have loating point math libraries. (THe full version is not limited) I do not know exactly what limits IAR would place on the workbench edition for Microchip PIC's.
Reply:Check http://myitcareer.org/


Visual c++?

i have had absolutely no experience of programming. every tutorial i find is for people with programming experience. I have the microsoft visual c++ express edition but i can't find a good tutorial. If someone could provide a link to one i would be forever grateful

Visual c++?
cplusplus.com tutorial - Excellent tutorial for learning C++ from the basic level. Highly recommended





Bruce Eckels Mindview - Also an excellent site for learning C++, mostly because of the freely downloadable Thinking in C++ in 2 volumes. These are some of the best explanations of the C++ language, but definitely at a more advanced level. Books are available here





cprogramming.com tutorial - another good site for C++ programming tutorials. They are not quite as methodical as the cplusplus.com tutorials, but they are very useful.





MSDN for C++ - Microsoft's site for the Visual Studio 2005 C++ compiler that we use in this class.





C++ Links from Bjarne Stroustrup - This is a collection of links about C++ that is maintained by the originator of C++ (who now teaches at Texas A%26amp;M)
Reply:Great tuorial





http://www.cprogramming.com/tutorial.htm...
Reply:With absolutely no programming experience you may want to get a good book on basic C++ programming ( I find it easier to work from books rather than Web sites/online tutorials etc.)





Its been so long since I read any of them though ?I can't think of a good one - But recently I bought c++ for dummies which is good both for the basics and more advanced features in the language. Good reference book
Reply:Try here for info





http://www.good-tutorials.com/


http://www.digitaljuice.com/


http://www.tutorialkit.com/


http://www.codestyles.com/


http://www.sitecube.com/website/promo_bw...


Try here for info


http://www.techtutorials.net/





http://www.theeldergeek.com/
Reply:http://cprogramming.com/ is a good site.





I highly recommend getting a book. You have no idea how bad an idea it is to solely rely on the web, especially if you have 0 programming experience.





Take a look at http://accu.org/index.php/book_reviews?u...





The organization reviews books for technical accuracy. You'll notice there's a lot of bad books that get good reviews on Amazon (they are wrong technically). There's two good ones I recommend: C++ primer by Lippman and Accelerated C++ by Koenig. Accelerated C++ is pretty fast in pace and is probably more suited if you have prior experience, so perhaps C++ primer is a better choice for you.





Please do *not* go for Visual C++ specific tutorials. Unlike generic C++ tutorials, they are designed to work specifically with Visual C++ only. You won't understand and learn C++ properly, you won't learn programming properly.

florist shop

C++ books & onlinetutorial?

Iam finding difficult in learning c++ programming?


will anyone tell me the book which is easy 2 read %26amp; pls tell me the free online tutorial





if possible also suggest books easy to learn c++, available in india

C++ books %26amp; onlinetutorial?
you can download limewire from www.limewire.com and then search for c++ in the documents search box and then it will bring tons of books for c++.
Reply:you can get lots of books online..


i will suggest you even better..


register on a site called projectw.org


There you can find links to anything you want.


Search in the search column and enjoy


reading and all kinds of stuff.
Reply:I'd like to suggest: http://www.freeprogrammingresources.com/...





This websites has a lot of links to free C/C++ resources on the internet.In addition, you mak also like to see these sites:





www.allfreetutorials.com/content/view/...


www.developers.net/all_content/more/Tu...


www.codeproject.com/cpp/


www.softwaretrainingtutorials.com/c-pl...
Reply:the best place to buy programming books, or any type of tech / academic book is Textbook411.com
Reply:there are various books available for c++like "TEACH YOURSELF" by Hebet Schildt(Best book to learn c++),Programming with c++by E Balaguruswamy.