Author |
Message |
Topic: Maths problem. |
Rayne01
Replies: 12
Views: 1017
|
Forum: The Useless Void Posted: Thu, 4th Jun 2015 12:19 Subject: Maths problem. |
Rayne01's entire post history is filled with asking the hump programming and math questions
I ask questions to ensure I'm doing things right or at least get the help to better my abilit ... |
Topic: Maths problem. |
Rayne01
Replies: 12
Views: 1017
|
Forum: The Useless Void Posted: Thu, 4th Jun 2015 01:29 Subject: Maths problem. |
I had a good read of that site and referred to YouTube videos to get a better understanding of the question overall; once I managed to establish what it was asking, the rest seemed quite simple.
Th ... |
Topic: Maths problem. |
Rayne01
Replies: 12
Views: 1017
|
Forum: The Useless Void Posted: Wed, 3rd Jun 2015 19:15 Subject: Maths problem. |
I have my Exam coming up tomorrow and there was one question on my mock exam that I couldn't for the life of me figure out;
I remember the question very well, it simply said:
"Sovle: 3x <= 29 ... |
Topic: Help with ocking the cursor to the bottom y axis of a sprite |
Rayne01
Replies: 2
Views: 1874
|
Forum: Programmers Corner Posted: Sun, 15th Mar 2015 19:22 Subject: Help with ocking the cursor to the bottom y axis of a sprite |
I think I fully understand your solution.
This places the mouse cursors at the bottom of the image (y) axis.
Then, placing the image at the mouse x axis, dividing it by 2 which would be the radi ... |
Topic: Help with ocking the cursor to the bottom y axis of a sprite |
Rayne01
Replies: 2
Views: 1874
|
Forum: Programmers Corner Posted: Sun, 15th Mar 2015 18:17 Subject: Help with ocking the cursor to the bottom y axis of a sprite |
I've not long started games programming formally at my college; I've been using photoshop to create a 2D animation of a lightning bolt.
Generally I have two questions.
My first is, when I click ... |
Topic: Quadratic reduction |
Rayne01
Replies: 2
Views: 1581
|
Forum: Programmers Corner Posted: Wed, 4th Mar 2015 23:44 Subject: Quadratic reduction |
First of all, thank you for your reply.
Just to clear a few things; I believe this is Geometric as it's a multiple of its former series number.
I have all the calculations done except one little ... |
Topic: Quadratic reduction |
Rayne01
Replies: 2
Views: 1581
|
Forum: Programmers Corner Posted: Wed, 4th Mar 2015 19:10 Subject: Quadratic reduction |
My college mate gave me the answer to this quadratic reduction equation; now, instead of just using his answer and submitting it, I was to understand how he got the the answer; I've applied his answer ... |
Topic: C# winforms, passing an Integer |
Rayne01
Replies: 18
Views: 3063
|
Forum: Programmers Corner Posted: Tue, 5th Aug 2014 04:16 Subject: C# winforms, passing an Integer |
Thank you; I've downloaded and I'll have a look.
I appreciate your time and patience. |
Topic: C# winforms, passing an Integer |
Rayne01
Replies: 18
Views: 3063
|
Forum: Programmers Corner Posted: Sun, 3rd Aug 2014 23:38 Subject: C# winforms, passing an Integer |
So, is using a Constructor deemed as good programming practice?
When you say create the forms at startup; can you please clarify?
Perhaps a website link or code demonstration?
I'm a visual/ha ... |
Topic: Having trouble with getter/setter... |
Rayne01
Replies: 4
Views: 1303
|
Forum: Programmers Corner Posted: Fri, 1st Aug 2014 00:30 Subject: Having trouble with getter/setter... |
Just to add, I can do this via constructor but not via properties as it happens.
EDIT: Using static variables within the variable class fixed my issue; due to the fact I was only wanting to refer t ... |
Topic: Having trouble with getter/setter... |
Rayne01
Replies: 4
Views: 1303
|
Forum: Programmers Corner Posted: Thu, 31st Jul 2014 23:59 Subject: Having trouble with getter/setter... |
2x forms.
1x class.
Any suggestions as to why this doesn't show the name/age in form 2?
Code below:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; ... |
Topic: C# winforms, passing an Integer |
Rayne01
Replies: 18
Views: 3063
|
Forum: Programmers Corner Posted: Tue, 29th Jul 2014 20:08 Subject: C# winforms, passing an Integer |
I wanted to add a new element to my design that I'm trying to figure out; complete with code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
usi ... |
Topic: C# winforms, passing an Integer |
Rayne01
Replies: 18
Views: 3063
|
Forum: Programmers Corner Posted: Thu, 24th Jul 2014 02:55 Subject: C# winforms, passing an Integer |
Thank you for the advice; a dedicated class to handle all data does seem logical. |
Topic: C# winforms, passing an Integer |
Rayne01
Replies: 18
Views: 3063
|
Forum: Programmers Corner Posted: Wed, 23rd Jul 2014 19:00 Subject: C# winforms, passing an Integer |
Form 2:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.For ... |
Topic: C# winforms, passing an Integer |
Rayne01
Replies: 18
Views: 3063
|
Forum: Programmers Corner Posted: Wed, 23rd Jul 2014 17:19 Subject: C# winforms, passing an Integer |
All instances/references to form objects are created inside the class but at the top before the constructor. |
Topic: C# winforms, passing an Integer |
Rayne01
Replies: 18
Views: 3063
|
Forum: Programmers Corner Posted: Wed, 23rd Jul 2014 17:12 Subject: C# winforms, passing an Integer |
Yup, ti's set to public; however, once I test it; the grade integer doesn't pass.
I have an if statement in form4_load that has the if statement check on the newly set grade variable.
Apparently ... |
Topic: C# winforms, passing an Integer |
Rayne01
Replies: 18
Views: 3063
|
Forum: Programmers Corner Posted: Wed, 23rd Jul 2014 17:04 Subject: C# winforms, passing an Integer |
I appreciate all the hard work you've put into that pump; I think you may have misunderstood what I'm trying to achieve though mate.
I can pass data (strings).
I just need to associate a button ... |
Topic: C# winforms, passing an Integer |
Rayne01
Replies: 18
Views: 3063
|
Forum: Programmers Corner Posted: Wed, 23rd Jul 2014 03:27 Subject: C# winforms, passing an Integer |
I have four forms; each has their own job.
First form is entering name etc..
Second form asks which grade 1/2/3
Third form asks which Arithmetic, Addition/Subtraction.. etc..
Four form del ... |
Topic: C# Saving list entries |
Rayne01
Replies: 2
Views: 1064
|
Forum: Programmers Corner Posted: Sun, 8th Jun 2014 19:42 Subject: C# Saving list entries |
Ok, another question; I have several classes:
Vehicle (base)
Motorbike (inherited)
Car (inherited)
Program (Handles the menu choices)
Execute (Hanlles input and list of Warehouses)
Warehouse ( ... |
Topic: Instance of an object and the object itself. |
Rayne01
Replies: 13
Views: 1986
|
Forum: Programmers Corner Posted: Thu, 5th Jun 2014 23:54 Subject: Instance of an object and the object itself. |
The above was very well presented and gave me a clear indication of my problem, so, in short, an instance of type and an object of type is one in the same thing (instance of an object), essentially? |
Topic: Instance of an object and the object itself. |
Rayne01
Replies: 13
Views: 1986
|
Forum: Programmers Corner Posted: Thu, 5th Jun 2014 16:17 Subject: Instance of an object and the object itself. |
so, essentially:
if we had a constructor of (string name, int age)
Human (type) H1 (object) = new Human ("Rayne", 30); that is a particular instance of an object of type Human.
Without the na ... |
Topic: Instance of an object and the object itself. |
Rayne01
Replies: 13
Views: 1986
|
Forum: Programmers Corner Posted: Thu, 5th Jun 2014 15:59 Subject: Instance of an object and the object itself. |
I just want to clarify my understanding here.
say we have a class Human.
Human H1 = new Human();
H1 is the instance that refers to that particular Human object.
Is the object Human before ... |
Topic: Looking for multiple songs from one YouTube video |
Rayne01
Replies: 0
Views: 800
|
Forum: Music Waves Posted: Fri, 30th May 2014 18:55 Subject: Looking for multiple songs from one YouTube video |
https://www.youtube.com/watch?v=Z-wNOoIvXtw&ytsession=QfJntnAc1FRQl5VdubrFZILT0BbAr4n3Vy8wqVXPhvw2qMAxadJj1qwkuvJanEbiK8o3weTRxx8mnKElBsWbOg_uvc7yQOVcVBDsEN23xXHnYKNA6NKnmKyNPmQ4B4sKDH17cJzAikqpEk ... |
Topic: Random number and generating an output to command prompt hel |
Rayne01
Replies: 12
Views: 2231
|
Forum: Programmers Corner Posted: Thu, 7th Nov 2013 17:14 Subject: Random number and generating an output to command prompt hel |
basically I have four local variable sum values per module:
Division.
Addition.
Multiplication.
Subtraction.
Each sum stores the resulting value from input for example, Multiplication, the sy ... |
Topic: Random number and generating an output to command prompt hel |
Rayne01
Replies: 12
Views: 2231
|
Forum: Programmers Corner Posted: Thu, 7th Nov 2013 00:28 Subject: Random number and generating an output to command prompt hel |
But you take the input from the user. Why are not comparing sum to input in the if statement?
Also, sum = firstRandom / secondRandom; seems like it doesn't calculate sum. You need sum = firstRan ... |
Topic: Random number and generating an output to command prompt hel |
Rayne01
Replies: 12
Views: 2231
|
Forum: Programmers Corner Posted: Wed, 6th Nov 2013 01:31 Subject: Random number and generating an output to command prompt hel |
int input;
int sum;
singleDigit(ref firstRandom, ref secondRandom);
Console.Write("{0} / {1} = : ", firstRandom, secondRandom);
input = Convert. ... |
Topic: Random number and generating an output to command prompt hel |
Rayne01
Replies: 12
Views: 2231
|
Forum: Programmers Corner Posted: Wed, 6th Nov 2013 00:39 Subject: Random number and generating an output to command prompt hel |
By validate, I mean, if the user answers correctly or incorrectly, the code that basically states:
if (answer == correct)
{
Console.Write("Correct!");
}
if (answer == incorrect)
{
... |
Topic: Random number and generating an output to command prompt hel |
Rayne01
Replies: 12
Views: 2231
|
Forum: Programmers Corner Posted: Wed, 6th Nov 2013 00:09 Subject: Random number and generating an output to command prompt hel |
Ok, so I have all my random generators talking to the modules I need, however I'd like to ask, I know it'll probably involve an if statement which is absolutely fine, But I would like to ask you what ... |
Topic: Random number and generating an output to command prompt hel |
Rayne01
Replies: 12
Views: 2231
|
Forum: Programmers Corner Posted: Tue, 5th Nov 2013 22:11 Subject: Random number and generating an output to command prompt hel |
I will give the preferred method a try, thank you for your quick response, I love to program, however my lecturer hasn't run me through the code to output it to command prompt properly.
Thank you s ... |
Topic: Random number and generating an output to command prompt hel |
Rayne01
Replies: 12
Views: 2231
|
Forum: Programmers Corner Posted: Tue, 5th Nov 2013 20:05 Subject: Random number and generating an output to command prompt hel |
I have this code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Switch_Test
{
class Program
{
static void singleDigit(ref ... |
|