Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
16
Posts with Downvotes
12
Downvoting Members
10
5 Commented Posts
~41.0K People Reached
About Me

I like to learn new computer languages, I like a challenge, I do martial arts, and I like to have fun.

Interests
C++, C#, Java, Android Development, XNA, DirectX
PC Specs
notebook hp pavilion dv6 AMD quad core
Favorite Tags
Member Avatar for nanodano

[B]Introduction[/B] Hello everyone. This little code snippet shows you how to read in scan codes from the keyboard. It is slightly different than reading in a regular character. When you use the [INLINECODE]getch()[/INLINECODE] function, it is normally returning an ASCII value. Some keyboards have extra keys though. These include the …

Member Avatar for thendrluca
2
6K
Member Avatar for Yzk
Member Avatar for Zvjezdan23

Why is my score corrupted??? #include <iostream> #include <cstdlib> using namespace std; int main() { string names[10]; int score[10]; for(int scores = 10; scores >= 0; scores--) { cout << "What is your score? "; cin >> score[scores]; cout << endl; } int swapHolder = -1; int ten = 10; …

Member Avatar for DeanMSands3
0
133
Member Avatar for Zvjezdan23

I am programming a number of students and quiz questions and correct answers program for my school's programming II class. I have an ok knowledge of C++, but I cannot understand the reason why my code does not work. I have created an integer of num of students, I asked …

Member Avatar for DeanMSands3
0
129
Member Avatar for Zvjezdan23

#include <iostream> #include <string> #include <cmath> #include <math.h> #include <algorithm> #include <cstdlib> using namespace std; int main() { string names[10]; int score[10]; for(int scores = 0; scores < 10; scores++) { cout << "What is your score? "; cin >> score[scores]; cout << endl; } int swapHolder = -1; int …

Member Avatar for deceptikon
0
134
Member Avatar for Zvjezdan23

I don't understand what I am doing wrong. Can anyone help me please??? Code blocks are created by indenting at least 4 spaces ... and can span multiple lines using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace chapter_5_c_sharp_array { class Program { static void Main(string[] args) { int x; …

Member Avatar for thines01
0
91
Member Avatar for Zvjezdan23

What did I do wrong? Can anyone please explain to me so I can learn? [CODE] #include <iostream> #include <string> #include <cmath> #include <math.h> #include <algorithm> using namespace std; class Distance { private: int length; public: Distance(int length = 0); int operator *(Distance My_Trip); int trip_length; }; int Distance::operator *(Distance …

Member Avatar for Zvjezdan23
0
121
Member Avatar for Zvjezdan23

Hi everyone! =) Since my teacher can't help me out or doesn't respond when his hours say he's in his online office, I need some help. I am coding Tetris; and I have to say I'm doing a decent job so far. I just need help with constant movement. =/ …

0
85
Member Avatar for Zvjezdan23

header1.h [CODE] #include <iostream> #include <string> #include <cmath> #include <math.h> #include <algorithm> #include <Windows.h> #include <conio.h> using namespace std; int gotoxy_object(int x, int y) // your object { HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); COORD point; point.X = x-1; point.Y = y-1; SetConsoleCursorPosition(hConsole, point); return SetConsoleCursorPosition(hConsole, point); } int gotoxy1(int x, int …

Member Avatar for Labdabeta
0
510
Member Avatar for Zssffssz

Im writting a very simple command-line. I want the > Charecter to come up every time a command ha finished what it's doing (easy) AND when the user presses enter with nothing on it. For example ($ is currssor) I want this: [CODE]> >$[/CODE] Not this: [CODE]> $[/CODE] How would …

Member Avatar for tom12
0
193
Member Avatar for stinkypete

Does anyone have an algorithm that generates all 10-digit integers that have at least one digit repeated? Trawling through all 9000000000 of them and checking them individually is too slow. Thanks.

Member Avatar for VernonDozier
0
894
Member Avatar for karmstrong

I am having and issue getting my add to list function to work in my data structure list class. I have all functions working except addToPostion. addToHead, addToTail, deleteFromhead, deleteFromTail, and DeleteFromPosistion all work as expected. I'm confused on the addToPosistion. The entire .cpp file is posted. Any and all …

Member Avatar for karmstrong
0
306
Member Avatar for jackmaverick1

I've got a little inventory management system going, and it searches for products by name. It also loads old data from a file on the hard disk. For whatever reason, when it loads the name, it doesn't accept the name that it displays in the save/buy functions. If that doesn't …

Member Avatar for jackmaverick1
0
146
Member Avatar for br0wnm4n

So I am stuck on my assignment where I am suppose to make mortgage calculator and I am suppose to do the following things: 1. Mortgage Calculator : prompts the user for (a) principal, (b) Annual interest rate , (c) number of months.It calculates the monthly payment and prints the …

Member Avatar for Zvjezdan23
0
373
Member Avatar for DavidB

Hi, everybody. I am reviewing some old code and two questions came to mind. 1) Is it better to use “[B]\n[/B]” or [B]endl[/B]? [INDENT]"[B]\n[/B]" seems to be working just fine, but most code samples I see in books nowadays use [B]endl[/B]. What is the difference?[/INDENT] 2) For multi-line output statements, …

Member Avatar for PrimePackster
0
136
Member Avatar for siabenie

Hi all, I am bit confused about this question: What is the value of i after the for statement is done? [CODE] int n = 100; int m; n = m; for (int i = 0; i < ; i++) { .. } [/CODE] I tried to write it down …

Member Avatar for amir808
0
132
Member Avatar for Zvjezdan23

My code has a successful build, but when I run it and type in my 5 numbers, it breaks. Any clue as to how I can fix it??? Much help will be appreciated. [CODE] #include <iostream> #include <sstream> #include <string> #include <ctime> #include <cmath> #include <math.h> #include <algorithm> using namespace …

Member Avatar for thines01
0
119
Member Avatar for balldrix

now i am working on an exercise that asks to write this without recursion.... can anyone guide me to what i can do to make this work? i dont want anyone to do it for me but help would be appreciated. [CODE]/* #include <cmath> using namespace std; void getAllDivisors(int n); …

Member Avatar for balldrix
0
201
Member Avatar for Zvjezdan23

My teacher assigned the class this: Create a simple Game Loop for the game Mastermind. (Search the Internet to refresh your mind on how Mastermind is set up.) Have your computer generate a random 5 digit number, as a string. Then the user must guess the number. Using the code: …

Member Avatar for Zvjezdan23
0
534
Member Avatar for DazedanConfused

Hello forum, I need help with my first assignment regarding classes. I have no clue where to start so if possible could you please walk me through the best logical process to solve this assignment. I have no clue where to start so any information will help. Here is what …

Member Avatar for Zvjezdan23
0
342
Member Avatar for gdubz

Im trying to take input data from a user as a string of number or letters and store each char on a different array, whats the proper syntax fro this?

Member Avatar for Zvjezdan23
0
224
Member Avatar for cangan

Hi people, I need to change return type of a function. So function should return array values.In here, data type of the array values are not int,char or double. The data type of the array values are a kind of custom type. So confused. Please help:scared::idea::( [CODE] [COLOR="Red"]void [/COLOR]DataType_Class::insert_rowData_into_array() { …

Member Avatar for cangan
0
255
Member Avatar for 8367144q

I've got a worksheet which asks me to ask the user to enter a beginning and ending value. Create a for loop using these numbers. Also ask the user to enter another number. The program will search for multiples of this value. a. The total of all values in the …

Member Avatar for Moschops
0
142
Member Avatar for Zvjezdan23

I am making a program for my week 1 programming II class. The assignment is... Create a structure for a classroom. Make sure it includes the following: Room Number, Lecture Name, List of Students, Number of chairs, Window (Yes/No), Projector (Yes/No), Available(Yes/No). Instructions: • Create functions that allow you to …

Member Avatar for Schol-R-LEA
0
101
Member Avatar for Vasthor

Ok, here I come with a some sort of big analysis with pointer, array, vector, iterator and address of memory... using this input: [CODE] // hakim makan nasi // ayam yang basi // sambil tengok // hafiz yang tergelak // gelak [/CODE] with this code: [CODE] #include <cstring> #include <iostream> …

Member Avatar for Narue
0
211
Member Avatar for Zvjezdan23

This is code for the slope intercept formula y = mx + b I am supposed to find the slope (y2 - y1) / (x2 - x1) and have the user input the b for the y = mx + b in my program. Once the user does that I …

Member Avatar for Zvjezdan23
0
2K
Member Avatar for speak1

So I need to do this following program and I'm totally confused at the moment. Can someone please help me? Your help will be greatly appreciated. Objective: 1. Write a program that incorporates function modules 2. Use appropriate function declarations 3. Use function headers and write function procedure 4. Use …

Member Avatar for Zssffssz
0
455
Member Avatar for Zssffssz

Well when I run my program the bar at the top says C:\programing\C++\Test\Test.exe (<<just an example) How do I change this? And how do I make the console window look more XPish (I heard it was called luna). Answer the title one first please. I wnt this too be all …

Member Avatar for NathanOliver
0
416
Member Avatar for johnnyboyslim

Why is my program failing to close? These names and phone numbers are what I am trying to load into the array and display. Yaztremski 592-48-1003 Tilden 355-71-8210 Charles 290-65-8817 Balboa 458-12-9834 Watterson 234-98-0023 Jefferson 303-41-5692 Carmichael 392-60-0932 Martin 418-77-0974 Davila 339-89-4475 Jacobs 228-42-0547 Dobbs 219-52-4058 Nastromo 628-79-2516 Rivers 611-69-7045 …

Member Avatar for johnnyboyslim
0
88
Member Avatar for Zvjezdan23

Good evening all. I have a quick quick problem in my code. The build is successful but my debug shows up the errors: First-chance exception at 0x013c43e6 in week2_project1_gamephysics.exe: 0xC0000005: Access violation writing location 0xcccccccc. Unhandled exception at 0x013c43e6 in week2_project1_gamephysics.exe: 0xC0000005: Access violation writing location 0xcccccccc. The program '[9888] …

Member Avatar for mrnutty
0
324