Monday, May 24, 2010

Where can i learn the C# language?

where is a tutorial online

Where can i learn the C# language?
http://cplus.about.com/od/learnin2/
Reply:google it


check your local library for c programing books
Reply:Try the Microsoft web-site.
Reply:Check this site out


Idea for a beginner's C++ Project?

I'm taking a high school programing course and for our final we have to give a program presentation. We are currently using the tutorial at


http://nova.umuc.edu/~jarc/sdsd/





We have to demonstrate concepts learned in lessons 1-7. This includes:


Assignments and arithmetic expressions (+, -, /, *)


And the logical expressions if, or, else, and while





We have 7 more hours of class time before it is due and I have the resources to work on it outside of school.





Tic-Tac-Toe was my first choice but someone else is using it.

Idea for a beginner's C++ Project?
You could set up a program that users can ask for a certain digit in different mathematical series. Say like I say I want the Fibonacci series with the 20 digit of the series. Just pick a couple different series to put in and than program it to figure out the digits from it. That would be a sight to see if you ask me. Hope this is a good one for you.
Reply:An easy but impressive programming project is a sort algorithom.I.E: a bubble sort.Jazz it up a tad with some nested, optimisation loops and you're onto a winner.


How do i split my c++ code into various source files?

im using eclipse with CDT. my program works right now as a single source file. i want to split into various, so is easier to keep coding. i have problems with includes and stuff. what is the right way to do this? i didnt find any tutorial for this.. thanks

How do i split my c++ code into various source files?
Separate out the functions, according to what makes sense to you, into additional .cpp files. You can right-click on the project name to add the new files. Write declarations for those functions in a header file or files (e.g. filename "mystuff.h"). Then in whichever .cpp files use those functions, put #include "mystuff.h" at the top. Name the .h file or files in a way organized to relate to the .cpp files whose functions they declare. Think about how you would most conveniently re-use the functions later.

floral centerpieces

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?

Iam finding difficult in learning c++ programming?
I like Herb Schildt's books, and you can certainly find plenty of them on Amazon. Check out the link below, and read the reviews.
Reply:I really like the cplusplus.com language tutorial. Link below...
Reply:Well I like the Prentice Hall books on C++ and C#


Right now I'm learning VB6 and I bought the "Visual Basic for dummies guide for $30 from the local bookstore. I also got VB for the complete idiot from our local library and that came with a working model edition that can be installed on any computer for learning purposes only. It goes through the whys and Wheres instead of going directly to the hows. Which is educationally better maybe but annoying.


Need help with dev c++ compiler error, attempting to use directx?

I am having problems compiling this program. It is probably too long to be posting here, although it's really not long at all. It is the program for the tutorial located here http://msdn2.microsoft.com/en-us/library...





When I try to compile, it says 31 errors, but most if not all appear to be warnings (idk if warnings prevent compilation). They are:





'pragma once' is obselete in strsafe.h





'com_interface' only supported with


-fvtable-thunks in unknwn.h





and the rest say (theres a lot of em):


'com_interface' attribute directive ignored 'com_interface' only supported with -fvtable-thunks





Thanks for your time. I really do appreciate being able to ask questions here cuz i get lost a lot.

Need help with dev c++ compiler error, attempting to use directx?
Just from first glance, it seems like you have a header declaration problem. Are you sure your INCLUDE path is pointing the the correct version of the headers you need?





Most warnings should not prevent a compile, but they often indicate problems that will cause runtime errors, so they really should be fixed.


Hi! You know how c# uses visual studio compiler, my question is what do i use for Python and where do i downld

so where do i dwnld it from pls and if possible i need a tutorial on python

Hi! You know how c# uses visual studio compiler, my question is what do i use for Python and where do i downld
this :)


enjoy
Reply:Look for a Python that works under .net following is a link or try iron Python. If you already know C# this will be easiest.


http://sourceforge.net/project/showfiles...





Other way is to find alternate IDE like active state is. Active state is IDE for Python /Perl and quite a bit of other free languages. The compiler is free but you have to pay for IDE.


www.ActiveState.com





Samples and documentation can be found with Iron Python


http://www.codeplex.com/IronPython


http://www.thescripts.com/tutorial.html
Reply:Python doesn't require compilation as it is an interpreted language (although there are programs to turn python code into native exe I think py2exe is the package?)





The previous link provided will be good to get the python interpreter loaded on your computer... I recommend BoaConstructor for your dev environment... and for tutorials just look at some code... if you're comfortable with c#, you should be able to pick up python relatively quickly.


Need Help in C#?

hi,


how can i creat a tool like richtextbox that it can read the images and hyper texts and...,i know it for XML files but waht about inserting images and tables?? , is there any tutorial PLZ??

Need Help in C#?
The built in Rich Text control handles images and hyperlinks, you only have to hookup a few event handlers to deal with them. I'm sure if you go into help in visual studio and search for topics on the RichText control, you'll find more information, probably articles and sample code.
Reply:You are talking about writing a custom control. Google that, there are a lot of forums and tutorials out there about building custom controls in .NET

wedding florist

Is microsoft visual C# hard to use because if it i then what is a good games making software?

i have a good game i want to make but has XNA games studio express got an online tutorial to take me though the step of creating my first game

Is microsoft visual C# hard to use because if it i then what is a good games making software?
well, You need EXTREMELY good knowledge of C++ and good mathmatical skills to create a game, if you have that, I would download and install DevCPP (AKA DevC++) It's free also. Easy to find, just search for it.


I am writing C++ and I have a question.?

Ok I am writing a DOS program, I am using a tutorial, I am doing variables, and I need to make sure that I wrote it correct, for the right output in the screen, but the screen only pops up for about a milisecond, and I dont know how to fix that.

I am writing C++ and I have a question.?
Add the following line before "return 0;":


system("pause");





There's also:


cin.get(); // C++


getchar(); // C





Explanation: The CMD windows is opened to execute your program. When the program terminates, the CMD windows has to close. This is normal. So if you don't want you program to execute and terminate quickly, you have to pause your program some way.
Reply:At the end of the program right before "return 0;", write this:





system("PAUSE");





That fixed the problem that I had on my first programs too.


Good luck!!! ;-)
Reply:You could put a cin %26gt;%26gt; b; statement at the very end of the program. This will cause it to wait for your input.


Depending on the your devlopement environment, you could also set a break point somewere before the end of the program.


Figure of speech- C.A. help?

what figures of speech are these like similes metaphors personification...etc.?


1. from the day mr radley took arthur home, people say the house died.


2. she looked and smelled like a peppermind drop


3. ...but jem was a poor example. no tutorial ever devised by man could have stopped him from getting at books.


4. jem looked at me furiously, could not decline, ran down the sidewalk, treaded water at the gate, then dashed in and retrieved the tire.


5. miss rachel went off like the town fire siren: "Do-o-o"


6. She was bullet-headed with strange almond-shaped eyes...and an indian-bow mouth


7. "For a while" in Maycomb meant anything from three days to thirty years.


8. Lightnings rods guarding some graves denoted dead who rested uneasily; stumps of burned-out candles stood at the heads of infant graves. It was a happy cemetary.


9. Zeebo cleared his throat and read in a voice like the rumble of a distant artillery.





any of those are appreciated! i'm horrible at this. ha! THANKS!!!

Figure of speech- C.A. help?
"A good book is like a good meal." A simile suggesting that a book may be as ( mentally) nourishing and satisfying as a meal. It will usually have the word like in it.





"A wire is a road for electrons." A metaphor suggesting that electrons actually do use a wire as a road to travel on.





A mixed metaphor is an incongruous phrase like, "Early success can be a liability."





Personification gives human qualities to non-human things.





Litotes are gross understatements. Queen Victoria's phrase, "We are not amused" is a famous example.





Meiosis are little snotty nicknames, like calling a mechanic a grease monkey.





Hyperbole is a dramatic overstatement. I'm starving to death.





Epithet...using an appropriate adjective to characterize something, like a blood red sky or a stone cold heart.





A malapropism is a misuse of words because of a similiarity. Famous one by Dan Quayle: Republicans understand the importance of bondage between a mother and child." He meant bonding.





Metonomy is substituting a word or phrase for another closely related term, like crown for royalty. "Have you read Faulkner?" rather than have you read Faulkner's books. Sometimes people refer to the art and science of theatre as "The Theatre".





Syllepsis is using one term to describe two different things, like "He lost the game and his temper."





Alliteration is the repetition of initial consonant sounds, like softly snowing.





Assonance is the repetition of vowel sounds, but I can't think of one.





Euphemism is the use of a "more polite" term, like saying someone passed away, instead of died or calling false teeth dentures. Saying someone is chubby instead of fat.





Maybe this will help you to understand figures of speech and you can figure these out for yourself...that was syllepsis.
Reply:2. simile


3. hyperbole


5. onomatopoeia


6. metaphor


8. personification, there's imagery too


9. simile


Question in C++??? help soon?

i was searching in the internet i found a tutorial that uses "cstdlib.h" header file they said that it is available in all the compilers i tried on turbo 3.0 and dev cpp builder latest version it doesn't worked they said this header file cannot be found please help me.

Question in C++??? help soon?
you can use stdlib.h
Reply:I tried that, but it still gave me the same errors!


'There is no namespace std'


'Missing identifier: string'


That is not the exact wording, but that is what it meant. Report It

Reply:Prepended header files with 'c' indicate the standardized ruling for using


the C runtime library (standard portions) with C++. Thus time becomes


%26lt;ctime%26gt; instead of %26lt;time.h%26gt;, %26lt;stdio.h%26gt; becomes %26lt;cstdio%26gt;, %26lt;stdlib.h%26gt; becomes


%26lt;cstdlib%26gt;, etc.
Reply:May be that tutorial is wrong. If they said that every version of all compilers has that header, that should be "stdlib.h" not "cstdlib.h".


If is really true try to search on the net what header is actually
Reply:mmmmmmmmmmmmmmmmmm........ i need to review my C++ programming!

local florist

In C++, two different ways to build 'Hello World'. What's the difference?

im not really sure if the code will come up here.





like.. well..


here's the link , at the bottom you'll see the question i asked with a name called 'Wesley':





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





i think that link takes you directly to the comment i made.





i'll click 'add details' to this question and attempt to put the code. if it works, woohoo. if not, use the link.

In C++, two different ways to build 'Hello World'. What's the difference?
Your code syntax is wrong...you don't need to declare the main() before implementing it, other functions need to be declared as prototype and then, implement it and then call it in function main.





Remember the main(), is the function where the program starts to execute.





Yes, there are thousands of ways just to print the "hello world".
Reply:Humm, looks a little bit hard to understand your question, I assume you are asking the differences between:


===(a)=====================


#include %26lt;iostream%26gt;


int main()


{


using namespace std;


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


cin.get();


return 0;


}





=====================





And:





===(b)=====================


#include %26lt;iostream%26gt;





int main();


int main()


{


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


return 0;


}


=====================





First, the 2 statements on case (b) "int main()", are because usually when you use a function inside another, you first have to declare the used function, if its code is below the function that calls it. But in this case it doesn't look to be necessary, since there is only one function (main). You would need to declare it in this case:





void somefunction();


int main()


{


somefunction();


return 0;


}


void somefunction()


{


//do something


}





But you can avoid declaring first somefunction() if you write the code of somefunction above main(), that is:





void somefunction()


{


//do something


}





int main()


{


somefunction();


return 0;


}





Now, about:


using namespace std;


allows you to write: cout %26lt;%26lt; "Hello world!" %26lt;%26lt; endl;


Else you would have to write:


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





(I guess you mean \n instead !n, since \n=endl);





The problem with c++ is that compilers are not absolutely compatible among them, you can use ms vc++ for compiling something and then borland or gnu c won't accept it.


So maybe some things are optional in one compiler, but other would accept only one of them.


C++ keeping remainder of integer problem?

I'm coding a program for school, it is a vending machine. Bassically my program takes in an integer input (no floating point) from the user up to 2.00$ and then outputs the correct amount of coins to give back to the user (quarters,dimes,nickels). I've figured out how to display the coins on an integer, however i can't figure out how to keep the remainder of the integer after i get the intial cin %26gt;%26gt; from the user. If i put in 1.66 for example it just closes down the program. If anyone can help or point me in the direction of a tutorial i would appreciate it alot

C++ keeping remainder of integer problem?
I would guess that if you are allowing your user to input 1.66, and you must process everything in integer, then you need to parse the input as a string and generate two integer values that are added together.





For example, this small function will accept a character string and return the number of cents:





int buf2cents( char *buf )


{


int cents = 0;


char *token;





token = strchr( buf, '.' ); /* point at decimal */


*token++ = 0; /* convert into second string */


cents = atoi( buf ) * 100 /* convert dollar value into 100s of cents*/





if( token != NULL )


cents += atoi( token ); /* convert cents to integer and add */





return cents;


}





If you are keeping the price of your items as integers (cents) the change is simple subtraction, and it sounds like you have worked out how to do the math to know what coins to return.
Reply:try converting your input into floating point bec. your program's variables are initialized as integers and yet you put in floating point input. in short, the program is expecting integers and you give it floating point.


[C++] Given a directory, retrieve all files and subdirectories?

OK, so I need to write this function capable of traversing a directory and retrieving its files (and properties) grouped in subdirectories (if the case).





I will use the stuff retrieved to populate a MySQL table, but the MySQL-part is the simplest ingredient of the task.





I will highly appreciate if you point me to a tutorial or a code snippet.

[C++] Given a directory, retrieve all files and subdirectories?
no special library needed. just use FindFirstFile() and FindNextFile() functions;





FindFirstFile() takes the arguments: pointer to a string with the file name you want, and a file data structure.





simply to use





WIN32_FIND_DATA FileData;


char file[MAX_PATH];


HANDLE hnd;


DWORD attribute;


int error;





//fill in the file array with the directory in question


strcpy(file, "c:\\mydirectory\\");


//add the wildcard search


strcat(file, "*");


attribute = FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_HIDDEN;


hnd = FindFirstFile(file, %26amp;FileData);


if (hnd != INVALID_HANDLE_VALUE)


{


__if ((FileData.dwAttributes %26amp; attribute) = FILE_ATTRIBUTE_DIRECTORY)


_____//FileData.cFileName contains the subdirectory name


__do


__{


____error = FindNextFile(hnd, FileData);


____if (error != 0)


____{


______if ((FileData.dwAttributes %26amp; attribute) = FILE_ATTRIBUTE_DIRECTORY)


________//FileData.cFileName contains the next subdirectory name


____}


__}


__while (error != 0);


}


FindClose(hnd);


//now get the files in the directory


strcat(file, ".*");


hnd = FindFirstFile(file, %26amp;FileData);


if (hnd != INVALID_HANDLE_VALUE)


{


__//FileData.cFileName contains the name of the file


__do


__{


____error = FindNextFile(hnd, FileData);


____if (error != 0)


____{


______//FileData.cFileName contains the next file name


____}


__}


__while (error != 0);


}


FindClose(hnd);








NOTE: the properties can be retrieved through the FileData structure.
Reply:C++ does not support what you are trying to do. But it's your lucky day, I guess. The good people at Boost.org have helped you out with a library. It is open source, so have fun.
Reply:No offense but the guy who said C++ doesnt support that


feature is a moron. (sorry = / )





I would highly recommend just using someone elses


libraries for now.


Google is your friend on this one.





- Void


C++ windows.h help?

Can you explain the


"win Main(HINSTANCE hInstance,


HINSTANCE hPrevInstance,


LPSTR LPCmdLine,


int SW_SHOWMAXIMIZED)"





and


"winclass.sizeof


winclass. style


winclass.lpfnwndproc


winclass.cbclsextra"





Please explain these and if you have a website tutorial can you please send it?





Thanks

C++ windows.h help?
winclass.sizeof is the size of the structure so when you pass the structure to a function requiring winclass structure, the function can determine if it is running in 16-bit mode, 32-bit mode or 64-bit mode.


winclass.style determines how a window should be created and whether it should have a title, use a system menu, use minimize and maximize buttons and so forth.


winclass.cbclsextra is amount of extra space to reserve for application defined data.


WinMain(HINSTANCE hInstance, HINSTANCE prevhInstance, LPSTR LPCmdLine, int cmdShow)


hInstance is the numeric identifier of your program, allows you to identify programs by number.


prevhInstance is 0 if this program is not already running or running under Windows 32/64 bit system.


prevhInstance is non zero if this program is already running in 16 bit Windows system.


LPCmdLine stores the arguments of the program passed.


cmdShow is how the Main Window is shown


By default it is a window set in a certain position and size.


SW_SHOWMINIMIZED is a window that has been minimized.


SW_SHOWMAXIMIZED is a window covering whole screen.

floral deliveries

C# 10 points......?

Hello.


I need some source/s or tutorial/s for convert a MP3 file to a WAV file.


Thank you

C# 10 points......?
Here's an article from csharphelp.com that would seem to do everything you need.





http://www.csharphelp.com/archives/archi...
Reply:http://www.codeproject.com/KB/audio-vide...
Reply:1. Go to My Documents


2. Click on Tools%26gt;Folder Options...


3. Click the View tab


4. Find the ''Hide extensions for known file types'' and uncheck it


5. Rename your MP3 file to a WAV file (example: sound.mp3 = sound.wav)


6. Something should appear. Click yes


7. That's it!


C# 10 points......?

Hello.


I need some source/s or tutorial/s for convert a MP3 file to a WAV file.


Thank you

C# 10 points......?
Daily MP3 provides step-by-step instructions for converting MP3 files to WAVs.





you can download Winamp and convert some MP3s.





Most CD-R or CD-RW drives come equipped with software that allows you to arrange WAV files to burn onto a blank CD. Using the software and Winamp, you should be able to make your own CDs and blast your favorite tunes from most CD players.





Remember that WAV files are not compressed and can be quite large. Unless you've got unlimited hard-drive space, you might want to ditch the WAV files once you've successfully created a CD.





Also, please keep this in mind: When we're talking about MP3s, we're referring to legal MP3s. You're on your own with the RIAA if you duplicate copyrighted material!
Reply:lol ha HA WILL
Reply:http://www.downloadjunction.com/product/...





http://www.convertmp3towav.com/





http://www.audioutilities.org/wav-to-wma...





With the same time u could be on yahoo answers you could be googling this information..wasnt hard.
Reply:http://www.mp3-converter.com/mp3_convert...





download one of these programs.They're easy to use.
Reply:I still use a very simple app called mp32wav. Google it or go here for one version:





http://www.newfreedownloads.com/find/mp3...
Reply:Free Converter Program found at the following link


http://www.download.com/BeeThink-MP3-WMA...
Reply:you should download a program called switch...is easy to use and is free also...here is the link http://www.nch.com.au/switch/plus.html


C++ Programming: How to dowload a file from a URL on the internet?

For example:





Say there was a file: www.testpage.com/file.txt


And I wanted to download "file.txt" to my computer.





What classe(s) and lines of code do I use?





Or better yet, do you know of an online tutorial that can explain this to me in detail?





Thanks

C++ Programming: How to dowload a file from a URL on the internet?
I don't think this answer is quite what you want, but it might be helpful any way.





If you are using osX Linux or Unix you can use curl.





i.e., curl www.testpage.com/file.txt %26gt; filename


In C++ what is <fstream> good for?

I've just read a tutorial about file i/o at http://www.cprogramming.com/tutorial/les...





I understand it, but I don't know what it is good for. It seems like this is just an elongated process of writing cout %26lt;%26lt; "text";

In C++ what is %26lt;fstream%26gt; good for?
cout is the output stream that displays text in a console or command prompt if it is not redirected. CGI uses it for HTTP responses. %26lt;fstream%26gt; contains classes for reading/writing files that normally are written to your hard disk or some other secondary storage.

buy flowers

Starting C++ windows programming: frustrating me?

I have got a good handle on dos programming so now I'm starting windows programming. On the first section of the tutorial (message boxes) I was fine. But when I went on the to the second section there was all this crap: http://www.winprog.org/tutorial/simple_w...





The first section was easy but in just advancing one there was so much.


Do I have to memorize all of this? If I do, then can anybody


give me a good method for doing so?

Starting C++ windows programming: frustrating me?
When creating a windowed application in Dev-C++ the editor will place this code for you. But it doesn't hurt to understand how things work and how to manipulate them.
Reply:That is the old SDK C coding method of writing a windows application. So if you want to learn that methodology, then yes, you will need to memorize that every WinMain that displays a window will need a message loop, and every window needs a WndProc to process the event driven messages. Then you will need to learn the hundreds of messages that can be sent to the WndProc based on what you are doing like WM_RESIZE for when the window was resized, WM_CREATE for when the window is created, WM_PAINT for drawing in the window,... Everyone of these messages has an LPARAM and WPARAM which are different based on each message set to the WndProc.





Back when I worked for a CAD company, our main WndProc function was like 2000 lines long, and each pretty much only called a function:





case WM_CREATE:


doCreate();


break;





My advice is to pick a tool that abstracts all this.
Reply:Simpler if you go with MFC, GUI programming is not standardized and most would tell you to use Resource tools like Visual Studio.


C# coding question (really easy)?

Trying to follow a tutorial but every time I debug/run a section of code it only appears on screen for a second. In the tutorial a msdos/cmd box appears but instead of ending it says 'press any key to continue'. Where can I toggle the option to fix this or what is the section of code needed to make a program wait for input before ending?

C# coding question (really easy)?
You can just put a Console.ReadLine(); statement at the end of your main() method to pause the program until the user presses the enter key.
Reply:Just Console.ReadLine() as the last line of your main() method:





main()


{


...............


...............


.


.


.


.


.





Console.ReadLine();


}


How do I display an image in a CERTAIN P(preferably GIF, PNG, or JPG, but BMP will do) in VC6 / C++ using MFC.

I strictly use MFC if I can, VC6 only. I HATE console apps/code with a passion. They are utterly useless. I am so sick of all these tutorials that just 'paste a pic' on a white 'Edit Box' but don't tell you a thing about HOW in the world it got there! PLEASE for all that is decent and holy in the gaming world, please, please help me without mentionint the following words:





cout, cin, console, Linux, Unix, Mac, iMac, IPOD, VB6, .NET, VC7, vc8, Borland, Builder, CDocument, 'make it a memer of the %^%26amp;#$ class' and so on. I just want to know how do I put an image at the location of X, Y, and how do I CHANGE X and Y. I'd like to be abl to have 2 versions of this code, one where I am able to set the movement myself, and another where I can 'click and drag' the graphic (such as a chess piece or checker?) JPGs have great color as GIFs seem splochy, but only GIFs/PNGs have transparency, although I've heard rumours of transparent JPeGs! A versitle code that can use all 3 would be nice.

How do I display an image in a CERTAIN P(preferably GIF, PNG, or JPG, but BMP will do) in VC6 / C++ using MFC.
i tryed to send you a email but some how it did not go through so i am "answering" here. you are very ignorant about macs. i have worked with a lot of pcs both fast and slow, and never had any thing but problems with them. all pcs are junk compared to macs. macs never get viruses, have the best hardware in the world, and have been rated the best computer of any price. they last long, have all good software, pcs have a lot more software but most of it is junk and if you got rid of all the bad stuff there would be less for pc than theere is for mac. i know what a good computer is and you dont. i will never use a pc again. my mac is the best computer i have ever had, and when i need a new computer i will get a mac. PCs STINK.


I want to change my profession to programmer. I know a bit html and also hv done basic of C few yrs back.?

Can any 1 pls gv me some information how to reach the level of doing programming in .NET


what languages should i have to know before doing programming in .NET and pls do let me know where i can get tutorials for those languages for free.

I want to change my profession to programmer. I know a bit html and also hv done basic of C few yrs back.?
Well, you'll be better off getting a degree in it, but the URL below has a lot of free resources for exploring different languages and types of programming. Maybe it could help you decide what you need to know and which direction to go from here.
Reply:What is ur background Pls clarify
Reply:To be a good web programmer, I suggest learning C# (C Sharp), ASP.NET and Java (and Java Pages if you can). Alot of development is using the new Visual Studio and that's a good place to start.





Make sure you have a firm foundation in HTML, javascript and CSS before you jump into the programming.
Reply:Ya, Ofcourse you should know everything about programming because there is asp.net, vb and lots of other programming which are all different aspects of programming.. check out on net if u really need to know abt it and your interest in any particular

floral

I want to learn Perl, I havnt learned any languages. Should I directly jump to Perl or start with C?

From where can I learn that? Is there any free tutorials avilable? Please specify the ste address... Are they really effective??

I want to learn Perl, I havnt learned any languages. Should I directly jump to Perl or start with C?
perl is a great language... I learned by reading example, and downloading perl modules and reading them. No particular site google (at the time I used altavista) should be a great start!





all the perl modules that are worth using in general application are at http://cpan.org





google has 'code search' to search for code samples in any language!





that's the good new... BUT (and there is always a but)...





Perl is not a great language to learn first. There is no reason not to also learn javascript along with it!





Python, Ruby, Perl 6, Javascript, and some others are the future.





Perl has a legacy of BAD CODE. In the old perl 4 days, it was a sloppy mess. Perl 5 gave use some structure and perl 6 cleans up alot of sloppyness.





C is not a great language (c++ or objective C is better)





You can get your feet wet in perl and javascript very quickly.





Any language can be written poorly, but it's extra easy in perl!
Reply:Learn Python. It's far superior to Perl.
Reply:i prefer either java or maybe vb.net...and it also depends on what your trying to do...because php is also a hot web programming language
Reply:I Would Lear C First Because Its Easy To Read For People And Computers (Don't Take The Name Of The Books As An Insult).


http://www.dummies.com/WileyCDA/DummiesT...





Then Take A Look Into Perl.


http://www.dummies.com/WileyCDA/DummiesT...
Reply:If you've never programmed before in your life, you need to start by learning structure %26amp; syntax. I suggest Basic or VB to start. From there, you will have a much better idea of what it takes to program in REAL languages.
Reply:PERL is very programmer friendly language its easy and most effective even its used for server related automating task. What u need how u solve the problem perl u provide all things u need.





Happy learning.
Reply:I'd start with Perl as opposed to C, although for me it was the opposite. C is much more in-depth, it has a steeper learning curve.





I suggest a scripted language (Perl, Python, Ruby) as your first language; once you get the hang of variables, conditionals, and control structures, you'll be ready to move to C.





As for books, check out O'Reilly, the 'Learning Perl' book (aka Camel Book) is one of the best.





After you learn some Perl, check check out C/C++. Java and C# are based on the same syntax as C/C++, so jumping around will be easy at that point.





Happy coding!
Reply:Programming is basically involved a logic. If you want to learn pearl it's ok. No need to learn C or VB etc. to go into it.


How do I use the InsertCommand to insert a new record into a database from textboxes? (Using C#)?

I'm trying to add new records to my database using 4 textboxes, one for each field in my databases table. I've got ID, Firstname, Surname and Course.





But I can't figure out at all how to link whats Inputted into the textboxes to be added as a new record to my database when the "Insert Record" button is pushed.., i've spent nearly 2 hours searching the internet for tutorials and people asking similar questions but I can't find anything that works.





I think the solution might be in this line of code:








InsertCommand="INSERT INTO [Data1] ([ID], [Firstname], [Surname], [Course]) VALUES ()"





I've tried putting the ID's of my textboses in the "VALUES ()" part..


[I]


(e.g. VALUES (ID.Text, Firstname.Text, Surname.Text, Course.Text)[/I]





But that doesn't seem to work, I need the values to be what has been inputted into my textboxes, but I'm not sure what the correct way to do that is or what I need to write between the brackets.





My textboxes ID's are ID, Firstname, Surname and Course.

How do I use the InsertCommand to insert a new record into a database from textboxes? (Using C#)?
Boy did you come to the right guy. I've written a dozen books on this subject... ;)





Okay, you're close.


Consider that the INSERT SQL statement has to include the actual values and these have to be in "framing" quotes to deliniate strings. Keeping things simple, you'll need code to make the INSERT statement look like this:





INSERT INTO [Data1] ([ID], [Firstname], [Surname], [Course]) VALUES ('Fred', 'Farkle', 1234)





To get C# to insert the values into the VALUES clause, you should (when using best practices) create a Parameter for each of the values to be passed into the clause. That's a bit advanced so let's take a smaller step.





Let's say the values are in TextBox1, 2 and 3. This means you need to concatenate the strings into the INSERT statement something like this:





InsertCommand="INSERT INTO [Data1] ([ID], [Firstname], [Surname], [Course]) VALUES ('" + TextBox1.Text + "'," TextBox2.Text + "', " + TextBox3.Text + ")"





Note that the first two strings are framed with single quotes ('). Yes, this can lead to a couple of serious issues including SQL injection as well as the O'Malley problem--both of which are discussed in detail in my books.





hth


Im trying to learn to create an online game. i was reading its best to start with vb 6.0 then move to c/c++ ca

can someone help me i have been trying to download vb 6.0 but cant seem to get it i have windows xp or if anyone could point me to a website where i can download the same program i can learn from that woud be awesome basically i want to learn to write a mmorpg and have no idea where to start i have no car so no transportation to get books and no money basically i have to learn everything online im sure there is a website that has downloads and tutorials for free that is very helpfull for beginners

Im trying to learn to create an online game. i was reading its best to start with vb 6.0 then move to c/c++ ca
Don't go with VB 6. Use VB 2005. It's much more robust and has a ton more features.





You can get the express version for free on the Microsoft web site. Just search "visual basic express". If you also want to try C++ and C# download the "visual studio express".





It's the best and has great help features.





The express versions are so good I would pay good money for them... but they are free.
Reply:you can get a free download of stuff from microsoft





microsoft visual studio 2005 express versions are now free.





so you can get basic or c.





there are online manuals and tutorials and forums


Is there a site which can teach me advanced concepts in programming languages such as php c++ asp?

I refer to advanced tutorials on these languages

Is there a site which can teach me advanced concepts in programming languages such as php c++ asp?
PHP Sites


http://www.php.net


http://www.phpfreaks.com


http://www.phpbuilder.com





ASP and C


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


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





Also the W3schools.com is good.
Reply:yup. go to w3schools.

daisy

I need help understanding between call by reference and call by value in C++?

Please, guys, I've looked around the web for extra tutorials I can't seem to be grasping this simple concept. I need to know about it for tomorrow's test... If you guys can explain in a simple way I'd be even happier... thanks..

I need help understanding between call by reference and call by value in C++?
Here's a video that explains passing arguments by reference and value:





http://xoax.net/comp/cpp/console/Lesson1...
Reply:When you call a method by reference, the callee sees the caller’s original variables passed as parameters, not copies. References to the callee’s objects are treated the same way. Thus any changes the callee makes to the caller’s variables affect the caller’s original variables.





Basically, when you call by reference - you're actually working with the original object, so modifications to that object will reflect in the original. Calling something by value effectively creates a duplicate value.
Reply:if you call by reference


void foo( Thingy%26amp; param){


param++;


}


when foo finishes, the value you passed into foo comes back altered...





when you pass by value


void foo2(Thingy param){


param++;


}


a copy of param is made and it's the copy that's modified, so after your call has finished your original calling parameter isn't altered





Thingy iAmAltered, iAmStillTheSame;


foo( iAmAltered );


foo2(iAmStillTheSameAfterwards);








the function modifies what it's been given, the first time you passed it a reference to the variable, so the variable got modified, the second time you made a copy, put the copy on the stack and the copy got modified.





if you want some bonus points in your test, you should always pass by reference, as this only ever loads 4bytes (the reference/pointer size) on to the stack where as passing by value a large instance puts as many bytes as the instance is big on the stack,


thus if you're not wanting to modify your parameter but you're passing by ref you'd make the parameter const for safety :)


foo3( const Thingy%26amp; param ){


param++;//this won't compile because it's a const...


}
Reply:In a function call, parameters are put on the stack.


Call by value - the value is put on the stack. The function can change the value internally, but the caller's copy is unchanged.


Call by reference - a pointer is put on the stack. If the function changes this value, the caller's copy is also changed.


Are there any resources that are specifically aimed at those transitioning from Java to C++?

Books, tutorials, etc.

Are there any resources that are specifically aimed at those transitioning from Java to C++?
I haven't heard of any. Having used both to some extent, my advice is this: Don't even think of it in those terms! While the syntactical elements are somewhat the same in ways, there are many things that look identical and will get you into a *LOT* of trouble with C++ in a big hurry. Take a deep breath, pick a tutorial or two, and try to learn as if you are learning the language from nothing. Any time you start thinking that "Gee, this is just like Java!", take a break and reset your mindset. It won't be. Pay particular attention to memory management issues, scope and lifetime. These are real problem areas, at least for me when I started.


Advice is free, and well worth it. So are the tutorials at the URLs below. Good luck.


I am trying to open a 3d studio max model using some c++ code so that i can rotate it and zoom in and out.?

Can anyone point me to some tutorials or code to do this either in OpenGL or something else.

I am trying to open a 3d studio max model using some c++ code so that i can rotate it and zoom in and out.?
http://www.gamedev.net/reference/program...





Loading and displaying a mesh from an .X file ( 3ds Max exports to this file format )





Hope this helps.


Can i use multiple
MemorySticks with DarkAlex 2.71-SE-C
firmware? 4 example:
1 4 music and one
4 ISOs?

I am asking this because some tutorials on the net are saying that i need some folders in the memory stick root or my psp will brick. Thanks!

Can i use multiple


MemorySticks with DarkAlex 2.71-SE-C


firmware? 4 example:


1 4 music and one


4 ISOs?
If you keep all your homebrew and ISO's in one memory stick, and your music and movies on another, everything will be fine.





The reason they say it may brick is because you have to have a folder called Game150 and put the games in there.





You can store UMD game saves on another stick, but ISO game saves must be on the same one as the ISO's. Here is a good website if you need more help.


http://pspupdates.qj.net/category/How-To...

gladiolus

Does anyone know of a shop around Manila or Q.C. that changes psp faceplates and backplates?

Does anyone know of a shop around Manila or Quezon City that changes psp faceplates and backplates? I've seen a lot of tutorials but I'm afraid that I might break mine if I do it myself. I want to change it as soon as I find one.

Does anyone know of a shop around Manila or Q.C. that changes psp faceplates and backplates?
probably greenhills...san juan is still in mnla right?


To those who develops programs, can you teach me C programming through e-mail ?

My e-mail is rickpeter668@yahoo.co.uk . I tried tutorials but they are not clear.

To those who develops programs, can you teach me C programming through e-mail ?
Just reading tutorials and books won't help you learn how to program in C or any other language... The best way to do this is practice! You should start with solving problems that are given at the end of each section in a tutorial or a book (if it doesn't have any look for another one).


A good book to start with is Bruce Eckel's Thinking in C/C++, and as for tutorials you'll find plenty available at this page:


http://cprogramming.com/
Reply:Email isn't going to be any clearer and it would take a long time.


A good book might help, but maybe you just need someone you can ask direct questions of. Try finding a course near you.
Reply:Honestly, no.





There are books you can read (especially anything by O'Reilly), there are schools you can enroll in, but in the end the only real way to learn is by coding. I suggest you buy a book and just start coding your way through it. Do the examples first, see how they work, then build from them.


I have a very basic question about drawing in C#. A best answer will be awarded.?

I have a class that draws itself. When the class is instantiated there are a lot of calculations. things like:





Rectangle leftCellRectangle = new Rectangle(x1 + arcWidth, y1, (arcWidth % 2 == 0) ? arcWidth : arcWidth+20, cellHeight);


Rectangle rightCellCircle = new Rectangle(x1 + (cellWidth * (order - 1)), y1, cellWidth, cellHeight);





...maybe 30 lines of calculations like that. All of these calculations draw only ONE of the instances of this class that will be on the screen and there could be any number of instances on the screen at a time.





So, I dont want the computer to have to do all of those calculations every single time it has to repaint the window (due to minimizing, window dragged over top, etc). Is there a standardized way of doing this?





I have read a ton of tutorials on the GDI but I can't find the answers I am looking for.





If you can answer my question I will give you full points and be very appreciative.





Thanks

I have a very basic question about drawing in C#. A best answer will be awarded.?
look into double buffering. This is where you paint to an offscreen bitmap when youre drawing the image





Then when windows is repainting the image, it just paints the bitmap to screen instead of drawing all the shapes again





You update the bitmap instead of the screen





Theres probably an easy way to do this in c#, search for z-buffer or double buffering





Maybe its even a boolean property of the Canvas object, if youre lucky
Reply:try clearing memory


Where do i get the best tutors of turbo c?

with all graphics tutorials and fully in detail

Where do i get the best tutors of turbo c?
specify location at least. To my best knowledge most of tutors will say they will teach graphics but they just ends with box and line. So be care full before investing.

narcissus

Are there any classes in college to learn C++, and other computer languages?

I wanted to know about utilizing the functionality of my computer by knowing how to write code and such. I am a first timer in learning this art, and have had very little exposure to it except for a little here and there. I know very little about compilers and the such, but I am a decent learner. I know there are tutorials and guides out there, but I want to be taught one-on-one. I learn much better that way rather than being generalized.

Are there any classes in college to learn C++, and other computer languages?
yes there are


usually under the following courses: Data Structures, advanced programming, Object-oriented programming, conceptions applied to computers.. etc.
Reply:If you want to learn one-on-one, you'd be best off hiring a tutor.





Classes in college tend to have quite a few more students, and minimal personalized instruction.
Reply:there are usually many classes at universities and community colleges on computer languages and programming. you should visit their website and take a look at their course catalogs. some of those classes have very low volumes of students; while one-on-one will probably not happen, it may be 10 or 12 students, so you can still have time with the instructor
Reply:I learned C++, during first year second semester. The course was called Object Oriented Programming.


Can neone provide links for some ebooks for C++ or Java?

dont want online tutorials. only ebooks pls.

Can neone provide links for some ebooks for C++ or Java?
http://www.intelligentedu.com/blogs/post...





http://rapidshareebookss.blogspot.com/20...
Reply:www.avaxhome.ru


www.betah.co.il

statice

I have just finished learning the basics of C++ now I am going to move on to MFC library, advice please?

Okay like I said I finished learning the basics of OOP and what not, I am not going to start learning MFC libraries, is it hard? what excatly will I be able to make with it? And can anyone supply me any good links to tutorials or good books to buy. Thanks in advanced, and if you can please talk about the MCF libraries in detail, thanks again :-)

I have just finished learning the basics of C++ now I am going to move on to MFC library, advice please?
Good you learned the basics of C++.It is a very good start for learning MFC.If you have got your basics of C++ well, then don't worry about MFC.Its very easy.As far as i know MFC programs are well explained in book called-Visual C++ Programming by Yashwant Kanetkar.


MFC library is a collection of ready made C++ classes which you can use to code your C++ program.It is easy to use if you have got the syntax right.The only troubling part of MFC is that you will have to memorize the names of classes and functions.Once you are through with that then you can comfortably write programs.


Anyways Good Luck!!!
Reply:try http://www.google.com
Reply:You can start with "Programming Windows by Charles Petzold". This will give you one direction. Then you can move to "Programming Applications for Microsoft Windows - by Jeffery Richter". Hope this will help you.


Which is a good site to learn C++ programming for a 12 year old?

Yes i am 12 years old and i want to learn programming but do not understnad most of the tutorials

Which is a good site to learn C++ programming for a 12 year old?
Go to the bookstore and get a "C++ Programming for Dummies" book. It sounds bad, but they really couldn't make it any simpler than that.





You may just want to familiarize yourself with basic programming concepts first: variables, operators, conditionals, loops, structures, objects/classes, etc.
Reply:here are some syt's which offer C++ made easy.


good luck !!





u could also get some cd's which offer C++ tutorials


they are made very easy to understand


eg:name of cd : Inndisoft Interactive Training C++ made easy


below r syt's which offer free courses online


Any suggestions on how to go about learning C++?

I've been programming in Java for a good five years (in high school and now in college), but I'd really like to learn a new programming language. Does anyone know of any good tutorials or websites or books or anything that will help me out?

Any suggestions on how to go about learning C++?
c/c++/c# wud be best for u
Reply:there are lots of good tutorials on the net.





for example EarthWeb portal includes lots of good websites inside.





http://www.earthweb.com/
Reply:http://freecourses.8m.com/c+.htm


and also if you have the program read there tutorial


Hey! im new to computer programming. i want to learn visual basic or c++. where to start in the internet?

I want to learn computer progarmming. I dont know where in the internet, the tutorials or stuff like that is available. So anybody have any idea where to get the tutorials and these things for free? cuz i dont have a credit card or any thing to pay them. Will u help me plz.

Hey! im new to computer programming. i want to learn visual basic or c++. where to start in the internet?
Oh so you will start programming ! Good luck ! I am an experienced and great programmer and I would recommend you to learn Visual Basic. I learned it as my first programming language. Why Visual Basic you might ask. Because its FREE, easy to use, easy to learn, flexible, powerful and a great language to enter the world of programming. You can download it from this adress :








http://msdn.microsoft.com/vstudio/expres...





You can download 6 Visual Studio programming languages on this adress. Select Visual Basic and download it. Search for tutorials on google or you can learn from the official tutorial





http://msdn.microsoft.com/vstudio/expres...





Good luck !

clematis

FORM: Upload File and Send to Email c/o PHPMailer?

I need help for my web form. I want to create a form on my website that can upload any file and send it to my email.





The script should use PHPmailer cos it's the only one accepted on my hosting. I've tried checking the PHPMailer tutorials I could find but I couldn't get it to work. And I was not always sure if it's the right script I need.





Is there a sample out there that you can direct me to?





Note that what I need is something with PHPmailer, and it should be able to upload different files and multiple files as well.





Thank you for the help, I'd really appreciate it.

FORM: Upload File and Send to Email c/o PHPMailer?
Start small. You're asking for a complete application, whereas if you really want to learn this stuff you should really just be asking for one piece at a time so that you can get your head around it. Otherwise, it may be too daunting down the line for you to easily customize it to do what you need.





1) you need a %26lt;FORM%26gt; that accepts multi-part data (files), with multiple inputs for these files.


2) you need the %26lt;FORM%26gt; to submit to a .PHP file that receives all multi-part data and saves them as temp files on the server


3) the .PHP file needs to send e-mail and attach the temp files to the e-mail





First thing you should do is make the FORM page, and the PHP page, and just try to get the PHP file to receive the files and output to you that it succeeded in doing so.





---- form page ----


%26lt;form name="upload" action="send.php" enctype="multipart/form-data" method="post"%26gt;


%26lt;strong%26gt;Upload a file:%26lt;/strong%26gt;






%26lt;input type="file" name="filedata" size="20"%26gt;


%26lt;input type="button" value=" Upload " class="but" onClick="this.disabled=true;document.for... wait ...';"%26gt;


%26lt;/form%26gt;





---- PHP file ----


$target_path = '/myserver/myfilepath/';


$original_filename = $_FILES['filedata']['name'];





if(move_uploaded_file($_FILES['filedat... $target_path))


{


echo "%26lt;li%26gt;$original_filename successfully uploaded.%26lt;/li%26gt;"


}








---------





If you can get this part to work, you can see how to add more and more files to both sides, and then all you need is the PHP mail command:





$to = 'target_address@myserver.com';


$headers = "From: %26lt;no-reply@myserver.com%26gt;" . "\r\n";


$headers .= 'MIME-Version: 1.0' . "\r\n";


$subject = 'Sent files';


$body = 'Please see attached files.';





if (mail($to, $subject, $body, $headers)) {


echo "%26lt;li%26gt;E-mail sent.%26lt;/li%26gt;";


}


Give good resources for learning Python and C#?

Does anyone know of any beginners tutorials or things like that?

Give good resources for learning Python and C#?
MS gives away visual studio express (for c#). Free. It's got documentation.


http://msdn.microsoft.com/vstudio/expres...


Where can i learn microsoft visual c++ 8.0 builder(2005 express edition)?

i also want to get tutorials

Where can i learn microsoft visual c++ 8.0 builder(2005 express edition)?
In Cleveland


What is a website to learning c++ programming?

A website with complete tutorials and easy to learn from beginner to advance .


Thanks alot .

What is a website to learning c++ programming?
I recommend these addresses:


http://www.cplusplus.com/doc/tutorial/


http://cplus.about.com/


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





I would myself try the first one!
Reply:Try this source code editor and designer too:


http://msdn.microsoft.com/vstudio/


It is the best and easiest, learnable language and FREE!


The help button is good too.
Reply:WOW! Who gave Schwan a thumbs down. Those are great sites, I'm kinda of partial to cprogramming.com myself.

columbine

Where can i get "free" I.C. and PCB simulation applications like SPICE?

I am looking for any legal "free" or open-source copies of the SPICE simulator or any equivalent application. Any copies which are educational and which have good tutorials and help files with them would be ideal. Applications which can do any or all of the following: Integrated Circuit (IC), Board (PCB) level, digital or analog signals, mixed mode. If you can let me know which OS to run under (Win or Linux) then that would be cool.

Where can i get "free" I.C. and PCB simulation applications like SPICE?
www.ti.com


www.maxim_ic.com


register it and get ic in 10 days


free


this for uou


How come all of my c++ programs cut off to soon?

every time i try to run a program they get to the least output and just cut off before i can see anything.i have tried to use system("pause"); and cin.get(); return 1;but neither work.all the tutorials say to use system("pause") but it doesnt work so somebody said to use cin.get(); return 1; so i did and it only works some of the time but cuts off.what can i do to make system ("pause"); work?





#include %26lt;iostream%26gt;


using namespace std;


int main(){


int myArray[3];





cout %26lt;%26lt; "Enter a number: ";


cin %26gt;%26gt; myArray[0];





cout %26lt;%26lt; "Enter a second number: ";


cin %26gt;%26gt; myArray[1];





myArray[2] = myArray[0]+myArray[1];





cout %26lt;%26lt; "The sum is: " %26lt;%26lt; myArray[2];





system ("pause");


}





other 1





#include %26lt;iostream%26gt;


using namespace std;


int main(){


int myArray[3];





cout %26lt;%26lt; "Enter a number: ";


cin %26gt;%26gt; myArray[0];





cout %26lt;%26lt; "Enter a second number: ";


cin %26gt;%26gt; myArray[1];





myArray[2] = myArray[0]+myArray[1];





cout %26lt;%26lt; "The sum is: " %26lt;%26lt; myArray[2];





cin.get();





return 1;

How come all of my c++ programs cut off to soon?
What you can do is open a DOS shell (or whatever Windows uses) and run the program directly from the command line. You will have to cd into the directory where the programs reside.


Saturday, May 22, 2010

How come all of my c++ programs cut off to soon?

every time i try to run a program they get to the least output and just cut off before i can see anything.i have tried to use system("pause"); and cin.get(); return 1;but neither work.all the tutorials say to use system("pause") but it doesnt work so somebody said to use cin.get(); return 1; so i did and it only works some of the time but cuts off.what can i do to make system ("pause"); work?





#include %26lt;iostream%26gt;


using namespace std;


int main(){


int myArray[3];





cout %26lt;%26lt; "Enter a number: ";


cin %26gt;%26gt; myArray[0];





cout %26lt;%26lt; "Enter a second number: ";


cin %26gt;%26gt; myArray[1];





myArray[2] = myArray[0]+myArray[1];





cout %26lt;%26lt; "The sum is: " %26lt;%26lt; myArray[2];





system ("pause");


}





other 1





#include %26lt;iostream%26gt;


using namespace std;


int main(){


int myArray[3];





cout %26lt;%26lt; "Enter a number: ";


cin %26gt;%26gt; myArray[0];





cout %26lt;%26lt; "Enter a second number: ";


cin %26gt;%26gt; myArray[1];





myArray[2] = myArray[0]+myArray[1];





cout %26lt;%26lt; "The sum is: " %26lt;%26lt; myArray[2];





cin.get();





return 1;

How come all of my c++ programs cut off to soon?
What you can do is open a DOS shell (or whatever Windows uses) and run the program directly from the command line. You will have to cd into the directory where the programs reside.


How to get a C#.NET program to use data in my MySQL database?

I currently have a website with user info and data stored on a MySQL database. I would like to (begin to) create a desktop version of my website, and would like to pull the user's information (such as username and password) from the online database to my local app. Does anyone know of a website that has tutorials to help me accomplish this?

How to get a C#.NET program to use data in my MySQL database?
I haven't used this component, but the recommended way to access databases is to use a Database Provider for that database. That way, if you want to upgrade databases in the future or even maybe migrate to a different database, you might be able to do that by simply replacing the Database Provider





Here is a MySQL Database Provider for dotNET


http://uda.openlinksw.com/dotnet/mt/dotn...





Theoretically, if you use this code, you can use any standard tutorial describing a connection to a different database (like MS SQL) and the application will work.


Can you please explain to me how to make a C++ class?

I have looked everywhere for the tutorials, but none of them explain the answer fully. I think I get a good idea of it, then I run into something I don't unbderstand, so then I look for another tutorial and they explain it in a whole diofferent matter that confuses me. So far, this is what I think a class is





class person


{


int age;


int height;


char *name; (which I have no Idea what a character pointer is for)


char *nationality;


char *gender;


}


occupation; (Would occupation be an object of the person class?





And please explain what constructors and deconstructors are, and what they are used for (I think constructors are used to bring an object to life)


I would prefer if you made a class with a deconstructor and constructor and explain in detail with as simple an explanatiopn as possible.


THANK YOU!!!!!

Can you please explain to me how to make a C++ class?
It appears to me that you are beginning to have the basics down.





A class is a template to be used in creating an object. The class defines properties (variables) and behaviors (methods) that the object will possess.





From your example, occupation is a property of a person, and can be a reference to an occupation object as you mentioned.





You could then go further and define a method called changeOccupation or setOccupation that will allow you to change the occupation of that person object.





This combination of property and behavior define a class.





Constructors:





person::person() {


//do nothing


}





or





person::person(int iAge, int iHeight, ...) {


age = iAge;


height = iHeight;


}





Constructors are special class methods that you use to create the class. These methods can contain code that sets the "initial conditions" of the object when it's created, or allow the user of the class to pass values that will be used to set these initial conditions of the object. For instance you could use the constructor to set the age, height, etc of your person object when you create them.





Destructors:





person::~person() {


cout %26lt;%26lt; "Exiting Person Class Destructor!!!" %26lt;%26lt; "\n";


}





Destructors are called when the object made from the class is being destroyed, and will allow the class to clean up after itself (for instance closing database connections, or cleaning up pointers, etc.)





Check out Bruce Eckel's "Thinking in C++" you can download them for free from his site. I think he does a great job of explaining programming languages so you can understand them... not just the "how" but also the "why".

carnation

Help with this C++ code?

Ok, so my friend made this program, I would simply like to know, how do I get it to work.


Any help or tutorials/websites that may help will be good.


Thanks in advance.

Help with this C++ code?
C ++tutorial http://www.dreamincode.net/forums/showfo...
Reply:http://www.linuxselfhelp.com/HOWTO/C++Pr...
Reply:Hi,


Im not understanding this question. Please clarify it. If you want the source code of that program ,Copy it to your computer!


Anyone know a site from where i can learn programming in c? Also which is easier to learn c or c++?

I really enjoy programming and want to take it to the next level. I need a site where there are lots of sample programs and tutorials to learn step by step. If anyone knows any good e-books for download that would also be helpfull.

Anyone know a site from where i can learn programming in c? Also which is easier to learn c or c++?
http://www.cprogramming.com/tutorial.htm... - is a good online resource





http://www.developer.be/forums/index.cfm... - a forum that has c/c++ developers ready and able to help out.





Also use the MSDN library to get a lot of information.





I've always liked the "bible books" it covers a lot of great info from begginers to advance:


ISBN: 0764546546





Also the complete refference books are garet as well:


ISBN: 0078824761
Reply:CompUSA has some on line classes that you can take. I do believe that I saw this one available.


Need help with C++ FSTREAMS!?

This is a very simple code i made to learn how to use fstream:





------------------


#include %26lt;fstream%26gt;


#include %26lt;iostream%26gt;


#include %26lt;cstdlib%26gt;


#include %26lt;string%26gt;


using namespace std;





int main() {


string a;


fstream cra;


cra.open("tape.txt");


if (cra.fail()) cout %26lt;%26lt; "not working" %26lt;%26lt; endl;


cra %26lt;%26lt; "blah blah blah" %26lt;%26lt; endl;


cra %26gt;%26gt; a;


cout %26lt;%26lt; a %26lt;%26lt; endl;


cra.close();


}


------------------





the program inputs the text "blah blah blah" into the file just fine, but it has trouble reading it. I don't really know how to read the file, that's the reason, and the tutorials on various websites haven't helped me.





So can anyone tell me how I can read from the file? Thanks.

Need help with C++ FSTREAMS!?
the problem is that once u write blah blah blah the cursor in the file moves to the end of blah blah blah and after that there is nothing first move cursor to start of file then take input from file it will work.
Reply:Did you try this?


http://www.codersource.net/cpp_file_io.h...


M.a.c makeup?

so.. i wanted to go buy some more mac shadows.. but i've been looking at those youtube tutorials with the mac pigment that look really nice.. does anyone know about which one is better or turns out brighter?

M.a.c makeup?
They're all really great. If you think ones too dark you could put a lighter color underneath or use a shadestick to make it pop more.
Reply:I love M.A.C.! They have the best colors. :)


There are different types of eyeshadow that they cary. Some types have more shades than others.


FROST : An iridescent shine that adds a highlight to any colour. This is good for subtleness.


LUSTRE : Smoothly pearlized; intensely frosted with deluxe ultra-fine conditioned finish.


MATTE : Hi-colour pay-off in a no-shine matte finish. These are pretty thick if you want a lot of pigment.


MATTE² : Intense, opaque matte finish with exceptionally rich color payoff. They go on realllly thick, so if you're looking for bright, rich color, this is your best bet.


SATIN: Pure colour in a satin-style finish. Provides a soft, subtle, non-frost, light-refractive sheen. Also good for highlighting, if you get a light shade.


VELUXE (VLX): Superfine pigment rich and very luxe. Supple to apply. Provides silky smooth matte finish.


VELUXE PEARL (VP): Vibrantly toned. Velvety soft. Shimmeringly metallic. Veluxe eye shadow, now overlaid with high-shine pearl.


VELVET (V): Soft-look finish with high-colour intensity. Has a plush velvety look and feel.


If you go to a M.A.C. makeup counter at Nordstrom, they'll be happy to help you find a nice shade. My favorite shade is Honesty. Good luck! :)

pansy

Is there a website or videos where i can get some free dance tutorials or how do's?

More Specifically C-walking or Salsa or any hip hop dance

Is there a website or videos where i can get some free dance tutorials or how do's?
Go on www.youtube.com you can basicaly find lots of things there
Reply:Check their video section. They keep updating regulary..usually there are few learning videos.





http://www.detroitsalsadance.com/
Reply:okay here are some aawesome sites.......


1. http://www.salsa-merengue.co.uk/VidTutor...





2. http://www.learntodance.com/newindex_fil...





3.http://www.pimpmywalk.com/how-to-do-the-...





4.http://www.youtube.com/watch?v=XuwAi1k-U...


hope that these help :)


Visual C++ Express 2008 - No Build option??

At the top my version goes - File/Edit/View/Debug/Tools/Window/Help





I've looked at tutorials and they all have the Build option to compile code, but mine isn't there. How do I get it?





I installed the 297mb MSDN pack and everything... help!

Visual C++ Express 2008 - No Build option??
Don't you have a Build menu when you open/create a project? Your menus should go...File/Edit/View/Project/Build....


Learning C++ and looking for a basic program see details?

I'm looking for a basic program that I can type extremely simple code into and see the output. I'm using various free tutorials to learn the language, and I would like to download a (hopefully free) program that I can input basic code into for practice and see the results. Thanks.

Learning C++ and looking for a basic program see details?
Hey, email me, LBphan@gmail.com, i might be able to help you out a bit, ive got some stuff for c++ and c# if youre curious, and ill give you whatever youre looking for free of charge. my name is andy, by the way.


C## Game prgramming?

Im looking to make a morpg like www.tibia.com. I'v asked them if they have any book suggestions or tips for where to start but they said they couldnt help me out. Anyone here got any tutorials or E-books that can help me. Im a complete beginner so need to start at the begining. thanks...

C## Game prgramming?
You can do programming in C#, but that's not the only choice.


If you already have a copy of C# community edition, you can also download something called XNA studio for free.





This is a new wrapper around MS DirectX technology that's quite a bit easier. I didn't say easy. Just easier. Game programming is hard. You can learn it (I've taught hundreds) but you need to be willing to work hard.





My advice?


Learn to program first. The language doesn't matter that much, because you'll learn several before you're done. Don't start with C / C++. While they're good languages and they are used in professional games, they still aren't the best choice for beginners. They are frustrating and difficult languages, and most who begin with them give up before writing a single game. Look at any gaming book in C and you'll agree with me.





I strongly encourage you to learn game programming in 2D first. This will give you the opportunity to learn the things game programmers need to know in a more forgiving atmosphere. Learn things like:


* basic programming concepts - variables and statements


* control structures - loops, branches, functions


* data structures, arrays, dictionaries, objects





Then move on to some gaming ideas, like:


* sprites


* basic movement


* graphics and blitting


* basic motion


* collision detection


* game and sprite states





When you've got these things, you can build pretty much any 2D game.





You'll also have the confidence to handle one of the more challenging 3D environments.





Back to language choices: If your heart is set on C#, it's pretty good, with XNA. You should also consider Flash (most commercially viable game programming skill - EVERYBODY - wants a flash game on thier site.)





I've had great success teaching game programming with Python. It's quite an interesting choice:


* It's free and open source


* It runs on virtually any hardware


* It's nearly as fast as C (because it uses the same graphics engines)


* It's a friendly, easy-to-read language





Feel free to check out my notes on flash


http://www.cs.iupui.edu/~aharris/flash





or python gaming


http://www.cs.iupui.edu/~aharris/python
Reply:There was a PHP book about game programming that has a simple MMOG, but it's not MMORPG, and it's NOT simple to program either. Haven't seen one in C#.
Reply:I wish I knew...

floral centerpieces

C++ programming?

any good tutorials or books?

C++ programming?
I use http://www.cplusplus.com/ ALL THE TIME to get help with things... Check it out!
Reply:Check programming tutorial websites like http://myitcareer.org/
Reply:www.cplusplus.com


C++ Arrays and Input files?

I have an input file and there are three variables in each line. How can I take the variables (say x, y, z) and put y and z into two different arrays?





In other words:


(Input file reads : x y z)





Input %26gt;%26gt; x %26gt;%26gt; y %26gt;%26gt; z





y and z needs to be in two different arrays to find mean of each array .





I know its vague, but I can't think of a better way to explain it. I've tried looking at some Array tutorials, but I get lost. Thanks for any help.

C++ Arrays and Input files?
I'm not sure this helps explain anything to you because you don't make it clear what you aren't understanding. So hopefully this helps somewhat.





int main()


{


int x;


int a[10] = {0};


int b[10] = {0};





ifstream infile("mydata.dat");





int i = 0;





while (infile)


{


infile %26gt;%26gt; x %26gt;%26gt; a[i] %26gt;%26gt; b[i];


//presumably do something with x too


i++;


}





for (int j = 0; j %26lt; i - 1; ++j)


{


cout %26lt;%26lt; a[j] %26lt;%26lt; " " %26lt;%26lt; b[j] %26lt;%26lt; endl;


}


}
Reply:from what i understand.





you want something like


int x[50], y[50], z[50];





for (i = 0; i %26lt; 50; ++i)


ifs %26gt;%26gt; x[i] %26gt;%26gt; y[i] %26gt;%26gt; z[i];





An array in C/C++ is declared as


eg: int arr[50];


The caveat is that array index start from 0 not 1.


So arr[0] is valid in C/C++.


The last value in the array is arr[49] not arr[50]


To reference an element in an array.


Use this form: arr[n] where n is any integer value.


It is recommended that n is not less than 0 and not greater than or equal to the maximum declared. In this case, n should be any value from 0 to 49.


Hope this makes things a little clearer on arrays.


Can anyone give me sites where i can download tutorials on ++ for beginers?

any thing will be good but i am just starting in c++ so i dont really know alot about it

Can anyone give me sites where i can download tutorials on ++ for beginers?
Below is a mixture of links since I don't know your taste. The first site provides a number of PDFs to download. Also, there are some ebooks available online if you'd consider that a "tutorial" type as well; look for "Thinking in C++" via http://mindview.net/Books/DownloadSites
Reply:I'd recommend googling "C++ Tutorial"


From where will i get good visual studio.net tutorials?

more specific on ASP.net,c#,vb.net

From where will i get good visual studio.net tutorials?
You would be surprised at how well documented the built in help is by Microsoft (MSDN), also online I personally enjoy:





www.codeproject.com


www.msdn.com


www.daniweb.com (forums)


www.4guysfromrolla.com





Best of Luck
Reply:try this:


http://msdn.microsoft.com/vstudio/expres...
Reply:msdn @ msdn.microsoft.com (they made visual studio and is the official help content of visual studio)





and then there is the microsoft training and certifications resources at http://msdn2.microsoft.com/en-us/bb18819...





try googling for .net tutorials
Reply:Try TotalTraining!


www.totaltraining.com


They have online tutorials and also DVD based tutorials about asp.net and lots more. Very good and not that expencive

wedding florist

Can anybody help me find freeware software and tutorials to create planes for Microsoft Flight Simulator X?

Any help is greatly appreciated! I have tried to find some myself, but it was either payware or software for purchase on c.d.s. I'd kind of like a jump start on it, I think that anything older than late Flight Simulator 2004 stuff will not work. I know a few basics about how to put the files together to make it work from experience installing aircraft made by others. Thanks!

Can anybody help me find freeware software and tutorials to create planes for Microsoft Flight Simulator X?
http://www.microsoft.com/


Does anyone know anygood web sites for tutorials on just about anything?

Such as Software, C++, java, Flash.etc....

Does anyone know anygood web sites for tutorials on just about anything?
wikipedia is great, it is more a encyclopedia, but it good give you good tips on what you are looking for. Also, the main site of the product can usually link you to information about the program.
Reply:http://www.google.com/search?hl=en%26amp;q=fre...
Reply:http://www.javaranch.com





They have interactive games to help you learn the structure of java programs. They also have several good progressive tutorials on learning java.
Reply:try http://www.studyjava.org


Does anyone know of any good online tutorials for WebCT?

Im enrolled in college courses and this is my first time using it. Im very lost and am having a hard time trying to navigate through it...please help me b/c it is very confusing to me. Thanks.

Does anyone know of any good online tutorials for WebCT?
I'm using WebCT too and at first it was confusing to navigate it, but I eventually got the hang of it. If you need more help, go to this site: http://www.blackboard.com/communities/as...
Reply:no


Which webisite can provide me with good tutorials as a beginer on WIN32 API programming?

i have some experince with programing in high level languges such as java and C#. i would like to go abit low level with WIN32 API programming. any suggetions?

Which webisite can provide me with good tutorials as a beginer on WIN32 API programming?
This is the site for the for the Microsoft Developer Network (MSDN) - http://msdn1.microsoft.com/en-us/default... .
Reply:good beginner level win32 tutorials at:---





http://www.zeuscmd.com/tutorials/win32/i...


http://www.relisoft.com/win32/





And of course you can use the msdn site above for a complete reference

local florist

Can we be having computer programming tutorials in this section?

i mean like java and c++,also php?

Can we be having computer programming tutorials in this section?
Yahoo! Answers is question-and-answer oriented, not back-and-forth dialogs. I suspect the Yahoo! people would frown on tutorials





Check the Community Guidelines:





http://answers.yahoo.com/info/community_...





Sorry.
Reply:Are there not better places to look for those?
Reply:There are way better places to have those than here.
Reply:maybe
Reply:try looking here http://www.programmingebooks.tk/
Reply:ya, y not!