• What Do You Need Help With? V8
    1,074 replies, posted
[QUOTE=Jitterz;52693507]Same here. I know it is something wrong I am doing c# wise. I want to store all of the relevant data on the planet itself. I have still been struggling with it with no solution. It has to be something simple I am missing.[/QUOTE] My BaseResource did not have MonoBehavior attached so Unity did not know how to save it. It is working now. I knew it was something stupid.
[QUOTE=koppel;52693246]I want to create a a program to fetch information from 2 different website and compare them. I consider myself php-developer, but I feel like this would be a job for C# or Java. Any ideas?[/QUOTE] What sites are you comparing? Anywho: [B]First get your data.[/B] You could use php for that, if there is an api for either of those websites it will make your data retrieval easier, you can just use curl to request the data ([url]http://php.net/manual/en/curl.examples-basic.php[/url]) Otherwise you'll need to scrape the data from the html pages. You can probably find a library to use: [url]http://lmgtfy.com/?q=php+scraper[/url] Personally I'd recommend using python and scrapy. Cause it's pretty straight forward imo. [url]https://scrapy.org/[/url] You'll need to store the data in some medium that is accessible for you. That could be a sql server (mysql, postgres etc), sqlite database, or a csv file. [B]Secondly You'll need to analyze the data[/B] This can be different on what you want to compare. If you're just looking for statistical data you can use : R ([url]https://www.r-project.org/[/url]). Excel is another great tool for data. If you want to do document analysis it will be a bit more in depth. Although I'm sure there are some libraries out there to use. Read this and this: [url]http://www.tfidf.com/[/url] [url]https://stanford.edu/class/ee103/lectures/documents/documents_slides.pdf[/url] Perhaps this: [url]http://fredgibbs.net/tutorials/document-similarity-with-r.html[/url]
[QUOTE=Topgamer7;52694283]What sites are you comparing? Anywho: [B]First get your data.[/B] You could use php for that, if there is an api for either of those websites it will make your data retrieval easier, you can just use curl to request the data ([url]http://php.net/manual/en/curl.examples-basic.php[/url]) Otherwise you'll need to scrape the data from the html pages. You can probably find a library to use: [url]http://lmgtfy.com/?q=php+scraper[/url] Personally I'd recommend using python and scrapy. Cause it's pretty straight forward imo. [url]https://scrapy.org/[/url] You'll need to store the data in some medium that is accessible for you. That could be a sql server (mysql, postgres etc), sqlite database, or a csv file. [B]Secondly You'll need to analyze the data[/B] This can be different on what you want to compare. If you're just looking for statistical data you can use : R ([url]https://www.r-project.org/[/url]). Excel is another great tool for data. If you want to do document analysis it will be a bit more in depth. Although I'm sure there are some libraries out there to use. Read this and this: [url]http://www.tfidf.com/[/url] [url]https://stanford.edu/class/ee103/lectures/documents/documents_slides.pdf[/url] Perhaps this: [url]http://fredgibbs.net/tutorials/document-similarity-with-r.html[/url][/QUOTE] Thanks for the input. I thought creating making it in PHP, because I have used this the most, but I mean, as a programmer I also want to experiment with other languages. What I am looking to do is to be able to fetch data from one used car website and compare it with results in used car website from another country. So basically I'll put in my search criteria, ala : 2004-2007 Audi A4 and it returns me the difference in those 2 websites, lowest price, highest price. Eventually I would want it to be able to show me the cars with highest price differences and even maybe e-mail or notify me when some car with high price ( user inputted value ) difference comes on sale ( or if a car with lower price than others on the local market comes on sale ).
I'm trying to blink an LED with a raspberry pi. How do I calculate how many loops I need to delay for 1 second? [code] void delay(int count) { volatile int i; for (i = 0; i < count; i++) { /* do nothing */ } } [/code]
What language is this? Is there not a sleep command? Loops are not designed for delays
To add to what djjkxbox said: [url]https://linux.die.net/man/3/sleep[/url]
So I'm having trouble with threading in python. I think I need a lock for a function outside of a thread to access an attribute that is changed by a function that [I]is[/I] in a thread. [code] """ Black Mesa: Project Maria By smallpants bitbucket.org/smallpants """ import threading from time import sleep from multiprocessing.connection import Listener from config import SECRET_KEY from database import * """AsyncIO server-side signalling for Pierre""" class Maria: listen_address = ('0.0.0.0', 11718) listener = Listener(listen_address, authkey=SECRET_KEY) def __init__(self): self.has_pierre_connection = False self.connection = None self.signal_thread = None self.listener_thread = None self.threader() def threader(self): self.signal_thread = threading.Thread(target=self.wait_for_orders(), args=self) self.listener_thread = threading.Thread(target=self.listen()) self.listener_thread.daemon() self.signal_thread.daemon() self.listener_thread.start() self.signal_thread.start() def listen(self): global connection connection = self.listener.accept() print('listening') def wait_for_orders(self): self.has_pierre_connection = True print('waiting for orders') while self.has_pierre_connection: print('db checked') query = session.query(Order).join(Patient, Prescribers, Compound) orders = query.filter(Order.isNew == 1).all() if orders: print('new orders, sending signal') self.signal_pierre() sleep(10) if not self.has_pierre_connection: self.listener.close() def signal_pierre(self): try: connection.send_bytes('new_orders') except EOFError: self.listener.close() print('Connection broken, listener stopped safely.') if __name__ == '__main__': maria = Maria() [/code] signal_pierre() needs to access connection which is altered by listen(), which is running in a thread to avoid blocking.
I am trying to get back into OpenGL again. I made it work the last time, but I am not sure if I have understood the "Best practices" of the VBO and VAO. How I think it works.. The VBO: It contains the vertex data. (Eg one per unique mesh) The VAO: It contains information of the vertex layout. Eg where to find the position, normal, UV, etc. (Eg one per shader) But when I work with lwjgl and try to set the attributes it requires that I bind a VBO first. Does that mean that the VBO also contains the attributes and if so, then what does the VAO contain? Or is it just a quirk of lwjgl? If it is, should I create and bind a dummy VBO when I load my shaders and throw it away afterwards?
I'm preparing for an entry test which requires Java and SQL, after looking at Java code it looks pretty much like any other OOP programming language, SQL seems pretty basic too (the basic stuff). My question is, do any of you know very quick ways/tutorials to learn the basics of Java and SQL for an intermediate programming (JS, C#, Python, PHP)? Sorry if wrong thread.
[QUOTE=Zyx;52697493]I am trying to get back into OpenGL again. I made it work the last time, but I am not sure if I have understood the "Best practices" of the VBO and VAO. How I think it works.. The VBO: It contains the vertex data. (Eg one per unique mesh) The VAO: It contains information of the vertex layout. Eg where to find the position, normal, UV, etc. (Eg one per shader) But when I work with lwjgl and try to set the attributes it requires that I bind a VBO first. Does that mean that the VBO also contains the attributes and if so, then what does the VAO contain? Or is it just a quirk of lwjgl? If it is, should I create and bind a dummy VBO when I load my shaders and throw it away afterwards?[/QUOTE] This is how I understand it: A VBO specifies and holds a single buffer of data, like vertices, normals, texcoords, etc. 1 buffer [I][B]can[/B][/I] hold multiple vertex attribute pointers so you can technically format your data so that you upload all of the model's data to 1 buffer and specify how it should be read and broken down to be sent to the shaders, but you don't have to. Instead, you can do multiple VBO's, 1 per each attribute. IIRC this is the better way of doing it. Then, you link those to your VAO. So when you want to render, you just bind the VAO, and call draw arrays. The way I do it is this: [code] glGenVertexArrays(1, &VAO_ID); glBindVertexArray(VAO_ID); GLuint buffers[num_of_attributes]; // First attribute, vertices. Repeat for number of attributes desired. // variable 'N' == the attribute spot. glEnableVertexAttribArray(N); glBindBuffer(GL_ARRAY_BUFFER, buffers[N]); glBufferData(GL_ARRAY_BUFFER, num_of_elements_in_array * sizeof(vec3), &vertexdata[0][0] /* pointer to first element (x of xyz) of first spot of vertex array */ , GL_STATIC_DRAW); glVertexAttribPointer(N, 3, GL_FLOAT, GL_FALSE, 0, 0); glBindVertexArray(0); glDeleteBuffers(num_of_attributes, &buffers); // VBO's won't actually get deleted until the VAO gets deleted. This is just for convenience so that we don't have to type it again later. [/code] If any of that doesn't make sense just PM me
Thinks of VBOs as arbitrary buffers, because that's just what they are. They just store some information. Typically though they store some information about a vertex, hence the name vertex buffer object. Attribute pointers are a way for the graphics card to reason about your vertex information. Your attribute pointer tells it how much data to consume and how much of a step to take to find additional data, as well as some offset from the start. What this means in reality is imagine your buffer is like this: [code] [x][y][z][r][g][b][x][y][z][r][g][b] [/code] That is to say that you are interleaving a coordinate and a colour. You specify to your position attribute pointer (the attribute pointer that will point to coordinates) that you want it to consume 3 blocks at a time, have an offset of 0, and jump 6 blocks to find the next position. On the other hand, you want your colour attribute pointer to have an offset of 3 (since the first 3 blocks are coordinates), consume 3 blocks at a time as well, and jump 6 blocks also. Interleaving data is probably a better approach if your data is static (non changing) since it can fit better into cache lines. Now we get onto VAOs or vertex array objects, which are horribly named. In reality, OpenGL is a huge state machine. A VAO is the container that holds onto some of that state. One of the things it holds onto are attribute pointers (note that it does NOT hold onto the buffer, because the attribute POINTER already knows where the buffer is when it was created, hence it points to it). VAOs are NOT one per shader, and in fact they are shader agnostic (you can use 1 VAO across 5 different shaders if you wanted to). Most people use one VAO per model, since it holds onto where your buffer data is. There are more advanced techniques that actually only use one VAO for the entire program, but the fact of the matter is you NEED to have a VAO bound before you render anything, the spec requires it.
I am trying to take an image of form and recognize all text fields on it. I am using Java (As I am most fluent with it in terms of image manipulation and syntax in general). I had two ways in mind: 1) Y loop and X loop in it - loop through page and scan pixel by pixel to find text fields (text fields have black border). This worked by: when X hits NON-WHITE pixel -> Check if Previous X was white AND next X is NON-WHITE = it means I've hit a field upper left corner. Keep iterating X until I hit WHITE pixel -> Check if previous X was NON-WHITE = it means I've hit upper right of field. X-1 and loop down until I hit WHITE -> That means I've hit lower right corner of field. I've implemented it and it works but it's stupid as it requires specific format of fields and if fields are fused next to each other with borders touching - It recognizes entire table/form as one giant field as there is no white space between fields. So shit plan, probably can be done but requires A lot of rules and checks. 2) Store every pixel as boolean (white/non white [white will always be background]) in 2D array. Now I have massive 2D array (like 1500 down and 900 across) of 0's and 1's - 1's where there is content and 0's where there is empty space/background. I am just unsure how to search and extract fields from format like: 00000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000 11111111111111111111111111111111111111111111111111111111111 11100000000000000000000000000000000000000000000000000000111 11100000000000000000000000000000000000000000000000000000111 11100000000000000000000000000000000000000000000000000000111 11111111111111111111111111111111111111111111111111111111111 00000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000 So recognize that there is a gap between those 1's and get index of: Y:3, X:3 as top left of form, Y:7 X:56. IF: Any of those zeroes in between 1's has at least 1 - ignore. Any ideas/thoughts/tips how to get this done? Note: It's not a commercial application, it's just a conversion tool I am trying to make so efficiency doesn't matter.
[QUOTE=Digivee;52689867]Not exactly sure if this belongs here, as its not technically programming per say, and is more related to file headers So I'm testing new features in a gmod addon, the exact part of the addon is here [url]https://github.com/CapsAdmin/pac3/blob/decdd6dbfc08ee4b5b2f8caf69a1427f9c65bc8a/lua/pac3/core/shared/util.lua[/url] Theres a part of it that calls to custom zip files specified by the user The problem I'm having is that my header for my custom zip is not what it expects to get, so it tells me it has a bad zip signature I have no coding experience, and I'm more or less blind at this point. Are there any archival tools that archive with 0x02014b50? I've also read that I can fix it with a hex editor, but I dont even know where to begin there[/QUOTE] Are you actually saving a ZIP file? As for a hex editor, I highly recommend [url=https://mh-nexus.de/en/downloads.php?product=HxD]HxD[/url], very easy to use and you can never go wrong with it. Download that and take a screenshot of the beginning of the file you're trying to use, and we'll be able to tell you what's wrong.
Hello Community, can someone reccomend me a good tutorial for javascript or jquery (paid too)? I am starting on a new website, and i need to programm a javascript socket.io game, and i need some advice Thank you very much
[QUOTE=LHWG;52704894]Hello Community, can someone reccomend me a good tutorial for javascript or jquery (paid too)? I am starting on a new website, and i need to programm a javascript socket.io game, and i need some advice Thank you very much[/QUOTE] I got you bro. Heres a [URL="http://bfy.tw/E4AL"]link.[/URL] [highlight](User was banned for this post ("LMGFY links are bad mkay" - Kiwi))[/highlight]
[QUOTE=LHWG;52704894]Hello Community, can someone reccomend me a good tutorial for javascript or jquery (paid too)? I am starting on a new website, and i need to programm a javascript socket.io game, and i need some advice Thank you very much[/QUOTE] There's a good JavaScript tutorial (among other languages) on here [url]https://www.codecademy.com/[/url]
Hey folks, i am learning python due to a project needing some coding, which python(3.6.x) fits in. I am currently trying to set up ATOM with an Mac. I am using hydrogen as a package within ATOM to launch/run scripts, but i cant get it to work. Its rather hard to explain whats wrong as there is no log or errors. This is what ATOM posts sometimes. /usr/local/opt/python3/bin/python3.6: No module named ipykernel_launcher
Hi, I'm a beginner at programming and I've been trying create a simple social network page with php. I'm confused about how I should model the database. I want to have each user display the list of the profile pictures of their friends on their profile page. Appreciate any help... Thank you
[QUOTE=uriahheep;52712259]Hi, I'm a beginner at programming and I've been trying create a simple social network page with php. I'm confused about how I should model the database. I want to have each user display the list of the profile pictures of their friends on their profile page. Appreciate any help... Thank you[/QUOTE] Simple and social networks don't tend to go together. For that specific use-case each User would need a profile picture + an array of User references.
[QUOTE=uriahheep;52712259]Hi, I'm a beginner at programming and I've been trying create a simple social network page with php. I'm confused about how I should model the database. I want to have each user display the list of the profile pictures of their friends on their profile page. Appreciate any help... Thank you[/QUOTE] I'd have a user model (which would include a profile picture attribute) and then a friend table of user_id, friend_user_id references. You could then find all the friend_user_id values where the user_id of the logged in user matches to get the profile pictures.
Does anyone have a good setup for doing C work in Windows? Right now I'm setup with Visual Studio Code with Microsoft's C/C++ addon. I run Bash from the integrated powershell to use Git and Make and run the code.
[QUOTE=Cows Rule;52714208]Does anyone have a good setup for doing C work in Windows? Right now I'm setup with Visual Studio Code with Microsoft's C/C++ addon. I run Bash from the integrated powershell to use Git and Make and run the code.[/QUOTE] On Windows, I use Visual Studio Code with CMake and msys2.
[QUOTE=elevate;52714695]On Windows, I use Visual Studio Code with CMake and msys2.[/QUOTE] How did you setup the browse.path setting? It complains standard libraries cannot be found, though when the code is compiled and run it works fine.
[QUOTE=Cows Rule;52716166]How did you setup the browse.path setting? It complains standard libraries cannot be found, though when the code is compiled and run it works fine.[/QUOTE] The include paths are for Intellisense, not for the compiler. Find out which include paths your compiler uses and insert those paths into c_cpp_properties.json. For example, I configured my c_cpp_proprties.json file like this for a 32-bit GCC project: [quote] { "configurations": [ { "name": "Win32", "includePath": [ "C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/include", "C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/../../../../include", "C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/include-fixed", "C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/include", "${workspaceRoot}/include" ], "defines": [ "_DEBUG", "UNICODE" ], "intelliSenseMode": "msvc-x64", "browse": { "path": [ "C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/include", "C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/../../../../include", "C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/include-fixed", "C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/include", "${workspaceRoot}/include" ], "limitSymbolsToIncludedHeaders": true, "databaseFilename": "" } } ], "version": 3 } [/quote]
Still fucking struggling with Python threading and network messaging between apps... [editline]25th September 2017[/editline] Any help would be rewarded.
[QUOTE=Adelle Zhu;52716937]Still fucking struggling with Python threading and network messaging between apps... [editline]25th September 2017[/editline] Any help would be rewarded.[/QUOTE] network messaging? If i'm imaginging things correctly, you probably have a tight coupling between your apps. If you want to break the coupling, use a messaging system. Like RabbitMQ or something. I could be wrong, but you should provide more details. Like how are you sending your messages?
[QUOTE=brianosaur;52717015]network messaging? If i'm imaginging things correctly, you probably have a tight coupling between your apps. If you want to break the coupling, use a messaging system. Like RabbitMQ or something. I could be wrong, but you should provide more details. Like how are you sending your messages?[/QUOTE] It's just a PyQt GUI app that lives on client workstations. There's a server that's hosting a website and the database that everything interacts with. Originally, I had the workstations checking the database for new rows but there was a race condition involving a workstation setting a new row to old before the others could get to it. I got rid of that and decided to write a script that lives on the server and does the row checking itself. If it finds one, it just sends a network signal to the workstations to refresh their tables. Ideally, I'd like to have the workstations send a message back to the server confirming the signal. I'm currently using multiprocessing.connection to do all the networking. It worked briefly before I implemented threading and queues to pass the network object between threads. The script needs to both loop the listening interface and the row query which happens every ten seconds. I've been having problems with blocking functions which I solved by moving things around. Most recently, when the client connects to the socket, the server-side script just ends with exit code 0. Here's how the server script currently looks, "Maria" is the nickname for the server-script, "Pierre" for the GUI app its communicating with. [code] """ Black Mesa: Project Maria By smallpants bitbucket.org/smallpants """ import threading from queue import Queue from time import sleep from multiprocessing.connection import Listener from config import SECRET_KEY from database import * """Server-side signalling for Pierre""" class Maria: def __init__(self): listen_address = ('127.0.0.1', 11718) self.listener = Listener(listen_address, authkey=SECRET_KEY) self.has_pierre_connection = False self.connection = None self.signal_thread = None self.listener_thread = None self.queue = Queue(maxsize=1) self.listener_thread = threading.Thread(target=self.listen, daemon=True).start() def listen(self): if self.queue.empty(): print('connection opened, listening') self.queue.put(self.listener) self.signal_thread = threading.Thread(target=self.wait_for_orders, daemon=True).start() self.listener.accept() else: print('listening on existing connection') def wait_for_orders(self): self.has_pierre_connection = True print('waiting for orders') while self.has_pierre_connection: print('db checked') query = session.query(Order).join(Patient, Prescribers, Compound) orders = query.filter(Order.isNew == 1).count() if orders > 0: print('new orders, sending signal') self.signal_pierre() else: session.close() sleep(10) def signal_pierre(self): self.queue.get() try: # self.signal_thread.start() listening.send_bytes(b'new_orders') orders = session.query(Order).filter(Order.isNew == 1).all() for order in orders: setattr(order, 'isNew', 0) except EOFError: self.listener.close() print('Connection broken, listener stopped safely.') if __name__ == '__main__': maria = Maria() [/code]
In Python for i in range(0,10,2) returns 0,2,4,6,8. Is there any way for the interval to do it by sets for example-- 0-2, 6-8? Reason being I am selecting pixels in an image: [code] 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 [/code] Through standard interval I can select every so many rows range(0,23,2). Only way to do the same for columns is sets in intervals. In this instance I would want 0-5, then 12-17. (New to programming I apologize.)
[QUOTE=Zaex;52717683]In Python for i in range(0,10,2) returns 0,2,4,6,8. Is there any way for the interval to do it by sets for example-- 0-2, 6-8? Reason being I am selecting pixels in an image: [code] 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 [/code] Through standard interval I can select every so many rows range(0,23,2). Only way to do the same for columns is sets in intervals. In this instance I would want 0-5, then 12-17. (New to programming I apologize.)[/QUOTE] If I'm understanding you correctly you'd probably want to use two nested for loops. I'm not familiar with Python so this is almost certainly the wrong format and it may need some tweaking to get it exactly how you need but something like this should be a decent starting point: [code]for (i = 0; i < length; i += range + offset) { for (j = 0; j < range; j++) { //Do whatever you need for each pixel here //You'd need to use i+j to select each individual pixel. //For example for 0-2 and 6-8 you'd want a length of 24 according to the grid you gave, range of 3, and offset of 3 } }[/code]
[QUOTE=Alice3173;52718175]If I'm understanding you correctly you'd probably want to use two nested for loops. I'm not familiar with Python so this is almost certainly the wrong format and it may need some tweaking to get it exactly how you need but something like this should be a decent starting point: [code]for (i = 0; i < length; i += range + offset) { for (j = 0; j < range; j++) { //Do whatever you need for each pixel here //You'd need to use i+j to select each individual pixel. //For example for 0-2 and 6-8 you'd want a length of 24 according to the grid you gave, range of 3, and offset of 3 } }[/code][/QUOTE] Definitely makes sense now, thanks. The funny part is when you mentioned it I remember I have done something similiar to it before. [code] #include <cstdio> #include <cstdlib> #include <iostream> #include <unistd.h> using namespace std; //User Input Variables int seed; //User input of seed int times; //User input of loops int size; //User input of grid size //Board Variables int board[26][26]; //Maximum size of board int posx; //Position on board X Coord int posy; //Position on board Y Coord int startPos; //Size divided by 2 = starting position //Memory Variables int clk; //Stores initial times entry int rep = 0; //Stores amount of repetition int dir; //Stores the last direction of the entity char cardinal[4] = {'N','S','E','W'}; //Error Variables int err = 0; string error[6] = { "Errors: None","Errors: Exceeded Maximum Repetitions", "Errors: Walked off Board to the South!", "Errors: Walked off Board to the North!", "Errors: Walked off Board to the East!", "Errors: Walked off Board to the West!"}; //Draws a square grid of 0's with a size depending on the "size" variable void DrawBoard() { int xAxis = 0; int yAxis = 0; for(;;) { xAxis++; cout << board[xAxis][yAxis]; cout << " "; //When the X Axis reaches size borders start new line if (xAxis == size) { cout << endl; yAxis++; xAxis = 0; } //When the Y Axis reaches size borders, finish Draw if (yAxis == size) { xAxis = 0; yAxis = 0; break; } } } int main(int nNumberofArgs, char* pszArgs[]) { //Intro---------------------------------------- while(size < 1 || size > 25) { system("clear"); cout << "Random Walk Simulator v2" << endl; //User determines size of grid cout << "Size Maximum 25" << endl; cout << "Size: "; cin >> size; } //User determines what seed random will use cout << "Seed: "; cin >> seed; //User determines how many times the loop runs cout << "Iterations: "; cin >> times; clk = times; //Take user size to determine the center starting position startPos = size/2; posx = startPos; posy = startPos; board[posx][posy] = 1; srand(seed); system("clear"); //--------------------------------------------- for(;times > 1; --times) { dir = (rand() %4); rep++; if(dir == 0) { board[posx][--posy] = ++board[posx][posy]; } if(dir == 1) { board[posx][++posy] = ++board[posx][posy]; } if(dir == 2) { board[++posx][posy] = ++board[posx][posy]; } if(dir == 3) { board[--posx][posy] = ++board[posx][posy]; } if(board[posx][posy] == 10) { --board[posx][posy]; err = 1; break; } if(posx == size) { err = 4; break; } if(posx == 0) { err = 5; break; } [/code]
Sorry, you need to Log In to post a reply to this thread.