j Wrote:
hi,
can anybody tell me please why the linker keeps bringing up this error
message? i am using the latest dmd 2.
thank you
OPTLINK (R) for Win32 Release 8.00.2
Copyright (C) Digital Mars 1989-2009 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
Is din.readf (from std.cstream in Phobos) able to read floats when using %s as
the format specifier?
When I used this:
din.readf( %s, somedouble );
somedouble will still be nan after receiving input from the user.
But when I use:
din.readf( %f, somedouble );
everything goes as planned.
Is this to
Daniel Keep Wrote:
Michael P. wrote:
Okay, so I'm making a breakout type game in D. Using Derelict.
I have a 2d array of Block type variables(not important what's in them)
declared like this:
Block[][] level;
and later load into like this:
level = loadLevel( levels.txt
)
{
if( checkCollision( ball, b.p ) )
{
//remove the block??
}
}
}
The level array has 12 lines of 'x' amount of bricks. x can be as great as 10.
-Michael P.
I've having some trouble reading from a file.
I am trying to read a list of high scores, each on a separate line, like this:
440
0
0
0
0
But with my code, I get an error saying: Error: conversion.
Code:
//Load high scores
char[] file;
int[] highScoreList;
int nextScore;
file = cast(char[])read(
Okay, I've been trying to install DMD on Ubuntu for a while, but I just can't
get it. Is there an up to date guide on installing DMD on Ubuntu?
I'm new to Linux too. :P
I've tried quite a bit of googling, and found some stuff, but quite a bit of it
won't work with the latest release, where there
Frits van Bommel Wrote:
Michael P. wrote:
But when I type dmd in the terminal, I get this:
mich...@ubuntu:~$ dmd
bash: /usr/local/bin/dmd: Permission denied
mich...@ubuntu:~$
Do you know why?
Looks like you didn't chmod +x it. Zip files don't store *nix permissions...
Okay
Mike Parker Wrote:
Michael P. wrote:
Frits van Bommel Wrote:
Michael P. wrote:
But when I type dmd in the terminal, I get this:
mich...@ubuntu:~$ dmd
bash: /usr/local/bin/dmd: Permission denied
mich...@ubuntu:~$
Do you know why?
Looks like you didn't chmod +x it. Zip
Michael P. Wrote:
Mike Parker Wrote:
Michael P. wrote:
Frits van Bommel Wrote:
Michael P. wrote:
But when I type dmd in the terminal, I get this:
mich...@ubuntu:~$ dmd
bash: /usr/local/bin/dmd: Permission denied
mich...@ubuntu:~$
Do you know why?
Looks like
Hey, I've started to do some of the problems on Project Euler to practice my
programming skills. I'm doing #10 right now, and I think I've got a working
solution. It's just that it's way too slow.
Here's the link:
http://projecteuler.net/index.php?section=problemsid=10
The code works fine with
naama Wrote:
How am I get a integer nimber from the user? (readln()?)
the command line is:
???
import std.cstream;
int number;
din.readf( %d, number );
torhu Wrote:
On 02.01.2009 22:21, Jarrett Billingsley wrote:
On Fri, Jan 2, 2009 at 2:17 PM, Michael P.baseball@gmail.com wrote:
Okay, so right now, I'm making a small game(Mario) using DAllegro. I use
build, and every time, I have to type this in to compile my progress:
build
Okay, so right now, I'm making a small game(Mario) using DAllegro. I use build,
and every time, I have to type this in to compile my progress:
build mario alleg.lib
Now, I know it's not a lot of typing. But considering I type mario wrong every
so often, and I generally want to execute it
Jarrett Billingsley Wrote:
On Fri, Jan 2, 2009 at 2:17 PM, Michael P. baseball@gmail.com wrote:
Okay, so right now, I'm making a small game(Mario) using DAllegro. I use
build, and every time, I have to type this in to compile my progress:
build mario alleg.lib
Now, I know it's
Michael P. Wrote:
Okay, I'm getting an array bounds error, and I have no clue why. Here is the
code that affect it:
//Constants
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
const int TILE_WIDTH = 20;
const int TILE_HEIGHT = 20; //how big one tile is, in pixels
const int
NUMBER_OF_TILES_HEIGHT; j++ )
{
tiles[ i ][ j ] = cast( char )( rand() TYPES_OF_TILES );
//occurs here
}
}
So, I'm not really sure why it's happening Anyone mind shedding some light
on why?
-Michael P.
Mike Parker Wrote:
Michael P. wrote:
BCS Wrote:
Reply to Michael P.,
I'm getting an undefined reference error with Derelict and SDL.
I tried to create an SDLImage class, but I got an error when the files
try to link together.
I've attached the two .d files in a rar.
I compiled
17 matches
Mail list logo