Because things, these days, seem a little 'slow' around this forum, please forebare this old post, (that was recently resurrected by an inquiring mind), and humour this 'update', in good faith that this update might be appreciated by some beginning students of C++ ... :) // beginnerBadCppExampleCodeBeforeFixedUp.cpp // 2013-08-14 // // This following 'Supposed example' of good code is ... // re-worked ... // to demo an acceptable coding style for current C++ students ... #include<iostream.h> #include<conio.h> float no,price[50],total[50],qty[50],tt; char item[30]; void main() { int i,j; clrscr(); cout<<"\n\n\t\t\tRaje's Billing Software\n\n"; cout<<"\nEnter The Number of Products you'v Purchased:"; cin>>no; cout<<"\n\nSL No\tITEM …

Member Avatar
Member Avatar
+0 forum 9

[code] 1>------ Build started: Project: DirectXtutrials, Configuration: Debug Win32 ------ 1>Build started 3/24/2011 5:24:05 PM. 1>InitializeBuildStatus: 1> Touching "Debug\DirectXtutrials.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1>ManifestResourceCompile: 1> All outputs are up-to-date. 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\Konnor\Documents\Visual Studio 2010\Projects\DirectXtutrials\Debug\DirectXtutrials.exe : fatal error LNK1120: 1 unresolved externals 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:07.66 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== [/CODE] So that's whats wrong with my code. The source code doesn't matter because i've tried multiple source codes and it still doesn't work. I'm trying to learn directX 10 and for …

Member Avatar
Member Avatar
+0 forum 4

help i can not figure this out. my home is to encryption a four digit number I have to add 7 and use mod 10-- i think i have that part but now i need to swap the first number with the third and second with the fourth. i can not get it--here is my code i know 41 is wrong but i am drawing a blank //christine gershen // Exercise 4.17: Encryption.cpp // Encrypts data given by user. #include <iostream> // required to perform C++ stream I/O #include <iomanip> // required to perform setprecision stream manipulator using namespace std; …

Member Avatar
Member Avatar
+0 forum 9

Hello, My whole life I've wanted to make a video game. I've been influenced by notable programmers; Shigeru Miamoto and Tetsuya Nomura. I'd like to learn how to do C++ programming so I can make a game. I'm only a freshman in high school, so you can imagine, I don't want to wait until college. Here's my problem, the only thing I know about programming a game, is what makes a good game. So, having no experience, where do I start?

Member Avatar
Member Avatar
+0 forum 4

I'm having trouble figuring out a few different methods that I'm putting into a constructor. Any chance for advice? I'm having trouble with the last 3 near the bottom. I want to compare two name variable to each other to see if they are the same regardless of case, then I want to take just the first initial from each name that the user inputs, and last I want to count the amount of characters not counting spaces. The user inputs their name as First Middle Last. I am lost. Thanks in advance. [CODE]/* import the Scanner class */ import …

Member Avatar
Member Avatar
+0 forum 14

The End.