Forum: Java
Oct 25th, 2006, 1:56 PM
|
|
Replies: 2
Views: 177
|
Forum: C
Jan 23rd, 2006, 8:55 PM
|
|
Replies: 10
Views: 386
A little help on char* to float
I really need this code for my research but cant figure it out. If not that much trouble can any of you guys please help me. All I need is the conversion from char* to a float number.
|
Forum: C
Dec 4th, 2005, 8:17 PM
|
|
Replies: 8
Views: 250
|
Forum: C
Dec 4th, 2005, 8:15 PM
|
|
Replies: 8
Views: 250
....
Just declare dayName as
char* dayName;
|
Forum: Java
Dec 3rd, 2005, 1:56 PM
|
|
Replies: 5
Views: 188
Try this ...
for (int i=0 ; i < arrayToCopy.size();i++){
DestArray[i]=arrayToCopy[i];
}
And then manipulate the new DestArray that contains the same as the original.
|
Forum: Java
Nov 28th, 2005, 4:41 PM
|
|
Replies: 13
Views: 459
|
Forum: Java
Nov 27th, 2005, 8:33 PM
|
|
Replies: 13
Views: 459
Here's the code...
This is in a PairOfDice class
public class PairOfDice{
int first_dice;
int second_dice;
int sides=6;
public PairOfDice(){
first_dice=0;
second_dice=0;
}
|
Forum: Java
Nov 27th, 2005, 7:02 PM
|
|
Replies: 13
Views: 459
|
Forum: Java
Nov 27th, 2005, 6:56 PM
|
|
Replies: 13
Views: 459
...
Try this on your main class
public class BoxCars{
public static void main(String[] args) {
PairOfDice Dice1 = new PairOfDice();
PairOfDice Dice2 = new PairOfDice();
int result1=0,resullt2=0;
int...
|
Forum: Java
Nov 27th, 2005, 6:28 PM
|
|
Replies: 13
Views: 459
Let's See...
First what is Die? A class you already implemented? .... And as the instructions say....You need a main method to run your class !! You need to build the PairO fDice class and the BoxCars class...
|
Forum: C++
Nov 25th, 2005, 8:42 AM
|
|
Replies: 7
Views: 381
...
I saw that too grumpy, but he only asked for the constructor problem. Theres no sense why should CMatrix derives from Cvector. CMatrix can simply just "use" a Cvector and that's it.
|
Forum: C++
Nov 24th, 2005, 11:04 AM
|
|
Replies: 7
Views: 381
Let me see..
I only made a fast overview of your code but I can see that you can solve your problem by initializing every CVector object in the matrix object with some loop. Like a for loop . for (int i =0;i<...
|