Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
tank
- Page 1
Re: Tank simulated game using Class Objects and Lists.
Programming
Software Development
16 Years Ago
by Murtan
…good form to have the
Tank
's __init__ method prompt the user for a
tank
name. I'd rather … createTanks() and have it passed to the
Tank
's __init__ I have a small issue with the…
tank
's setter methods, they don't 'SET' they…I would have expected set_XPos(5) to set the
Tank
's X coordinate to 5, and not for it…
HTML5 canvas Javascript tank game (collision help)
Programming
Web Development
11 Years Ago
by Barhoom
…break; } } } // restore current context context.restore(); // draw
tank
+ bullets context.drawImage(oTank.image, oTank.i*oTank.w, 0…imgTank = new Image(); imgTank.src = 'images/
tank
.png'; oTank = new
Tank
(iCellSize*9, iCellSize*24, 48, 48, imgTank…
2D tank program (sky view)
Programming
Software Development
16 Years Ago
by mmeyer49
…188}, }; } void yourTank() // your
tank
Green { } /*void yourTankRotate() // Shows you
tank
rotating N, S, W, E {… 1; } //yourTankFace(); } */ void compTank() // computer
tank
Red { } void compTankRotate() // Shows computer
tank
rotating N, S, W, E { } void stats() …
Hearst Launches App Lab 'Think Tank'
Hardware and Software
Hardware
Mobile and Wearables
14 Years Ago
by EricMack
… what could be the world's first "app think
tank
" - or at least the first anchored in the world…, president, Hearst Magazines. “The App Lab is a digital think
tank
to bring together innovators, both inside Hearst and across the…
New video card, sound goes in the tank
Hardware and Software
Hardware
18 Years Ago
by LA3 Powered TC
… the rest of the pic the sound when in the
tank
, nothing but static while the pic was moving. The first…
So you want to control a tank with your iPhone or Android smartphone?
Community Center
Geeks' Lounge
13 Years Ago
by happygeek
… TankBot is no AIBO; for a start it's a
tank
and not a dog, it's a lot smaller and…
Help on a school project!
Digital Media
UI / UX Design
14 Years Ago
by 1NJ3CT3D
… an HTML 5.0 application which will read
tank
information for a specific
tank
farm from a file and display the tanks… file example is shown below. It indicates that the first
tank
is 40 metres down and 50 metres across from the… file from local storage then display a layout of the
tank
farm. THIS IS A MAKE UP ASSIGNMENT FOR ME.. AND…
Tank simulated game using Class Objects and Lists.
Programming
Software Development
16 Years Ago
by teddies
Hey guys. I originally wrote this program as a University assignment. It's basically a simulated game of 'tanks' roaming around a grid blowing eachother up. It isn't intended to be the most exciting game in the universe, infact when you look at the programs' output there will just be a whole heap of numbers that represent where the tanks are …
Re: 2D tank program (sky view)
Programming
Software Development
16 Years Ago
by mmeyer49
Anyone able to help?
Re: 2D tank program (sky view)
Programming
Software Development
16 Years Ago
by Lerner
It will make your life easier if you explicitly specify the number of rows in addition to the number of columns in your array. In your display function this won't work: cout << (char){201,205,209,205,209,205,209,205,209,205,209,205,209,205,209,205,209,205,209,205,187},....... You need to output elements of an array one at a time, …
Re: 2D tank program (sky view)
Programming
Software Development
16 Years Ago
by mmeyer49
So you are talking about something like this? [code] void printgrid(char grid[][10],int h,int w) //create grid { for(int i = 0;i < h;i++) { for(int j = 0;j < w;j++) { cout << grid[i][j] << '.'; } cout <<endl; } } [/code]
Re: 2D tank program (sky view)
Programming
Software Development
16 Years Ago
by Lerner
Yes. Since you are using integers in a char array you may (or may not, I don't have a lot of experience trying it) need to cast the int to a char like you did in your original post, but the important point is you need to ouput each element of an array separately unless it is being used as a string (there may be other exceptions, too, but if so…
Re: New video card, sound goes in the tank
Hardware and Software
Hardware
18 Years Ago
by LA3 Powered TC
I changed to an older video card and all is well in the universe. The sound is working great now. Jim B :D .
Re: Python problem
Programming
Software Development
17 Years Ago
by linux
Tank
() is a class defined by your application. So you would have to have: [code]class
Tank
():[/code] Somewhere, for your code to work.
Re: need help with iis8 on windows7 64bit
Hardware and Software
Microsoft Windows
10 Years Ago
by slavica.k
Tank
you JorgeM! all i needet to know if i got iis instaled and configured correctly and for the pages i will see where im doing wrong.tanks again!
Re: access the contents of the contents of java variables
Programming
Software Development
15 Years Ago
by n_joan
tank
you......
Re: Problem with Scanf() and struct
Programming
Software Development
13 Years Ago
by mBrissman
Tank
you! :)
Re: Fluid Mechanics program help
Programming
Software Development
17 Years Ago
by VernonDozier
…increasing heights (that is, the pipe connecting
tank
i to
tank
i+1 is at a higher level than… the pipe connecting
tank
i to
tank
i-1.)
Tank
1 is open so that air …above the ground of the pipe that connects
tank
k and
tank
k+1. The numbers on the third… in the 4 cubic meters each from
tank
1 and
tank
2 and you get 15.62 cubic meters…
typedef structure in C
Programming
Software Development
10 Years Ago
by senait.kifle.127
…Structure variables of type
TANK
stores and returns it*/
TANK
inputTank(); ??? inputTank() {
Tank
t; printf("\…prototype below */ float getVolume(
TANK
); float getVolume() { float Volume; Volume= PI *
TANK
.diameter *
TANK
.diameter *
TANK
.height/4; return Volume…
Fluid Mechanics program help
Programming
Software Development
17 Years Ago
by hajjo
…in a series of connected vertical tanks. Each
tank
has a horizontal cross-sectional area of one… heights (that is, the pipe connecting
tank
i to
tank
i+1 is at a higher level …than the pipe connecting
tank
i to
tank
i-1.)
Tank
1 is open so that air…the ground of the pipe that connects
tank
k and
tank
k+1. The numbers on the third…
Classes with a main function
Programming
Software Development
14 Years Ago
by jozz3
…; i += 1 for coord in theCoords: if
tank
.Coords() == coord: battleLocation.append(
tank
.Coords())
Tank
.setArmour(-tanks[x].f) x += 1 if x…
stuck writing pseudocode, need help
Programming
Software Development
14 Years Ago
by Simes
…; i += 1 for coord in theCoords: if
tank
.Coords() == coord: battleLocation.append(
tank
.Coords())
Tank
.setArmour(-tanks[x].f) x += 1 if x…
Scheme combine function help needed
Programming
Software Development
18 Years Ago
by Soccerplayer13
… in its factory: [CODE];; A
tank
is ;; (make-
tank
string number) (define-struct
tank
(substance quantity))[/CODE]Some examples would …be: [CODE](make-
tank
"oil" 25) (make-
tank
"distilled water" 10)[/CODE…combines all the like substances together into one big
tank
of the correct size, returning a list of the…
Rotating w/ trig
Programming
Game Development
17 Years Ago
by CoolGamer48
…use trig to create a rotating
tank
(you rotate the
tank
by pressing left and right, and…
tank
.movex = cos(
tank
.direction*0.0174532925)*
tank
.move;
tank
.movey = sin(
tank
.direction*0.0174532925)*
tank
.move;
tank
.x +=
tank
.movex;
tank
.y +=
tank
.movey;[/CODE]
tank
…5 if the down arrow is pressed.
tank
.direction
tank
.direction increases by 3 when your press …
Mini Battle Tanks game HELP!!!!!
Programming
Software Development
16 Years Ago
by Shank89
…What it does so far is show a
tank
moving around a grid size of -10…and the while/ if loops def main(): tankOne =
Tank
() def determineCoords(
Tank
): if tankOne.get_xpos() > gridSize: tankOne.set_xpos…= -move elif way =='Right': tankOne.xpos = move print '
Tank
1-', '\t', move, '\t', way, '\t\t', tankOne…
Confused with something
Programming
Software Development
14 Years Ago
by Simes
… import Grid from
tank
import
Tank
import random t1 =
Tank
("Meanie", 12, 7) t2 =
Tank
("CP1200",…+= 1 for coord in theCoords: if
tank
.Coords() == coord: battleLocation.append(
tank
.Coords())
Tank
.setArmour(-tanks[x].f) x += 1…
HELP ASAP java car class
Programming
Software Development
13 Years Ago
by domingur
…public double checkGasGauge ( ) - return the amount of gas in the
tank
. Do not print a message. (5 pts) • public void honkHorn… a positive number and that it will not overfill the
tank
. (5 pts) • public void drive (int miles) – …Modify the odometer and gas
tank
to reflect the miles driven and the gas burned. The…
Re: Classes with a main function
Programming
Software Development
14 Years Ago
by sneekula
Generally you would save the following three code files in the same directory: class
Tank
as [B]
tank
.py[/B] class Grid as [B]grid.py[/B] your main code as [B]tank_game.py[/B] then run tank_game Note that filenames for modules
tank
and grid are case sensitive!
Re: typedef structure in C
Programming
Software Development
10 Years Ago
by Hiroshe
… 30 needs to do). For lines 39 to 44, "
TANK
" is not a variable (it's a structure). Given…
Re: I need help with window based c# program
Programming
Software Development
19 Years Ago
by HardTech
…public vehicle() { } public vehicle( double
tank
, double cval, int id, string desc, …double mpg, double odo ) { FuelTank.
Tank
=
tank
; FuelTank.Val = cval; mVehID = id; mVehDesc …
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC