I am an aspiring (at the age of 27) programmer using C++. I have future undertakings including getting a refresher course at a premier University in my country. I am just interested to know in advance how it is to become a programmer. What are the regular routines that you do to start and end your day (shift) as programmers? Is it all about programming from login to logout? Are there other things that you do such as reporting, documenting, taking a cup of coffee, then coding, coding,coding.... Thank you guys in advance. Your answers will mean a lot to …

Member Avatar
Member Avatar
+0 forum 7

Hi I've got most of the code finished but I can't for the life of me figure out how to correctly count neighbors for the edges and corners of the array. These are the rules. If the cell is currently empty: If the cell has exactly three living neighbors, it will come to life in the next generation. If the cell has any other number of living neighbors, it will remain empty. If the cell is currently living: If the cell has one or zero living neighbors, it will die of loneliness in the next generation. If the cell has …

Member Avatar
Member Avatar
+0 forum 10

I want to find dofollow query which will give me dofollow blog list for my site http://www.myislamiapps.com/islamicapps/Home/ Can anybody tell me what kind of query i put on google?

Member Avatar
Member Avatar
+0 forum 3

This is based on John Conways Game of Life, a simple yet awesome code that simulates life. Rules are simple, if a cell has less then 1 or more then 4 living cells next to it, the cell dies. An empty cell with exactly 3 living cells next to it becomes alive itself. My code seems to murder the whole scene... I'm probably wrong somewhere in lines 49 to 70. package igrazivota; import java.util.Random; import java.util.Scanner; public class IgraZivota { public static void main(String[] args) { int iterationNumber; int chance; int limit; int counter = 0; int row = 10; …

Member Avatar
Member Avatar
+0 forum 9

My professor asks me to program the Game Of Life with some required and I find unnecessary classes. But anyhow as I am coding and running the program midway I run into this problem void Life::setup_grid() { cout << "Size of Grid: " << grid.size() << endl; cout << "rows: " << rows << endl; cout << "cols: " << cols << endl; for(int i = 0; i < rows; i++) { for(int j = 0; j < cols; j++) { if(cell == 'A') grid[i][j] = new ACell(); //I get "Expression: vector subscript out of range." here. else grid[i][j] = …

Member Avatar
Member Avatar
+0 forum 6

I have been trying to write a program for the game of life and have been having some issues. The rules are: 1. Any live cell with fewer than two live neighbours dies, as if caused by under-population. 2. Any live cell with two or three live neighbours lives on to the next generation. 3. Any live cell with more than three live neighbours dies, as if by overcrowding. 4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction. I have been looking at my loop structure and functions for a while now …

Member Avatar
Member Avatar
+0 forum 2

I'm trying to finish this assignment for class, but I've got a problem.It seems as though my code will always make the new generation blank, and I'm not sure why. If you could read my code, then I'd greatly appreciate it. Thanks! [CODE] // Life.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <ctime> using namespace std; void generation(char[][20], int); void neighbors(char[][20], int); void display(char[][20], char[][20], int, int); int _tmain(int argc, _TCHAR* argv[]) { int x = 0; char board[70][20]; char s[2][2]; srand(time(NULL)); cout << endl; generation(board, 70); system("pause"); return 0; } void …

Member Avatar
Member Avatar
+0 forum 4

My assignment is to create the Game of Life. I know that it is very easy to find out how to do this online, but I don't want the answers fed to me. Here's what I have so far: [CODE] // Life.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <ctime> using namespace std; void generation(char[][20], int); void neighbors(char[][20], int); void display(char[][20], int); int _tmain(int argc, _TCHAR* argv[]) { int x = 0; char board[70][20]; srand(time(NULL)); for (int x = 0; x < 70; x++) { for (int y = 0; y < …

Member Avatar
+0 forum 0

Hi: I wasn't able to find the exact solution to my problem on Daniweb, although there are several posts regarding the game of life. This situation came the closest: [url]http://www.daniweb.com/software-development/cpp/threads/242338[/url] My situation is a bit different because I HAVE to use a combination of functions and a class in the client program; it's 3 files total: client, specification(header), and the file that holds all the defitions for the secification file. So I'm not sure what I'm doing wrong to end up with blank cells. [B]I think that the problem is with my tally function in the client file/program[/B]. I will …

Member Avatar
Member Avatar
+0 forum 2

Trying to do some basic "Game of life", but for some reason i'm getting some weird results, the code: [CODE]#include "stdafx.h" #include "stdlib.h" #include <iostream> using namespace std; #include "windows.h" const int V=30;//Vertical const int H=40;//Horizontal char A[V][H]; int ne=0; //Set all to dead void setDead() { for (int i=0;i<V;++i) { for (int j=0;j<H;++j) { A[i][j]='-'; } } } //Print void print() { system("cls"); for (int i=0;i<V;++i) { for (int j=0;j<H;++j) { cout<< A[i][j]; } cout<< endl; } } //Enter alive cells void enter() { int h=0,v=0; bool status=false; while(true) { cout<< "Enter Vertical: "; cin>> v; cout<< "Enter Horizontal: …

Member Avatar
Member Avatar
+0 forum 5

Well, For the past week I had been spending all of my time programming and posting on Daniweb. However, for the last two days I haven't been able to get on a computer. Today I just got on Daniweb for the first time in two days and looked at all of the threads that I was trying to keep up on...wow! I am spending A LOT of time on daniweb! Don't get me wrong, I love Daniweb! But dude, I really need to have SOMETHING else I do! :) - [B][I]WolfShield[/I][/B]

Member Avatar
Member Avatar
+0 forum 13

Hi Guy's I have just started my own independent blog on my own server account to compliment my Life Insurance Site and would like some tips on how best to set it out. In terms of seo should my categories, blog roll, latest posts etc columns be on the left of the posts or to the right. My thought is that if they are on the right then the search spiders will get to the posts and main content a lot quicker as they are not been sent off by any links? Is this so and does any one have …

Member Avatar
Member Avatar
+0 forum 20

i wrote this code for a simple life game loosely based on Conway's. I wrote an 40x40 integer matrix with random numbers and a 40x40 char matrix based on the previous one, where the numbers 0 to 3 generate an X (alive cell) and the numbers upper 4 generate an . (dead cell). There's two functions in the ┬┤program, geracao (applys the conditions of life game) and imprimirmatriz (prints the new char matrix after applyed conditions). I'm having problems with implementation of the conditions of the game. I tryed to define the 8 possible neighbours of a cell but when …

Member Avatar
Member Avatar
+0 forum 1

The bleach could not reach my brain through my eyes - I could not stop clicking. Please, I beg you do not [URL="http://www.peopleofwalmart.com"]click[/URL]! It has been 2 hours, my eyes are empty pools, yet I still click [B][I][U]next[/U][/I][/B]

Member Avatar
Member Avatar
+1 forum 6

Social media have allowed users to share their lives in many different ways, via updates, images, voice, videos, etc. Now that many platforms are integrated, it is easier to catalog and archive your life. From a privacy perspective, I personally would be hesitant towards this. I just read about a new tool that allows publicizing your life easier - [url]http://www.mov.io/[/url] Would you make your life that public?

Member Avatar
Member Avatar
+0 forum 6

The End.