Xozz 105 Junior Poster

While compiling my Yahtzee project I get these errors:

||=== Build: Debug in Yahtzee (compiler: GNU GCC Compiler) ===|
ld.exe||cannot open output file bin\Debug\Yahtzee.exe Permission denied|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

I use CodeBlocks.

It's not nice to get these errors, for I was just busy developing my project ;-)

Xozz 105 Junior Poster

There's some knowledge about C++ left in my mind. That's how your reply helped me out.

Xozz 105 Junior Poster

I entered this line: #include and made FieldNam a string. Now it works. Thanks

Xozz 105 Junior Poster

I'm busy writing Yahtzee. Now, I want to fill a const char[] with the field names: 1's, 2's, 3's, ..., "Full House" "Small Straight" etc. But I get this errors

#include <iostream>
#include <stdlib.h>

using namespace std;

/*
    1
    2
    3
    4
    5
    6
    3 of a kind
    carre
    full house
    small street
    big street
    topscore
    chance
*/

void RollDice(int DiceToRoll[]);
void ShowScores(int nPlayer);

int Dice[5];
int ScoreField[14][10]; // For max 10 player

const char FieldName[15][14] = {
    "Number 1's",
    "Number 2's",
    "Number 3's",
    "Number 4's",
    "Number 5's",
    "Number 6's",
    "Bonus",
    "Three-of-a-kind",
    "Four-of-a-kind",
    "Full House",
    "Small straight",
    "Large straight",
    "Yahtzee",
    "Chance"
};

int main()
{
    int nNoPlayers;

    cout << "Enter number of players" << endl;
    cin >> nNoPlayers;

    bool bGameOver = false;
    while( !bGameOver ) {

        for( int n = 0; n < nNoPlayers; n++ ) {

            cout << "Player " << n << "'s turn" << endl;
            cout << "Pick an option: " << endl
                << "1) Show upper scorefields" << endl
                << "2) Show lower scorefields" << endl
                << "3) (Re)roll dice" << endl;
            char cOption;
            cin >> cOption;

            if( cOption == '1' ) {
                ShowScores(n);
            }

        }

        cout << "Play another game (Y/N)?" << endl;
        char cAnotherGameYN;
        cin >> cAnotherGameYN;

        if( cAnotherGameYN == 'N' || cAnotherGameYN == 'n' ) {
            bGameOver = true;
        }
    }
    cout << "Game over";
}

// const char FieldName[15][14] = {
void ShowScores(int nPlayer) {

    for( int n = 0; n < 13; n++ ) {
        cout << FieldName[0][n] << endl;
    } …
Xozz 105 Junior Poster

I just wrote a simple C++ program. But now I want to share it with a friend and GMail doesn't allow me to use it and putting it on a web domain doens't work either. How do you share a simple program (compiled)?

Xozz 105 Junior Poster

Sorry :P Here it is

#include <iostream.h>
#include <stdlib.h>

using namespace std;

global int Test;

int main()
{
    Test = 5;
    cout << "Test contains: " << Test;
    return 0;
}
Xozz 105 Junior Poster

To be a little more specific: I get this error message

error: 'global' does not name a type

Xozz 105 Junior Poster

Hello,

While trying to get back into programming, I come across problems. The first one is:

Why can't I work with global variables? Is there a new way of doing the same thing?

Thanks

Xozz 105 Junior Poster

The cause of the problem was: no prefix. n should be $n. So that's that with the code.

Problem 2 is: I can't upload the files to an FTP server.

Help

Xozz 105 Junior Poster

With this code:

echo( "Hello universe" );
for( n = 0; n < 5; n++ ) {
    echo("A");
}

With 'preview' I get this:

Parse error: syntax error, unexpected '=', expecting ';' in E:\Web\OpenElement PHP\index.php on line 22

And when I upload the code, I get this:

Forbidden
You don't have permission to access this resource.

Which has to get to do with uploading through FTP. I think I'lll solve that one myself.

Xozz 105 Junior Poster

Thank you! I have it running now. Tomorrow I will write my first program

Xozz 105 Junior Poster

I need to know how to set it up so that I can write programs with it

Xozz 105 Junior Poster

Additionally:

OpenElement allows you to preview pages with a webserver function. This way it works a little bit, not completely. By publishing the pages on a domain it doesn't work at all. I suspect that this has to do with the FTP function.

Help

Xozz 105 Junior Poster

Hi. I just installed Code Blocks. I want to just get started with programming. It seems that I have to configure Code Blocks therefore, setting up a compiler. How should this be done?

Help

Leon

Xozz 105 Junior Poster

My question is this:

I'm trying to practice PHP. I use OpenElement as my editor. You can get to know this program through this website: https://www.openelement.com/ Problem is: when I preview the page (with PHP in it) it doesn't display text produced by PHP, but instead it produces the PHP code itself. Do you know OpenElement, and if you know it, do you know how to make it run PHP the way PHP should ben run?

Thanks,

Leon (joh)

Xozz 105 Junior Poster

In the passed they worked.

Xozz 105 Junior Poster

I tried a couple of programs in Windows 10 and Windows 7 and the result is always the same: "Cannot do this"

rproffitt commented: This means to me these ISO files may be bum. +15
Xozz 105 Junior Poster
Xozz 105 Junior Poster

Never mind. I didn't see how to get to my own posts, but I've seen it now. Apologies. You can delete this post if you want.

Xozz 105 Junior Poster

Is it allowed to put a lable on my own topics, so that I can find them easier? An example would be this very topic.

Xozz 105 Junior Poster

The USB-drivers show up in device manager. Other devices work on USB. I have a couple of USB-sticks and they all don't work. Right now, the only thing I didn't try is the chipset story. By the way.. are you sure about that one? Windows 10 just runs here. Or do I misunderstand what you're saying?

Xozz 105 Junior Poster

I have Windows 10 on a Lenovo T500. And no USB-stick works. How can this be solved? Thank you

Xozz 105 Junior Poster

Hello,

I'm trying to mount an ISO file. I tried a couple of applications to do this (four of them) but nothing works. I'm using Windows 10. I know that Windows 10 comes with the functionality of mounting, but that doesn't work either. What can be the problem?

Help me,

thanks

Xozz 105 Junior Poster

I have another package that I would like to mount but the results are the same. So it's possible that both are corrupt. But I'm still hoping that there is something else that can fix the problem. Thanks for your comment anyway :)

Xozz 105 Junior Poster

I made a list of applications that don't enable me to mount ISO-files. Here:

PowerISO doesn't mount
Virtual CloneDrive doesn't mount
ISODisc doesn't mount
KernSafe doesn't mount
OSFMount doesn't mount
Pismo File doesn't mount
WinISO doens't mount
Daemon Tools doesn't mount

What should I do?

Xozz 105 Junior Poster

Hello. I have a question:

I have a portable harddisc, with files on it. Now I want to encrypt a certain folder on it. It contains a couple of files which take some megs.

What's the best way to do this?

Thanks in advance,

Leon

Xozz 105 Junior Poster

I want to create a bootable USB-stick. I have a MS-DOS 6.22 image file. I used Rufus but that didn't work. Do you know a better program for the job? If you think a Linux stick would be better... well, I decided to use a MS-DOS 6.22 and put Ghost on it. I would say that works great :) Thanks in advance

edit: addition
I put another item on this website earlier... which can be answered with the same solution, I think. The post is this one: https://www.daniweb.com/posts/jump/2235445

Xozz 105 Junior Poster

I just installed Windows 7 on my machine.. now I would like to find a program that keeps track of everything I do with it. Help please.

Xozz 105 Junior Poster

Hello. My name is Leon and I'm new to this website. So let me go ahead and ask my first question:

Are there any tools/techniques out there that can help me manage the applications/services on my computer? I'm running Windows 7.

That's all.

Hope you can answer this question with accuracy