It's almost all there. Minus some tweeks and annotations.
I cannot thank you enough. There is a sense of satisfaction having spent MANY hours glued to a screen and then finaly getting it done. I...
Type: Posts; User: ShotgunChimp
It's almost all there. Minus some tweeks and annotations.
I cannot thank you enough. There is a sense of satisfaction having spent MANY hours glued to a screen and then finaly getting it done. I...
I have been trying to research this. We have very littler material given to us to actually find out what new things are and the internet has a habit of confusing the matter. I understand the...
That makes more sense. Is there any way to get around this?
You're an apsolute star! I got it working with the name. The only minor anoyance is that fgets seams to create a line space. Almost as if it is adding \n at the end of the username. However, if this...
How do you pass a parameter between different functions? I.e, how can I pass it from my main to the SetupRoom function?
Alas, I am still left with the same Access Violation. Before I add that code it works perfectly...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define North 0
#define East 1...
I have edited the following
void SetupRooms(char *user){
but I have drawn a complete blank with your segestion to contruct the string. This is all kinds of wrong when I try to run it:
I have spent the last hour trying to work out how to take the user name, that has now been inputted, and place this in the other function (bellow). Ehhh?
//ROOM 15
strcpy(Room[14].RoomName,...
Thank you! It has solved the problem. It completely slipped my mind.
Last thing, then I promise I'll leave you be, how do I now add the Username to the Room Discriptions. Where I put the %s...
The origional Code that I gave at the very begging of this thread worked fine. Or atleast did on the compiler I'm using (CC386 IDE). I am completely at a loss. I added the code you gave me and I am...
Am I doing something obviously wrong to cause this Access Violation?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#define North=0
#define East=1
R.Stiltskin - Thank you so much for the help and dumbed down discription. I feel very sub-par at this.
I have done everything you stated, to the word, and it works. However it results in an...
Quazah - This is a section of code that I have forgot to remove. I innitialy had it so the message that pops up when the user hits the wront key dissapears over time. However, this kinda failed on me...
Why am I getting a Type mismatch for this?
//Main function
void main(){
{
char user[50];
get_username( user, 50 );
}
ZuK - We are working on the same project experimenting with adding to the programme and both realising we are somewhat out of our league.
Subsonics - Where the programme is describing rooms I...
Hi, I'm relatively new to C and have created my first propper programme. The programme works as required but I now want to add a Username system where the user types their name in at the beggining...