Friday, July 31, 2009

Is "Visual C++ 2008 Express Edition" permanent or temporary ??

Hi guys, this is a question for the programmers out there.


I just downloaded and installed "Visual C++ 2008 Express Ed" from their website:


http://www.microsoft.com/express/vc/


Does this Express Edition expire or is permanent on my computer, (does it expire after a few months) ?


Their quote is "Free, but limited editions of Visual Studio 2005 for a single programming language supported by .NET."


What does that mean? Does it mean for a limited time or does that mean something else?


[ I'm just worried that someday I'll get an error message like, "Sorry, this Visual C++ Edition has expired". ]

Is "Visual C++ 2008 Express Edition" permanent or temporary ??
it is permanent but you should use something like code::blocks because microsoft is eeeevil
Reply:The Express editions are totally free but you have to register them with Microsoft within 30 days of installing the product.





Each copy of Express only supports one programming language, but there is no reason why you can't download and install all Express products.
Reply:Hi there,


No, your cool, it is free. The express editions supposed to have slightly limited functionality, as with the express edition of SQL server, its free but limits the databases to a certain amount of gig (i think its 2 or 4 gig). So most individual programmers would never know they are limited. So enjoy!


Programmers only?

I used to be an excellent C++ programmer 11 years ago. Through several company buy outs I had to go into sales, training on software and be an account manager for several hospitals on our system. I am very analytical and want to get back in the field. My brain gets board doing anything else. What do I need to do to get back there? I haven’t really worked for 2 yrs due to the death of my 23 yr old daughter and having had to do the other positions what do I do? I’m also waiting to look for a job since I’m moving from the mid-west to CA. Any suggestions would be helpful.

Programmers only?
If you are looking for a career change and you have the financial resources, how about returning to school for an MBA in Professional Accounting? I hear Auditing is in great demand right now, with all the corporate scandals going on and Sarbanes-Oxley legislation. I hear they have 14-month programs, at the end of which you are eligible to sit for the CPA exam.
Reply:Well a lot of companies still looking for good C++ programmers, mostly in Windows - Microsoft VC++ or C#





You may want to consider learning other languages too such as Java, VB.NET, J#, Python...
Reply:Yeah... re-educate, do some sort of bridge or higher learning thing, then future employers will see that you have a wealth of knowledge rather than sound washed up.
Reply:Retrain in C#.net...





Very similar to old C++ design, but more modern and 'the way of the future' (for want of a better analogy)...








Purchase a good basic C#.net 2.0 book from Amazon, start at the most basic... You'll catch up in no time... Just work on a little bit each day.








After you've caught up, take a few small contract jobs over the net to build up a small portfolio of projects and then apply for full time positions.

online survey

How do programmers use math to create stuff. I know C++ and I am good at Math and I can't find ways to put

it all together. DO they programmers think first on paper with math. Please help me. Just show me how they can be combine. Thank u

How do programmers use math to create stuff. I know C++ and I am good at Math and I can't find ways to put
Logic is required for solving any problem.


In the process of deciding the flow of the program u decide the logic and then put that flow in your program.


It'll come by little practice. Make 10 programs by yourself and u'll find everything falling in place.
Reply:you need to use and exercise creative powers


and innovative thinking.
Reply:they have to think about the logic of the programs. Most logics involve maths. for examples you need maths to iterate through a list to get the data you might want. so most programmers work out the logic flow on paper first before they start the actually coding on the computer.
Reply:I read a book about famous hackers (good sense hackers) like Linus Torvalds and he said that he doesn't usually write out things on paper. But that's just him. Whatever works for you to organize your ideas. You need to develop your own style.
Reply:In order to put your math skills to work, you must first identify what you would like to accomplish. Remember, programming is done with a purpose, not simply because there is nothing else to do. For instance, you might want to create software to run simulations (e.g. DNA folding, like the folding@home project). You would then identify the process by which such folding takes place. Mathematically, you devise how to perform the necessary calculations. Then you translate those into programmatic functions in a way that is most efficient for a computer to use. So in the end, it depends on what you would like to accomplish--you simply can't apply skills without a goal.





If you're asking for something you can try doing realistically, an old problem that mathematically inclined programmers like to tackle is a prime number generator. This seems like an easy task at first, but making one that works very fast is a great challenge. Try it out. To get you started, here's a horribly inefficient prime number function I made in my first C++ class:





int primeNumberOutput(int params[])


{


int counter = 2,


counter2 = 1,


innerCounter,


primeNumbersCounter = 0,


primeNumbersSum = 0,


primeNumbersExpected = params[0],


factors,


columns = params[1],


columnsWidth = params[2];





do


{


factors = 0;


innerCounter = 1;





do


{


// determines how many factors counter has


if (counter % innerCounter == 0)


factors++;


innerCounter++;


}


while (innerCounter %26lt;= counter);





// following condition determines if a number is prime


if (factors %26lt;= 2)


{


primeNumbersCounter++;


primeNumbersSum += counter;





cout %26lt;%26lt; setw(columnsWidth) %26lt;%26lt; counter;





// next two conditions format the output


if (primeNumbersCounter %26lt; primeNumbersExpected)


cout %26lt;%26lt; ", ";





if (counter2 % columns == 0 %26amp;%26amp;


primeNumbersCounter %26lt; primeNumbersExpected)


cout %26lt;%26lt; endl;





counter2++;


}





counter++;


}


while (primeNumbersCounter %26lt; primeNumbersExpected);





return primeNumbersSum;


}





See if you can improve upon it's design to make it work more efficiently.
Reply:You must know the algorithm of a problem.


Is any web site that give me a perfect little size "source code of chess program Written in micros Quick C 2.0

I am an amateur programmer and a normal chess player. I searched web for a source code of a chess program but I didn't find many things.





Is any web site that give me a perfect little size "source code of chess program


written in Quick C 2.0 programming language" with maximum 5 mega byte size in FREE?!





Thanks

Is any web site that give me a perfect little size "source code of chess program Written in micros Quick C 2.0
Try this link





http://www.google.co.uk/search?hl=en%26amp;q=s...


Hi All the Programmers Can you write a code Using C# which can download internet to mechine?

You should first understand the concept of Internet. Internet is network of many systems.You can not consider it as a single or 2 or 3 system connected. with a network.Thing is that the amount of data present in now a days is very huge.So practically it is not possible to store in a single system(even though possible theoretically). You can write a program to in any network programing language to download files from Internet(a small part only within years).These programs are called bots or web crawlers.

Hi All the Programmers Can you write a code Using C# which can download internet to mechine?
any download will occur on the click of either a button or some hyperlink. so you have to set the mime type of that particular resource and then the download box will open automatically but u will have to handle that in code...
Reply:You can not download INternet to a single machine. It is like bringing the entire earth into a single playground.
Reply:Hi Ting tong,





There is a site named "buzzycode.com. Hope, you will find the useful answer for it.


What do you think of a tutorial software that teaches basic programming of C in Filipino-English language?

For any Filipino programmer / IT student:





What is your opinion regarding with a tutorial software, which teaches the basic programming of C? The medium of instruction is Taglish (that is, combination of Filipino and English languages).





We are currently conducting a survey.





For more information, please contact me: Send me an email.

What do you think of a tutorial software that teaches basic programming of C in Filipino-English language?
that would be good.. how i wish we have manuals in programming and networking that's written in Taglish..


but, not all tutorial software are written in taglish and students may get trouble in learning from an English tutorial when they get used to taglish tutorials..





if you think that, that tutorial software would be better than the English one, that's cool. learning would be easy for filipino it students..
Reply:Why not C++?

salary survey

I need help on c++?

I know that we use notepad to type the coding of c++ but then what the next steps the programmers do?





I have a compiler named Dev-c++ do I need an interpreter?





Thanks

I need help on c++?
you are really clueless, aren't you?


I've heard about Dev-C++. from what i remember, it's an IDE, i.e. it gives you an editor and automatically runs your code through a compiler and creates an executable.


only uber-geeks code in text editors like notepad. a productive development is done in an Integrated Development Environment, or IDE. i would recommend Microsoft Visual C++ Express - it's free, and should be pretty good.


What do you think of a tutorial software that teaches basic programming of C in Filipino-English language?

For any Filipino programmer / IT student:





What is your opinion regarding with a tutorial software, which teaches the basic programming of C? The medium of instruction is Taglish (that is, combination of Filipino and English languages).





We are currently conducting a survey, which has something to do with computer programming and software development. We do this for the feasibility study of our project. If you want to help us (i.e. answering the survey), please contact us: Send us an email.

What do you think of a tutorial software that teaches basic programming of C in Filipino-English language?
Its got to be english because it is the business language. Filipinos should learn the English language first properly so that he can read the tutorials.





Good resource books techinical or trade Journals are mostly written in English. This is where a technical person would upgrade his knowlegde by reading them. So if a student is used to reading Taglish he will have difficulty understanding them as well as improving himself. You should prepare world class students and that will need student who have high understandding of English language. We are now in living in Global world ,we can find jobs wherever we want to work as long as we are qulaified and can speak prper English.





The problem of Philippines was due to the Stupid Politicians who changed the medium of intructions from English to Pilipino in the 70's. Now Flipinos are sufferring due to the lack of fluent English speakers .The demand in BPOs and Call Center is very high and yet we have a high unemployment rate because the graduates can' not speak English well. BPOs and Call centers don't even require graduates to join them.Got that?





I say stupid politicians because these leaders and legislators are the ones who made the Philipines languish in poverty. One of them was the changing of the medium of instructions.





You can find Filipinos with good English skills who graduated in the early ' 70s and below. Most of them coming from public schools.





Don't fall on the trap of some lazy groups that wanted Taglish ,it will not do any good for the Philippines and its citizens.
Reply:I think a tutorial software for C basic programming,


specially one that is in Taglish would be very helpful


to people who would want to learn C programming.





Just make sure that the modules as designed for


structured learning so that the student's knowledge


grows as he progress in the tutorial,





Note : I have 20+ years in IT. I used to be a programmer.





Have a nice day !
Reply:that will be great!





i, myself, don't know C but i've been taught other languages in taglish by former colleagues. i believe that helped a lot because it got a lot of issues explained rapidly.
Reply:id rather have C++ and fully english or fully tagalog.


What do you think of a tutorial software that teaches basic programming of C in Filipino-English language?

For any Filipino programmer / IT student:





What is your opinion regarding with a tutorial software, which teaches the basic programming of C? The medium of instruction is Taglish (that is, combination of Filipino and English languages).





We are currently conducting a survey.





For more information, please contact me: Send me an email.

What do you think of a tutorial software that teaches basic programming of C in Filipino-English language?
That would be a good idea for Filipino programmers who may have difficulty in understanding English.





However, I would suspect that many Filipinos who wish to pursue a technical career or knowledge would need to know English as the majority of resources that surround the C programming language including hardware, networking, etc. are predominantly already in English. Getting support and seeking help online are also generally in English.





Re-inventing the wheel may be unproductive if your skills can be used to focus on the development of software that are of current interest to a larger target market on a global scale.





I would recommend surveying how many Filipino programmers actually have low English comprehension as part of your effort before final consideration for development.





Good luck!


Where can I find a tutorial on performing fast math calculations using hex and C#?

I am a skilled programmer lacking the background of the benfits of shifting bytes, etc., for high speed math calculations. I need a good tutorial to get me up to speed, preferably using C# or C++.

Where can I find a tutorial on performing fast math calculations using hex and C#?
It appears that the question period has expired. If you have received an answer that meets your needs, please choose a 'best answer.'





If you haven't received a good answer for your question, you may want to consider the following,


1) Re-post your question. Newer questions get more activity on Yahoo! Answers than old ones.


2) If you do re-post your question, consider why it wasn't answered the first time. Could it be more specific? Could it be worded better? Were there grammatical or spelling errors? Was it in the best category?





If it doesn't seem likely that re-posting your question will help you, then here's a listing of my favorite 'answer sites'. Maybe one of them will help you.





Answers.com http://www.answers.com/


Bartleby http://www.bartleby.com/


Yahoo Reference http://education.yahoo.com/reference/


HowStuffWorks http://www.howstuffworks.com/


Wikipedia http://en.wikipedia.org/wiki/Main_Page





Regards.
Reply:There is a tutorial located at the site below.

surveys

Visual C++, how to write robust code, why is the try/catch messed up?

I'm just finishing off a program in Visual C++ 6, and I want to submit the application. It needs to be crash-free. I don't want it to crash because of a hardware exception or any program bugs. So, I thought I would place code inside a try/catch(...) block, so that it would catch all exceptions instead of crashing.





But then after googling around in the web, I noticed that using try/catch(...) with the default options in Visual C++ 6 is highly frowned upon by advanced programmers, because it hides programming bugs.





Why isn't there a simple and recommended way to do this?

Visual C++, how to write robust code, why is the try/catch messed up?
Try/Catch itself isn't frowned upon. "Error hiding" (overriding root error messages with your own) is a terror for support engineers.





Try/Catch is extremely useful and will definitely help keep your program crash-free. In fact, as a software engineer who still uses VC++ 6.0, it is part of my companies coding standards to use try/catch when making a back-end call so that an unhandled exception doesn't crash the program.





Use try/catch, just be sure to write appropriate code in the catch statement.
Reply:from what i have noticed no one here is actually good enough at programing to answer any difficult questions, no one answered mine yet, and i doubt anyone is going to anytime soon


How hard would it be to learn the c# language to go with xna studio with these 2 books without no experience?

Here is the c# coding book


http://search.barnesandnoble.com/booksea...


,and here is the xna book


http://search.barnesandnoble.com/booksea...


Yes I know it will be tough starting out but I'm a very determined 13 year old, yeah game freak...Hopefully to be a game programmer! :)

How hard would it be to learn the c# language to go with xna studio with these 2 books without no experience?
I happen to be programming in C# at my current job (along with some other languages!) and I think the first book will be a good one for you for sure... but note that it is a "language reference" book so as such it won't have a lot of examples that will help much.





I have listed 2 other books below that might help. The first one I have and is a pretty good book that helps walk you through some of the concepts. The second one I do not have, however I have found that the Head First books are usually pretty good for beginners (I have read the Head First Java book)





I would strongly recommend you do some plain old windows application programming before you jump into the game world. It will help you tremendously to be very familiar with the language before jumping in over there.





Congrats on wanting to program and you can email me (with your parents permission of course!) if you have more questions about getting started... I like helping programmers get started!
Reply:you must find out one on www.google.com.au Report It



What is the simplest way to access serial I/O in Visual C++?

I am a former assembly programmer. I use VC++ 6 a lot, but I have used .NET 2005, and C# as well. Not everyone has migrated, so VC++ 6 is my best choice.





Also I have written USB HID I/O code in VC++ 6, but my employer is migrating to ASYNC over USB. Any suggestions on that? I am writing code to communicate with bankcard terminals.

What is the simplest way to access serial I/O in Visual C++?
This will help you to use serial ports 1-4. I am not sure how well it will work with 5 and up.





http://www.control.com/1026175740/index_...





Async over USB?? I have never seen that done.
Reply:' Open the serial port


MSComm1.CommPort = 2 ' Set the port number


MSComm1.Settings = "56000,N,8,1" ' Set UART parameters


MSComm1.PortOpen = True ' Required, might lock port


MsComm1.Output = "Text string" ' Send data


Buffer$ = Buffer$ %26amp; MSComm1.Input ' Read data


What are the tecnical differences between P.C (windows) and Apple (Mac)?

I would really like to know the technical differences between the two for something I'm writing. I've read alot of posts on the internet that say simple things like "one is compatible with P.C the other is not." Or "one has security holes." I would really appreciate it if somebody knew concrete technical differences like, how graphics/tex/information is processed, specifically what makes Mac OS more streamlined and integrated, etc.





Just any technical information that you might imagine a computer programmer understands about their differences.





Thanks!

What are the tecnical differences between P.C (windows) and Apple (Mac)?
PC'S get viruses





Apple macs can't play video games
Reply:The only difference between them is the Operating System (OS). Mac uses a Linux based system (i believe) and Windows uses something completely different. Mac OS is a bit more secure in its creation whereas Microsoft left a lot of holes in their programming. That isn't to say that Macs can't get viruses though. Also, Windows based PC's cannot run Mac OSX....something about the configuration, you'll have to research that....but Macs are able to run Windows through Bootcamp or another program of the like.
Reply:u cant upgrade and like all oem computers ur limited with mac and about viruses ppl will catch up as soon as its worth it to few macs out ther
Reply:Macs have better programming.





They do play video games, just not all the junk you see geared for windows.





The speech recognition is great, I did not have to train Vickie. However--I am still training Huey (hp notebook/tablet) with inferior speech recognition. Sheesh it has to be trained to learn my speaking voice.
Reply:You'll get some very good answers on this I'm sure.





The main difference, obviously, is the underlying operating system. MacOS is a variant of linux. That's the main reason that hackers don't go after Macs...linux isn't bulletproof, but it can be darn close.





Also, since Windows has the majority of the desktops in the world, that's a much larger target for the hackers.





You can probably find alot of good discussion by googling using perhaps MacOS vs. Windows as your search criteria. I'm confident that PCWorld and others have good articles.





Good luck!

survey monkey

Should I learn C Sharp?

I am a trader who programs to get by, I am not a programmer by trade. I am very familiar with Visual Basic Version 6 and VBA. I have just installed Visual Studio 2005. Should I start leaning and coding in C# instead or should I stick to VB.NET? I need a good reason why for 10 points.

Should I learn C Sharp?
Well you have a background in VB6, it means that you are familiar with VB Syntax, signatures and many language constructs. I suggest that you should stick to VB.NET because its better to continue syntax that you already know rather than learning entirely new thing C#.NET.





Moreover, VB.NET have the same powers that C# has, even simpler than C#, while having same support from Microsoft that C# does enjoy.





Saif Ullah





http://www.kasamba.com/Saif-Ullah
Reply:for me, coming from a vb 6 background, trying to learn vb.net was a disaster. learning C# however, was cake walk. The syntax is much simpler in C# than vb.net as vb.net is annoyingly wordy.





C# may look a little different, but its easier in my opionion that vb.net.





a sample:


Private Function Foo() As Integer


Dim myVar As Integer


'some comment


Foo = 1 'i'm not even sure if thats right.. lol


End Function





is this in C#


private int Foo()


{


int MyVar;


//some comment


return 1;


}








once you get the basic sructure of C# down (took me a day of messing with it) your good to go. It might take you a little bit to get a hang of, but learning C# in my opinion is a much better idea


Which is harder to learn Java or C++ ?

I would rate myself as a beginner/intermediate VB.NET programmer - very good at scripting with VBScript.





So I haven't really touched on either Java or C++ or any "real" programming since I personally consider VB.NET cheating as you're really just drawing and filling in the gaps with code you can search for online!!!!


Could someone recommend to me one or the other ? my destination platform would be both Linux and Windows.





Thanks in advance !!!!

Which is harder to learn Java or C++ ?
As far as object orientated programming goes, the fundamentals are very similar. I learned c++ first, and found it harder to learn that java. But that could have been because it was my first language.





What I am certain of though, is that java is much more sought after now than C++. So it may be more beneficial for you to learn that first.





As far as compilers go, for just starting off in object orientated programming, then you might want to go for a compiler called "bluej". It's a very simple GUI interface, to get you used to classes.





After that I would move on to netBeans IDE 6.0....and stick with it.
Reply:As long as you're comfortable with object orientated programming I think you'd find both languages about the same to learn.





In terms of jobs (if that's what you're thinking of), people seem to want Java programmers more than C++ programmers nowadays, and C# is an even better bet.
Reply:C++ is harder to learn, because most of the low level things found in C++ like pointers, garbage collection are handled automatically in java. Java programs can run on any platform that has a JVM (java virtual machine).
Reply:I'd say java because the polarity of the script certification does not interface with the trajectory of the triple mainframe processor.


What Visual C++ codes will I use to hibernate my machine?

1. What Visual C++ codes will I use to hibernate my machine?


2. What holder will be used to call that code that hibernates the machine?





* Please do not give a project sample code... I just want the code use to hibernate a machine and the holder of that code.





This is not a homework, I am just a novice and simple programmer working in a company... :)


Thanks in advance

What Visual C++ codes will I use to hibernate my machine?
You have to use SetSuspendState() API of powrproff.dll.





Prototype may look like this:


private static extern int SetSuspendState(int Hibernate, int ForceCritical, int DisableWakeEvent);


'91 Buick Park Avenue, A.C. goes to economy when "auto" is selected. All other climate controls O.K.

I selected the "Economy" setting on the climate control, afterwards, I cannot select "Auto" for air conditioning. When I push "auto" it will light and beep when I press the selection, but as soon as I release my finger, "economy" lights up. No A.C. All of the other functions work properly, with the exception that the comperssor does not run at any time, when on "auto" or on defrost, and the air is channeled to the proper vents. The car has the dual A.C. option, and the compressor will run when a hot wire is run from the battery to the low pressure switch on the accumulator. The system has a programmer, which I am guessing may be at fault or the control head. I would welcome any of your ideas or insights on how to troubleshoot, or what the problem is if antone has had a similar experience.

'91 Buick Park Avenue, A.C. goes to economy when "auto" is selected. All other climate controls O.K.
This is designed to operate in this manner if you lose your refridgerant. Your compressor will not operate if you lose the pressure. The reason for this is the refridgerant also carries the lubrication through the system for the compressor. Check your AC pressures. If they are ok check the low and high pressure switches. This is a good start to check it out.

online survey

Best book for new C++ programer for MS Visual Studio 2005?

I'm a new programmer and I'm looking for a book that works 100% with MS Visual Studio 2005. I got a suggestion for Ivor Horton's Beginning Visual C++ book but it's not been a *huge* help.





I learn from self study and then play and when I try to type in the code exactly I get compilation errors. I need a book that works 100% with example code, explains well but preferably not 1,000 pages. A accompanied CD would be great but I'm just looking for a great book! I've had little luck. =(





If anyone has ideas, let me know. Thanks!

Best book for new C++ programer for MS Visual Studio 2005?
Starting out with C++: From Control Structures through Objects





is the book I used to learn C++
Reply:3333


Help writing a C program dealing with rectangles?

Hello,


I need help writing a C program that takes the width of a rectangular yard and the length and width of a rectangular house situated in the yard. I don't want the answer because every programmer has a different way of writing code. I just needs some tips or pointers. Thank you in advance for your input.


-AB

Help writing a C program dealing with rectangles?
See Help for Rectangle() via Windows or _rectangle() for DOS window. Latter will also need _setvideomode() and maybe _setcolor() - see also _moveto() and _lineto()


How many hours should I study C# & Actionscript?

I am planning to study Flash/Actionscript 3.0 as well as some C# for 6 months and then try to apply for an entry level position as Actionscript programmer. How many hours should I study per day to achieve that goal?

How many hours should I study C# %26amp; Actionscript?
Don't set time limits, but instead set attainable goals. For example, you may decide that today you will learn how to read from and write to a database. Don't stop studying and coding until you've accomplished your goal... whether it take 1 hour or 10 hours. Then set a new goal for the next day. In time, you will find that you've not only mastered the language, but will most likely have achieved a skill level greater than entry level ;)
Reply:It's hard to say how long you'll need to spend each day-- it depends on how much AS you know now and what type of programming background you have.





If you're new to OOP and AS... I'm not sure if it's feasible to market yourself as a programmer within six months. There's so much more to OOP than learning a language... there's data structures, class inheritance and instantiation, as well as learning how to implement standard algorithms and constructs.





Obviously the more familiar you are with object oriented programming, the easier your transition will be.





If you're a fairly experienced programmer, then go to Lynda.com and try the ActionScript 3.0 tutorial under Flash and the ActionScript 3.0 tutorian under Flex Builder.





I think you can be up and coding in about 20 hours.





I also recommend investing in some good reference material- the O'Reilly books on Actionscript including Design Patterns and the AS3.0 Cookbook are pretty good. You may want to get your feet wet with a little MXML scripting, too.





Good luck.
Reply:You got to live it and breath it. ;)





I would say focus 70% of your time on action script, and try to put in at least 3-4 hours a day.
Reply:just pretend you know it....that's what most people do


Im a c/c++ user, and im stuck to basic programing, i know clases,reference,pointers,ADT'... etc. i cant apply 8

how can i apply it, i mean i cant apply it to make a game, a database, a keylogger, etc. I have no reference and i think im stuck to basic programming.i usually rely to online tutorials but i cant find advance and intermediate topics. I and started to learn Visual c++ but i really dont know how to make a game? where should i start? Does everyone experience this kind of transition from basic to intermediate? thanks a lot..... Ryuuzakiii -aspiring programmer-(-,-)

Im a c/c++ user, and im stuck to basic programing, i know clases,reference,pointers,ADT'... etc. i cant apply 8
To practice swimming, you shouldn't jump right away into the ocean, pal! Try practice in small pools first.





Your first problem is your "view". It is like you know what a riffle is good for, and you know the concept of firing a gun, but in practice, it looks like a normal stick or baton to you.





First try to write short pieces of programs. Oblige yourself to forget the conventional way of programming, and try hard to find the classes and objects related to your short problem. Do it over and over until you feel you cannot do without them. Then the great ideas would come to you by themselves!





Good luck
Reply:want some resources for game programming i have few articles and source code but only in c language i you want it then mail me with subject as "c game" to


firozahmed143@rediffmail.com
Reply:I've been programming for a few years, and I'll tell you right now -- starting a game is a bit more advanced than the beginner/intermediate border.





I'd love to help with whatever your problem may be, but I think you've had some trouble posting it -- I can't exactly say I know what it means to "apply 8". Sorry.

salary survey

Im a c/c++ user, and im stuck to basic programing, i know clases,reference,pointers,ADT'... etc. i cant apply 8

how can i apply it, i mean i cant apply it to make a game, a database, a keylogger, etc. I have no reference and i think im stuck to basic programming.i usually rely to online tutorials but i cant find advance and intermediate topics. I and started to learn Visual c++ but i really dont know how to make a game? where should i start? Does everyone experience this kind of transition from basic to intermediate? thanks a lot..... Ryuuzakiii -aspiring programmer-(-,-)

Im a c/c++ user, and im stuck to basic programing, i know clases,reference,pointers,ADT'... etc. i cant apply 8
here is a link where you will find C++ and visual C++ game programming resources which includes free tutorials, e-books, on-line training and many other resources.


And don't worry everyone experiences difficulties in starting.





Just follow the link and enjoy :


http://www.deitel.com/ResourceCenters/Pr...


Hi this is daya.i have one ? can u tell me what should i do become a game programmer?

what r the neccesary course tru which i can become a game programmer i live in india so can u tell what r the nessary course availabel fo me in india if i am begeinner what should i do


and my freind has done maya and he does some mail scripting what should he do currently he is doing c++

Hi this is daya.i have one ? can u tell me what should i do become a game programmer?
To become a game programmer, you first need to become a programmer.





You need to learn algorithms and data structures. Algorithms are the set of steps required to do a particular thing, while data structures are how you organize the data inside your program.





You need to learn things like defining a data structure from atomic elements like integers, floating point numbers, characters, arrays and pointers; defining a function, its parameters, the code inside it, how to return values, and how to call the function; control structures like conditional statements and loops.





You will also need to learn how to accept input from the user and deliver output. You start by learning how to accept input from the keyboard and deliver output to the screen in a console program; then you move on to learn how to read and write from a file, etc.





You may also need to learn object-oriented programming (that's it, knowing that a class is a set of methods and properties, that methods are functions that have access to the properties of the class, that you can create objects that are instances of classes, that you can create derived classes, that you can destroy objects, etc).





Oh, and you will need to learn a programming language. I advocate against learning to program a particular programming language without learning the basic programming concepts first. Once you learn how to PROGRAM, you can quickly learn how to program in C, in C++, in Java, in Python, etc...





And that's just so you can get started in programming. Once you're done, then there's a lot of game-related concepts you will need to learn. Here are just a few:





- Drawing graphics in a screen. How to initialize a graphics window, how to draw primitive figures like a point, a line, an image you loaded from a file, to fill in a region, etc.


- Polling for events, coming from the keyboard, the mouse, a timer, file i/o, etc.


- Most game programs consist of a big main loop that gets executed N times each second. Each time, the loop will need to handle all aspects of the game, so you'll need to define functions for:


--- Updating the screen with the game elements: background, scores, sprites (the moving objects, players, enemies...), etc.


--- Polling for events and interpreting them.


--- Moving things around. For example, one of your enemies will move in a particular way, and you update the enemy's position at this step.


--- Checking for game-related conditions. Like, say, collisions between a player and an enemy.


--- Checking whether the game can continue or not.


--- etc.





http://www.libsdl.org/index.php is a library that's easy to use, and that is widely used to program games. There are many examples with source code you may want to visit, once you get started with programming. There are bindings for many languages, but most game programmers will write in C/C++.





Oh, and good programmers don't go to learn to program to a school; they get a book about programming and/or research on the 'net, and start learning on their own.

survey

Learning C++ programming?

Many years ago, I was a skilled programmer in Spectrum BASIC. Now I would like to learn a more modern programming language. Would it be easy(ish) to learn C++ with an already broad knowledge of BASIC?

Learning C++ programming?
You had a Spectrum? I remember those Sinclair computers. I learned Basic on a Vic-20 and a Commodore CBM (PET) 8032. The Vic-20 sucked, so it was quickly traded in for the 8032 and a floppy drive. I think both of them cost $3000 (yeah, my brothers and I were spoiled back then).





Learning C++ is straight-forward, but you'll find many differences. You'll learn new data types, such as a structure. Old BASIC didn't have While loops, and now you don't have to worry about stupid line numbers and deal with entering program lines with the ridiculous single-line text editing.





You can learn C++ with a book that is geared towards a certain operating system and compiler. Another route is to learn C/C++ under DOS, and then buy a book on programming Windows, or some other operating system. Learning the ins and outs of C and C++ doesn't take that long. However, when you move to programming a GUI operating system, there's plenty of function calls to learn.
Reply:It is not easy , but if you are into programming you will do it.


There is a will There is a way.
Reply:i think if you know the basics of any programming language, you'll manage.


they are both high-level languages!
Reply:Visual Basic basically hides pointers, memory addresses, from you. In C++ you virtually can't live without pointers.





So, yes you can learn but you will probably have to learn some new tricks.
Reply:I started out with a Spectrum too. I worked professionally as a COBOL programmer and retrained to Natural, then C, then C++, and now (after years as an analyst, database designer and manager) I've gone full circle and am working as a Visual BASIC programmer because I realised programming was more fun than office politics.





I would commend VB to you because (a) it's free in a MS environment (you can download a whole development environment); (b) you'll be familiar with most of the commands from your BASIC days; and (c) it's a good step on the transition to C++.





Although the proponents of one language or another will try to kid you that they're something special, all languages are basically the same in their logical construction. What might throw you at first is Object Oriented programming, but really it mimics to a great extent what any good programmer did of breaking down programs into subroutines etc - they just look after your variables for you at the same time.





You will come across a whole load of annoying details when it comes to simple things like "how do I save a file?" or "how do I draw a line?", but stick with it, do them a few times and soon they'll be second nature.





Good luck, and well done for wanting to learn something new.
Reply:Its never to late to learn try reading a book on C++ and see what you think yourself here is a site where you can download one for free.


http://freecomputerbooks.com/





Hope this answer is what you want and good luck
Reply:If you want to get C lessons from me in pdf format , send me your e-mail.
Reply:C++ is quite different from BASIC.But C++ is really more object oriented than BASIC and studying is very easy.Check the resource section for some cool FULL free boooks on C++ and Visual C++.May be you can try both C and Java also together .
Reply:Sure. C++ is object orientated so your going to need to get familiar oop terms such as Classes and Inheritance. You can define your own types (classes). Checkout codeguru.com


Can you tell me a good IDE for programming in the C language?

I need to program in the C language, NOT C++. It's for something like putting code in some chips... something for putting C code in some hardware, this is why I need it.


Now I'm at the beginning, so don't know much... the programmer I talked to, said they need a program... and first I need to write some code in C...


What IDE to use, since the last one I used was Borland C 3.1...? I want to use one for Windows.


Also, tell me where to download it from?

Can you tell me a good IDE for programming in the C language?
Microsoft makes the Visual Studio 2005 Express version available as a free download.
Reply:The only one I've used is the Pelles C IDE; it's free to download and decent to work with; probably some of the paid ones offer more support, but this will get it done...


What Language C++, C#,Java!! I are confused?

I am currently a junior in high school and taking a java programming class...I am really getting a hang of it and find it easy to use...BUT i feel like when i am older i would like to pursue a career in Video Game Programing or at least a sort of computer programmer(im not saying its bad i just would prefer some sort of gaming related career)





So what im asking is should i continue to learn java or switch to another language. An intelectual friend of mine told me that C++ is getting old and that java is the future but i just wanted to see what others think?

What Language C++, C#,Java!! I are confused?
As a junior in high school you might want to think about what you want to do but you are way too young to close off your options.





If you want to look at game programming you're going to have to look at where the jobs and skill sets are. A game involves AI, that is providing rules and possibly an opponent for the player, it involves implementing graphics and sound on the hardware which the player will be using. If you want to do graphics you should be studying design. You should look at what the skill sets the languages you know cover. Java is intended to implement some very sophisticated functionality over a broad range of hardware, software and browsers. I'm running Debian Linux on the machine I'm writing on and of course I have Java installed. There will be a market for games for that platform for a long time to come. The other big markets for games right now are the Windows OS and the consoles. Now C# is part of the dotNet suite which is optimized for Windows programming. It is so about Windows, that when Miguel de Icaza, a very smart man connected to the Gnome desktop and Microsoft, introduced a dotNet clone into Gnome called Mono in 2007. I'm not the only person I know who in 2007 went from preferring Gnome to removing it from my computers and those of us willing to discuss it will blame the instability caused by Mono. dotNet and by extension C# are not likely to ever be useful unless you are specifically programming for the Windows OS, though they may be very useful for the Windows OS.





You will probably be able to use C++ on Windows, and you will definitely find it useful if you are working on Game Systems, because C++ does incorporate a lot of C, and C provides an easy syntax for creating a logical model of any hardware, once you understand it. It's possible you may learn some C and C++ if you learn C#, but you are more likely to be able to pick up useful C# if you pick up C++.





And you should not "switch" to C++ from java, unless you have a good financial incentive to. Computer Science is really a branch of applied math: you should exactly be able to learn what you need to know better if you can compare how you do things using different languages and their methodologies.





Enough ranting. ;-)
Reply:java seems to be the wave of the future.. from what i've heard..


Im a visual basic kinda guy as i am into business applications but it seems everything is running java nowadays.. definatly sounds like you are going in the right direction
Reply:A code 'next step' if you aren't interested in learning C++ may be Python...





http://www.python.org/
Reply:C++ and Java are good to learn, and if you want to get into the Com-Sci/IT industry, you got to learn more than just those 2.





Since your wanting to get into the game development industry, you got to learn C/C++.





Yes Java is newer than C/C++, and yes its mainstream, Java is a good language, and yes you can make games in it, But for high performance commercial games, graphics intensive and fast speeds, less memory hogging, without the need of a JVM, C/C++ still makes a whole lot more sense!





Java is good for mobile game development though!





But hey, you learn Java - C/C++ is similar in syntax and with them curly braces. Java is easier than C++. But you learn C/C++ first, then Java is a breeze.





Either ways you learn 1 of the 3, you can have an easier transition to learn the other 2. And then you can throw in to learn C# as well (C# is pretty similar to Java ).
Reply:well no technology is gona get older or usless... evry thing has its own + and -'s





its good to know all these language





Knowing C++ will help u learning Java and C# easy





well coming Java and C# (.net)


this are on gr8 demand and its realy good one 2 learn ... various kind of applications can b developed using both these tech..





as u r more interested in game programming both Java and C++ will help u a lot in ur future even C# and Java both can b used 2 some extend in gaming ... on of the microsofts latest technology Silverlight which will be used in future for making games uses C# for codding...





and Java is my all time fav... its currently used in lots of mobile games (i.e J2ME verson)...





Conclusion : Knowing a technology will always help u in learning a new technology ... all technoloys are interrelated only the way of using them are different..





hope this will help u








tc byee :)





-aneesh
Reply:I agree with NetByte and jplatt39.





If you want to do PC and console gaming learn C and C++


If you want to do cell phone games learn Java (Google just came out with their own mobile API you might want to look at what they offer for cell phones in therms of language)


C# and Java are great for business applications.





As a high school student I suggest you learn about being a computer developer/programmer by studying Computer Science. Learn the skills at becoming a good coder. Language is the means, but it is not the actual skill of being a programmer.





Think of it as being a great driver (programmer). You could learn how to drive a Mercedes (Language) really well, but if you are a great driver (programmer) you can easily learn how to drive a BMW (Language) with ease.
Reply:Java is very mainstream, but if your tired of java, my vote is deffinitly for python.


Where do I start to learn C#?

I want to learn C#. I took a programming class in high school and was exposed to a little C. I want to learn where I can create GUIs, and not in DOS. A programmer friend of mine said I should have a knowledge of .net and OOPS. Is Microsoft a good site? Thanks!

Where do I start to learn C#?
Microsoft created C# and I think Microsoft website is the best resource that you should check. There are also many tutorials on internet related to C#. Please google it with the keyword "C# tutorial" and you will find a bunch.
Reply:dont go to microsoft site, it currently has a virus called "windows vista". anyways search for ebooks. for example google C++ ebooks

land survey

Is it possible to disallow certain template types using template specialization in C++?

How can I restrict a programmer to instantiating a template class with only certain variable types in C++? A simple example would be if I only want to allow the programmer to use a template class with either floats or doubles. Or perhaps allow all types except int.





Is there a way to do this so that I do not need to specify separate template specializations for both floats and doubles? How can I provide a single specialized template for both float and double instantiations?

Is it possible to disallow certain template types using template specialization in C++?
Yes, you can. By using a helper template class, you can create a compiler error.





You can find the idea here:


http://www.dbforums.com/showthread.php?t...





Depending on how you define the unspecialized helper template, you can either default to allow and specialize to block certain type or default to block and specialize to allow certain types. If you default to block and specialize to allow, then it is possible that a user of your template figures out your design and does the specialization to allow.





In the case where you default to block:


template %26lt;class T%26gt; class AllowInstantiation { AllowInstantiation(){} };





This template creates an empty class with a private constructor. In your main template create:





template%26lt;class T%26gt; class MyRealClass


{


// yadda yadda yadda


AllowInstantiation%26lt;T%26gt; m_allowTemplate;


};





For any class that does not have an specialization of AllowInstantiation, MyRealClass cannot be instantiated because of AllowInstantiation's private constructor.





To allow a type, specialize AllowInstantiation. For example to allow float:


template %26lt;%26gt; class AllowInstantiation%26lt;float%26gt; {};


The default constructor for the empty class defaults to public and so it can be instantiated.





To do the reverse, i.e. allow most types and block a few


template %26lt;class T%26gt; class AllowInstantiation {};


Unspecialized template allows default constructor.





template %26lt;%26gt; class AllowInstantiation%26lt;int%26gt; { AllowInstantiation(){}};





Now int is blocked because of private constructor.


Looking for good C++ beginners book using MS Visual Studio '05.?

I'm a total beginner programmer and would absolutely love if someone could recommend a very basic book for C++ that uses the MS Visual Studio 2005 compiler. Thanks a bunch!

Looking for good C++ beginners book using MS Visual Studio '05.?
oh dude, I highly recommend Ivor Hortons Begging Visual C++.





Its very simple to read, the author makes the journey very interesting while reading the book.
Reply:If you are a total beginner then I would recommend not flying straight into C++. Find some things that explain basic programming principles


Which Programming Language is easier VisualBASIC ot C++?

I;m gunna be a game programmer when I start college. But I don't know where to start. VisualBASIC and C++ Two really popular programming languages. I have to be good at math. I'm at a average algebra lvl. I'm not so great at geometry. I never took calculus or trig.





Which programming language is popular with video games.





What kind of games does C++ Make?


What type of games does Visual Basic Make?





Which is easier to learn VisualBASIC? or C++

Which Programming Language is easier VisualBASIC ot C++?
Visual Basic is easier to learn.





C++ is easier to use once you've learned it for alot of things, and it's simply more efficient.





VB is limited, but faster for doing applications that are


input into form %26gt; process %26gt; output an answer.
Reply:Hello romani,





First of all before I answer your question, I'd like to know if you are really dead serious to program games... Cause if you are... Be ready to learn everything you need to learn just to make your games better.... I'd seen some games created with flash...





But if you really like to make better games... I suggest that you have to start to do your games with Visual C++ version 6.0 with a little help of Direct X API. GUI is good but it is slow with game programming... So that is my suggestion to your query...





I thank you... If you have any question... don't hesitate to email me...





Sincerely,





Nori Yango
Reply:I would say that VisualBasic is much easier to learn than C++ but I would like to add my opinion:





If you plan on getting into game development you will need to learn C++. Most existing code is written in C++ and Managed Direct3D does not have all Direct3D features. Also OpenGL is very C friendly. This does not however mean you must start with C++. I would recomend that you do a combination of C# and C++ and ignore VisualBasic all together. You can get the express editions of VisualStudio for both C# and C++ for free from microsoft. You may also want to check out XNA as well eventually.
Reply:In my own opinion you should first try to study languages that don't use GUI.... so for me try C++
Reply:The first part of my response answers your questions in a nutshell. The remaining section details what technologies and concepts that you will be learning in order to become a great game software developer.





Do you want a language that is easy to learn or do you want a language that you can learn to make great video games?





Skip Visual Basic, although its fundamentals are relatively easy to learn, it is much too slow a language for game creation. Besides, in order to create the most responsive and brilliant games, you need to have a very efficient and fast way to access and control memory, hardware, and the OS. Unfortunately VB just doesn't offer you such capability. It is a high-level language. It simply does not have the functionality to perform a lot of the necessary operations needed to create complex, responsive, dynamic, and vibrant games.





C++ is the more versatile. You have much more control over memory and the OS. C++ is definitely the better language (as far as speed is concerned)—due to its low-level access to memory (via pointers), it executes faster than most high-level programming languages.





Hmmm... Ideally, it would be even better to create the game engine in Assembler—without resorting to any of already existing APIs—as ASM provides you with direct access to hardware.


_____________





A game engine is a grouping of program code that performs tasks common to games. A game is a specialized type of program; but, it is still just a program written in a programming language. This means that you can create a game just as you would any other Windows program.





Certain game-specific tasks must be carried out in all games. Therefore, it would be quite helpful to organize the code in your games so that the game-specific code is isolated from the general Windows application code. In isolating this code, it might also be useful to build in some cool features that apply solely to games, i.e., game engine.





In a game engine course, you will learn the mathematical concepts and API-independent interfaces that will add up to your working game engine.





You will study topics such as: the use of DirectX, Direct3D, and Win32 in game engine design; algorithms, data structures, and memory management issues relevant to game engine design





You will learn, among other things to:





Appraise the application of basic algorithms, data structures and memory management to game programming. Assess the real-time and algorithmic issues of the simulation of physics and artificial intelligence in game design. Relate the issues of game controller interface programming. Examine the role of a front-end visual game design tool in the game programming process. Appraise network multi-user issues in game programming.





Introduction to the Game Engine: Game Engine Components and Variations, Stock Game Engines, pros and cons, API's





General Game Programming Concepts: Algorithms and Data Structures relevant to Game Design, Memory Management, Multithreaded Game Programming, Game Performance Considerations





Specific Game Programming Techniques: DirectX, Direct3D, Win32 Programming, Windows CE SDK, SoftImage GDK





Other Topics: Real-time Artificial Intelligence (AI) Simulation Issues in Game Programming, Multi-user Network Game Issues in Game, Programming, Real-time Physics Simulation Issues in Game Programming, Game Controller Device Interface Programming, Real-time 3D Graphics Programming Considerations, 3D Hardware Acceleration Programming Considerations





_____________
Reply:VisualBasic is generally easier to learn ... but C/C++ is much more powerful.
Reply:Visual Basic is easier.


C++ is an important language. It allows people to create Operating Systems.


For scientific applications or games applications, between the 2 languages, C++ would be the choice.
Reply:Programs made in C++ are faster than those written in VB. That's a reason why you'll, most of the time, find games written in C++, with OpenGL interfaces, or something alike.


For time critical multiplayer games, you sould go to the faster execution prog language.





If you don't want to start with C/C++, you can try some Java, as this document suggests :


http://www.euclideanspace.com/software/l...





Oh, you can look a this too : a programming language benchmark; very interesting :


http://dan.corlan.net/bench.html





IMHO, VB sould stay for very beginners in programmation, you sould prog tetris and tic tac toe with it, but not the next gen Unreal, CS or WoW!





My thoughts,


MJ
Reply:As we all know Visual Basic is so easier than C++ as it is has all the built in objects whereas in C++ we need to create all those with code. I suggest you the following website to learn Visual Basic





http://www.freetutes.com/VisualBasic
Reply:VB can be used for very basic games.


Desktop games which does not need much CPU power.


Basically games like Solitare,Hearts etc





C++ with OpenGL u can make any games including NFS ;)





Some VB Books:


http://pspxworld.com/book/programming/vi...


Wanted software, book or system to convert C & C++ ( C99-console only) source code to BASIC* (Console only)?

1) The goal of my question is converting the following source Code (C Console style) below to source code (Basic Console style) .


.http://www.neural-networks-at-your-finge...


http://www.neural-networks-at-your-finge...


2) I am an experienced programmer in Powerbasic Console Compiler http://www.powerbasic.com/products/pbcc/ + MS Basic + Console Basic.


3) I own the book "Leaping from BASICtoC++by Robert J. Traister


4) If it possible to convert Basic to C++ (CBreeze++ and Book) , it is possible to do the reverse and translate from C/C++ to Basic.


What I am searching with Yahooanswer is someone who will provide me with a complete integrated system which will allow me to translate ACCURATELY the source code above into the a Basic source code which after compiling in Powerbasic or MSBasic or Basic will produce the exact same results .


I will use all these tools and my skills to produce a converted program, compiled in PowerbasicCC http://www.powerbasic.com/products/pbcc/


There is NO need for GUI source code because the console does not need any GUI.


There is no DLL or API , SDK calls because the source codes are all visible.


Guy

Wanted software, book or system to convert C %26amp; C++ ( C99-console only) source code to BASIC* (Console only)?
Well I don't thing this can be done automatically by a program because C and Basic are languages of a different level. So you must rewrite the code in C. Anyway I'm not sure I understood your question ):
Reply:I don't think you can do this by any program


rewrite it use basic maybe the only way you could do/

survey software

C program for macintosh?

I'm am a high-school student who recently joined the robotics club. My position in the group is programmer, however I am completely new to the whole concept. I am currently looking for an application for OSX Tiger that will help me write C and C++ for robots. If my question is too vague and i need more information on format or output or etc., request it. It would help if it was free, but not a problem at the moment.

C program for macintosh?
os x comes with a compiler, cc or gcc that will compile your programs (terminal based). XCode is free and from Apple and is an excellent developement enviroment. If you are new to C, the link in my sources is a good place to start.





good luck!
Reply:You will need a C/C++ Compiler. Once you get the compiler, you will need to create firmware/drivers that are specific to whatever chips you use for your robot. The chips should have documentation and libraries that you can use in conjunction with the compiler to program it. Hmm, are you sure that it is C/C++? Most things of that sort are in assembly.





You can find a compiler


http://developer.apple.com/tools/mpw-too...





Note, however, that if you're new to the concept, you might want to practice outside of the club so you have no real responsibilities, because it usually takes quite a long while to learn this kind of programming....


Need basic C programming help.?

Hey, newbie programmer here. I've been trying to program something and I'm having a little trouble.





I needed to ask for user input for the amount of rows in the triangle. The number of rows can only be odd numbers and less than 10.


The output should look like





*





**





***





**





*





For a 5 row triangle. I got the input thing down I think but I can't find out how to put the * in that pattern. I'm trying to use a nested for loop, I'm I going at it with the wrong loop? The spaces need to be there too.





Here is my code, it's not done, I couldn't get it to work for 3 so I stopped.





printf("How many rows do you want?\n");


scanf("%i", %26amp;c);





switch(c){


case 0:


printf("You can't have 0 rows\n");


break;


case 1:


printf("*")


break;


case 2:


printf("Your number must be an odd number\n");


break;


case 3:


for(counter=1; counter%26lt;=c; counter++){


for(a=1; a%26lt;=counter; a++){


printf("*");}


printf("\n\n");


break;





I'm sure I am just stupid but I can't figure how to make the triangle decrease in *.

Need basic C programming help.?
Looking at your code, it will not handle anything over 3 rows.





My advice would be to capture the users input. Ensure that it is not 0., if it is, exit the routine.





Then use a modulus operator with the value of 2 to ensure an odd number. If it is an even number, exit the routine.





Find the midway point. Add 1 to c and then divide by 2. For instance if c is 5, add 1 to that to get 6 and divide by 2 to get a midway point of 3. Then using the for loop like you currently have set up (with the nested loop) loop until counter %26lt;= to the midway point. Once that loop structure is done executing have the program execute another loop sequence very similar to the first one (with the included nested loop) but have the loop set up as:


for (counter=midwaypoint-1;counter %26gt;0;counter--)





This way you will create all of the rows as required.
Reply:Hi I wont get into the way you validate that the user has entered an odd number but I'll show you how to draw the decreasing side:





c=5; /* or any odd number 3, 5, 7, 9 etc */





/* start at 1 and draw the increasing side */


for (counter=1; counter%26lt;=c; counter++)


{


for (a=1; a%26lt;=counter; a++)


{


printf("*");


}





printf("\n\n");


}





/*


** counter should now be 1 over the rows eg counter = c+1


** take off 2 so that the largest row isnt drawn again


*/


counter = counter - 2;





/*


** now draw decreasing side but decrementing it in a loop


** until it hits 1


*/


for(; counter%26gt;=1; counter--)


{


/* This code is the same as above */


for(a=1; a%26lt;=counter; a++)


{


printf("*");


}





printf("\n\n");


}








Good luck.
Reply:A couple of things ..





to check for validity of input





int c;


...


if( (c/2 * 2 ==c) || (c%26gt;9) ) .....error, ask for new input





to go backwards just run your loop backward





for(counter = c-1; counter%26gt;=1; counter--)
Reply:Not stupid - just learning...





Have a try at this:


1) After the user enters a number, make sure it is valid. You say only odd numbers between 1 and 10. Note that odd numbers when divided by two will give a remainder. Thus, the MOD() function can help in determining if a number is odd or not. (and eliminate the need to a case statement)





2) Assuming the number is good, set up three FOR loops


a) the first is as you have it now using counter


b) the second goes from 1 to half of your number or (5/2)+1


Each time through, print an asterisk


c) the third goes from half the number to 1 (5/2)


Each time through, print an asterisk





(There's another way to do the above, but since you're learning, the above way is easier to understand for now.)


C# .NET vs PHP?

Ok I was wondering what are the advantages and disadvantages of each. My boss wants me to start learning .NET at work. I am excited to learn it. But it seems so much more difficult than php.





For one thing everything is done completely different. Accessing databases seems so much easier to me in PHP. I was looking at code one of our .NET programmer uses to access a database; complicated! It was impossible trying to parse through it. He mainly programs .NET with C#. And C# looked completely different than php. There is a lot of stuff in their that isn't in php.





All the layers in .NET I found confusing. I know it makes things more organized, but I prefer the way PHP globs PHP, Javascript, and html into one file, code seems so much more readable to me that way.





So what advantages are there to .NET? Why would you want to migrate from php to .NET?

C# .NET vs PHP?
If your boss wants .NET, then you have to give him .NET. You may prefer PHP, but he's the boss, and it's his call. Those are the perks of being in charge, other people have to adapt to your style.
Reply:You really need to take a class on C#. You can try New Horizons if you live near one. It's expensive, but if you need to learn a language quick and you're confused on what to do, go there.
Reply:C# is a language that can be used to write windows applications as opposed to just web. I don't really think it's a language designed to build a website around, only specific applications. I've used both, although I can't say I'm an expert.





If there was a request for you to learn C# .NET, it's probably to fulfill a role that PHP cannot.


C++ Homework Help!!?

I am not a programmer...and I'm working on a Project. Its supposed to be "easy", but to me it isnt. I dont know how to end this program. I did start it...actually, I've been working on this for the past couple of weeks, but I cant finish....I wonder if you could tell me what to do...how to finish the program....I NEED HELP!!!





The program should ask a user which type of violation they have, which will be either A, B, C or D. Each user will have every type of violation. After asking for a type of violation, the program will ask the user how many violations of that type they have. Lastly, the program will display the total fine for that person.





VIOLATION TYPE and FINE


A: $30.00


B: $90.00


C: $120.00


D: $290.00





How do I end this problem?





This is what I have so far....





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





void main()


{


printf("Select from these options..


printf("Violation Types\n,1...


}





what's next?


Could you post it here?


You can do it if you want...LOL! (seriously..if u think this is fun and easy)

C++ Homework Help!!?
learn and use switch case , its easy
Reply:As a stopgap, I'll help you with this project. I won't do your code for you, but I'll give you an idea of where you need to go.





You've got the print stuff mostly down. Now you need to get the fine information from the user. After you get the fine number from the user, what do you do with it? It depends on the fine type. You have to make a DECISION based on what character is entered, so you use a DECISION STATEMENT. (if.. else) IF the fine is type A then the fine is 30, ELSE IF the fine is type B then..... so on and so forth.





Once you've got the fine type, get input from the user as to how many tickets they have. After that, it's a simple matter of multiplying their input by the dollar amount of their fine type.
Reply:Or else you may contact a C++ expert to code your homework. Check websites like http://askexpert.info/

survey research

What is the best C/C++ developer environment?

I'm looking for a really good C/C++ developer environment, I've herd Dev-C++ is pretty good, any other suggestions, also don't use fancy words to try and convince me, I'm a very n00bish programmer, and have only worked in Liberty BASIC and HTML, so I don't know what stuff like object oriented means. thanks, please provide some reasons and links

What is the best C/C++ developer environment?
Microsoft Visual Studio Express editions are free downloads, and have most of the features you'd want to learn C and C++.





And if you ever want to move on to more serious development, you'll already know your way around the most popular tools.


http://www.microsoft.com/express/
Reply:I just started to fool around with C and C++ again. I am predominantly a JAVA developer. I use CodeBlocks which I find to be very good and intuitive for beginners. It's lightweight too. cprogramming.com and cplusplus.com should give you good tutorials to get started. C is really low level, you will need to understand how the internals of a computer works before you can claim you know C. Pay attention to memory (allocation), pointers, etc.





My vote is CodeBlocks, type it into google and download it. I would recommend Visual Studio for Visual C++ but that is a heavy and costly IDE that is for down the road, when you do professional development in Windows.


Any there any experienced programmers that can guide me with C++ program?

You can write to Yahoo Groups, Google Groups or Newsgroups; they've got numerous groups for C++ there. There are several bloggers that blog about their programming experiences that you could read too.





...and you can always email/IM me - I've spent a couple of months with C++ before I moved to Java and .NET.

Any there any experienced programmers that can guide me with C++ program?
Try a toutorial
Reply:Yes you can find lot of C++ programmer at websites like http://oktutorial.com/
Reply:try downloading tutorials (google it).


Which programming to choose c# or vb.net?

I am a below average vb.net programmer ,now iam planning to take it as a profession ,so which one to choose c# or vb.net.Some of my friends are saying that there is a chance that ms may drop vb.net lan in future, is it true?


%26gt; is c# %26amp; vb.net both equally powerful(not say they r equal)


%26gt; which one is more productive(easy to build),if so how much difference


%26gt; is c# tough to master than vb.net


Most of them r saying that lan does't matter in .net platform,but i really need a comparison


If possible reccomend a good beginner book

Which programming to choose c# or vb.net?
In terms of performance, all .NET languages compile to almost the same Intermediate Language (IL) hence perform almost the same.





There is a myth that C# code is faster which is not totally true, but there is a grain of truth in that since VB.NET allows you to take actions that might make your code of a lesser performance. Such actions might not be possible in C#.





I advice you to study C#. C# coders tend to understand VB.NET code (if they had to read it) more than VB.NET coders understand C#. In addition, learning C# will make it easier for you to understand a Java snippet if you had to read it for some reason.





The syntax of C# is a BIT tougher than VB.NET, but once you get used to it, it will be very easy for you.





To start learning C# i advise you to read the following two books in the order specified:


1) Microsoft C# 2005 Step by Step (Microsoft Press) [This book is excellent for starters)


2) Programming Microsoft C# 2005: The Language by Donis Marshall - Microsoft Press





Hope the above helped.
Reply:It's not entirely true that the language in .NET doesn't matter. I myself prefer C#, it's a bit more powerful than vb.net, and also less verbose. It was designed specifically for .net, so even though I had done plenty of vbscript in ASP, I chose C# for .NET.


If you've done any C, or C++, Java, or Javascript, the syntax will not be unfamiliar either.





Best book to start : C# Primer Plus, deals almost entirely with just the core language.
Reply:Actually you need to first describe you programming requirements.


Overall if you are going to programme on windows you should use VB for best compatibility and less hesitations.


And if u use linux then no metter the gcc and g++ are the most advanced and best options.


but like wise for gui in linux i would like to prefer python.


Changes in c++ ?

I am a neophyte programmer. I can already create functions. I will soon be studying object oriented programing.





I started learning C++ using Microsoft Visual C++6.0 . I recently downloaded Visual C++ 2008 express edition. I discovered that source codes I have written in VC++ 6.0 had some errors when compiled in VC++ 2008. What changes have been made from 6.0 to 2008? If there's a good site please give a link.

Changes in c++ ?
Visual Studio 2008 has C++.net as well. Anything created with C++.net requires the .net framework to run. Same principles as Java.





I don't know about VS-2008, and VS-2003 and VS-2005 will still do the old Visual-C++ as well (without relying on the .net framework). I don't know if VS-2003 to VS-2008 will still let you do command-line C++.





If you're getting errors when compiling, then I don't know. I don't know if VS-2008 will do non .net stuff or not.
Reply:You may contact a c++ helper live at website like http://gionram.com/

survey for money

How hard would it be to learn how to be a database programmer on my own?

How hard would it be to learn how to be a database programmer on my own?


I am pretty computer saavy and pretty intelligent.


I know I can get MySQL and SQL Server for free.


What other programs would I need and need to learn?


How long might it take me to learn the programming. Would I have to learn a programming language like C++ or Java on top of MySQL? I am looking to change careers and may have time to devote full time for a few months to learning this.


I hope I am stating things correctly, if not please correct me.


If I had the capability and was disciplined, could I learn it enough to get a job in it?


Also, what kind of pay might I expect?


Any other pertinent info you can provide that I have not thought of would be helpful.

How hard would it be to learn how to be a database programmer on my own?
If you want to get a job in the computer area then you need to get minimum A+ certification. And evven then depending on what you want to do In computers some places insist that you have a diploma in the field.





You can start playing around with learning programming. i'd suggest to learn c++, C, VB 6. And while you are doing that look for courses and programs that you could take at a university or college.





This is just my opinion from my own personal experience. I started out with my A+ cert and then I took a computer tech course that included everything from componants to electricity, to fixing computers, creating and maintainging servers, and programming in 4 different languages.
Reply:A good way to learn is to download one of the Apache server distributions like wamp onto your own pc, and use this for design and testing. This allows for use of mysql with php, the most common combination on the internet. This is how I learned, when a supposed professional database designer made a total hash of a project, producing 4 test pages in 2 weeks and trying to charge thousands for it, I took it over and had a fully working client, contact and workshop production database within a month, including controlling the security on the Linux server it was running on. I used only the mysql and php manuals for this, with a book on html, as I had never even written any html before.
Reply:not that hard.


Is there anything else I need to learn to program in C++ ?

i completed a C++ course...i learned :





Intro to C++ %26amp; the Environment


Variables,Constants, %26amp; Math Statements


The String Data Type; Equations


Programmer-Defined Functions


Creating Output (formatting and creating files)


Using the if Statement


Other Functions; Nested if Statements


Looping





can i earn money with this knowledge i have ?

Is there anything else I need to learn to program in C++ ?
Hi


Sure u learned C in C++ environment , and all those things you have learned are common for both C and C++ , matter of fact you not even entered the OOPS concepts , Buddy still these things are yet to learn !





Objects and Classes


Data abstraction and encapsulation


Inheritance


Polymorphism ( Overloading )


Message Passing


Dynamic Binding


And lots of basic stuffs yet to learn!





You can earn only if you have good programming skills !





Thanks and Regards !


Prince M. Premnath
Reply:Looks more like C... where are the objects and classes... did they teach u that ????





The answer to your question is : Not yet...





you are yet to get into the real essence of C++... well, there are lot many advanced concepts that you must go through if money making is the goal... try to get into a advanced C++ course that deals with inheritance, polymorphism, operator overloading, templates, exception handling, namespaces, standard template library usage, etc... (there are so many concepts dear...) also try to get some handson in OOAD based design tools like Rational Rose...(training institute will provide this one too) then u can go for the big bucks... :-)
Reply:This is a very basic course that you have done. The main magic of C++ is Classes and Objects concept which I think you still need to learn if u wanna become a cool C++ Programmer.


No wonder, C++ is supposed to be a OOP(Object Oriented Programming) Language
Reply:the core of C++ is OOP, u need to understand concepts like abstraction, reusability, ancapsulation and also practice them.


The things u have learn't so far are the basics of c++ and infact u need to know them to built on advance concepts, and then u will be able to increase your chances of earning money.
Reply:i m goin to do my BCA this year n i dont think thats enough....


is the course you have done a small one??? do they provide any placements?? do they even boast? if they dont then they are probably sure that this isnt enough to be a pro!


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


the reason i m saying this is that i had C++ as a subject in my school, and C still fascinates me and all the topics you ve mentioned were covered in my school so.......but your course might be of some good details so cant say....


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


the best is to ask your course teachers. ask them straight if you know enough to work in C++.....they know the best!
Reply:You study any programming language there is no end !!


You always keep on finding new things in them


The best way of mastering any language is keep on practicing.


Instead you can study graphics and animation which is very good source of income.
Reply:If you want to create video games you'll need to learn math, more math and even more math. :-) Seriously.





If you want to program busness applications you'll want to learn about databases ... and whatever else the client wants.





If you want to program for the internet, you'll need to learn markup languages (HTML, CSS, etc.) and a scripting language (PHP, Python, Javascript, etc.)





So keep hitting those books. Study Smart!


Games with C++?

Ok well im a begginer at C++ language, but i kinda wanted to learn more of the game parts of C++ and i dont know what the call that or anything in the game field becuase i dont want to spend my time making stupid programs that mean nothing to me... I dont want to get off track. learning things i dont need to in the C++ programing enviroment of game development and design. So id like some hinters/termology about C++ and game development, all so i kinda wanna know what other programming stuff has to go with making games in the serious game development.





Thanks a lot for ANY information you can provide me with that will help me for future, becuase i am taking programming serious so i can become a programmer or such for the future in game development and design.





Dont say "its so hard" and stuff like that i got a lot of time to live( hopefully ) so provide good answers please.

Games with C++?
Good for you, you're already ahead of most people who think they can sit down for a month and produce the next "Halo 2". Game development is certainly not easy and requires a lot of blood sweat and tears.





That being said, here's what you'll need:





- Multimedia library(s)


These libraries allow you, the developer to leverage the amazing power of those who have gone before you. Instead of reinventing the wheel, you simply create your content and let the library deal with how it works. Depending on which platform(s) you want to develop will help determine which library you go with.





- Game engine


This will determine how components in your game will interact with each other. It could include elements such as in-game physics, collision detection, character data, etc.





- Game content


This comprises the majority of work for most games. It could include a soundtrack, sound effects, artwork, videos, and storyline. If you take a look at the credits for large games, you'll see that the number of programmers is usually much smaller than the number of artists. There's a reason for that.
Reply:Awesome,





While I know very little about what programmers are usin - some of which is stuff they've developed from C - I can tell you that there are a lot of Guilds and Groups that you can join who will help you out a lot.





If you do take your programming seriously, consider learning C++ amongst others - and do lots of Modding. Modding is great practice and gets you name out there. They often use cut down versions of C++ in the scripts.





Learning one language off by heart is not the best way to start - because programming languages come and go with trends. The best thing to do is to learn about programming itself, with a selection of languages as well. There are lots of great books on programming for games as well.





As far as learning stuff you don't need to know, frankly everything you learn today will be a bit out of date in 5 years time - but the process of learning those skills and the generic knowledge of how programs work and how logic works will be very valuable. There also isn't much in games programming that is specific to games, they tend to cover pretty much everything a programming language is capable of. They're complex lil beasties.





If you're really stuck and need extra help - try going to a few of the games sites for games you like - hit the forums and search for forums relating to games, modding or careers.





It'll be a start. ^__^





n G'luck. My brother is in the biz now - but he's using entirely different languages to what he learned at Uni, coz times change. He copes because he's learned how to learn, and about how programming works.
Reply:There is no special part of C++ that is for gaming purposes, as it is a general purpose language, and can be applied to any programming task. It is a good language to learn though, and has many resources available for the eager to learn like yourself.





There are many aspects to game development which you would need to be able to get to grips with, and not just the language or programming itself.





Two vary broad, but important areas of knowledge which i think are crucial if you want to start developing games, are maths and physics. Get a good basis in these subjects and a lot of concepts you will meet along your long journey to game programmer heaven will seem all that more easy.





To start off with, you will probably need to get an SDK (software development kit) which is suited to game development. This is kind of an extension that allows you to make games or graphical applications. To the two most command being DirectX (from Microsoft), and OpenGL. I think OpenGL is a lot easer to pick up, but DirectX includes API's for Audio, Input, and Network play (amongst others) where as OpenGL stuff covers the graphical elements.





Depending on how you want to start, you can go for the already written 'engines' or mod current games/projects and develop in that way, or start from scratch and build a game up using your own design and code. The latter will be more rewarding, but will also be harder, longer and more demanding.





The advice which was given to me, and which i now pass onto everyone else, is that you should start off with a small game, and by small i mean simple and not fancy; Tetris or Pong maybe. This will allow you to integrate all components of game development(audio, graphics, AI, input) and start to feel for how they all integrate and comunicate with each other. You can learn all of this wihtout getting bogged down with all the indepth, complicated inards of advanced graphics programming.





Once you have the basics ironed out, you can then start to add more into your games (maybe integrate particle systems for explosions or collisions in your pong game), this will allow you to start learning about physics and to see how 'real' physics is applied games, or maybe convert your 2D tetris game into a 3D version, exposing you to 3D concepts and things like vision culling and 3D transformations. Its all about getting the basics in place and getting them right, and once you have done that, then you can build upon your knowledge and produce more advanced, stable, and efficient code.





Some good sites for game programming are:


www.gamedev.net - general game development


www.gamasutra.com - general game development


nehe.gamedev.net - opengl tutorials


cg.cs.tu-berlin.de/~ki/engines.html - List of game engines





Hope i've managed to helped in some small way ;) if anything is unclear or you want me to expand on anything i have mentioned then feel free to contact me.
Reply:Get a couple of good books on game writing in c++ (lookem up on amazon.com). also learn opengl, directx, and you must be dang good in vectors and 3d math! good luk.