Search Results

Showing results 1 to 40 of 445
Search took 0.03 seconds.
Search: Posts Made By: 1o0oBhP
Forum: Posting Games Mar 12th, 2006
Replies: 3,185
Views: 250,132
Posted By 1o0oBhP
...To have strange....

(Can't believe this is still going, i havent been to the site in nearly a year due to uni commitments..... :) )
Forum: C++ Apr 7th, 2005
Replies: 3
Views: 4,138
Posted By 1o0oBhP
Have an array of chars and draw it!

eg:



char array[] = { "+", "+", "+", "+", "+",
"+", "0", "+", "0", "+",
"+", "+", "^", "+",...
Forum: C++ Apr 7th, 2005
Replies: 3
Views: 4,138
Posted By 1o0oBhP
Have an array of chars and draw it!

eg:



char array[] = { "+", "+", "+", "+", "+",
"+", "0", "+", "0", "+",
"+", "+", "^", "+", "+",
...
Forum: C Apr 7th, 2005
Replies: 5
Views: 1,966
Posted By 1o0oBhP
You want to load them into a one dimension array really as then each array index represents a frame of animation. This could be done using windows functions quite easily (BitBlt function and the...
Forum: C++ Mar 23rd, 2005
Replies: 12
Code Snippet: clear screen
Views: 42,694
Posted By 1o0oBhP
try substituting <cstdlib> in place of <stdlib.h>
Forum: C++ Mar 23rd, 2005
Replies: 12
Code Snippet: clear screen
Views: 42,694
Posted By 1o0oBhP
the code should be ANSI standard code to work on all compilers, and i DONT see any un-ANSI code! it should work on others, i have compiled DevC++ projects on MSVC++ Before without any problems
Forum: C++ Mar 23rd, 2005
Replies: 9
Views: 5,419
Posted By 1o0oBhP
They only take up minute disk space and minimal ram on the html docs! You can always NOT provide a file, then nothing is drawn...
Forum: Game Development Mar 23rd, 2005
Replies: 17
Views: 5,769
Posted By 1o0oBhP
1) See the c/c++ books forum
2) DevC++ is free and is quite ample for game production as is the older DJGPP (used for compilation of quake)
3) DirectX is the most powerful graphic library at the...
Forum: C++ Mar 23rd, 2005
Replies: 45
Views: 43,908
Posted By 1o0oBhP
however if you want to create an object dynamically the new keyword / operator will call the constructor for the object, malloc wont! I have found more uses for new than malloc()...
Forum: C Mar 23rd, 2005
Replies: 4
Views: 1,464
Posted By 1o0oBhP
ibmackin have you tried any code at all, if so post it. The forum rules say we dont do homework for you, but we will have a go at fixing mistakes in homework you HAVE ALREADY DONE! |:)
Forum: C Mar 20th, 2005
Replies: 4
Views: 3,807
Posted By 1o0oBhP
Sorry for the late reply Ive been away at uni working hard! As for drawing the calendar why not have a nested loop to draw the whole lot?



char days[] = { "S", "M", "T", "W", "T", "F", "S" };...
Forum: C++ Mar 20th, 2005
Replies: 3
Views: 2,790
Posted By 1o0oBhP
or in full "std::vector", but there is still a danger that the struct name will cause errors. Easy just to do



namespace my_vector
{
struct vector // might as well class it
{
...
Forum: C++ Mar 20th, 2005
Replies: 1
Views: 4,184
Posted By 1o0oBhP
Can you explain further and provide details? Is the image on a window? CursorPos sounds like a console function to me...
Forum: C Mar 20th, 2005
Replies: 3
Views: 2,560
Posted By 1o0oBhP
Sorry I re-read the question. Your instructor is asking you to do a 'fake 3d' lighting effect (I was going to show you a 'real' techniqe!). He / She has said that colour must fade depending on...
Forum: C Mar 20th, 2005
Replies: 3
Views: 2,560
Posted By 1o0oBhP
Well for a start to make an ellipse appear like a ball you need to make a CIRCLE not an ellipse, then depending on the angle of the light you need to do some VERY basic lighting algorithms ASSUMING...
Forum: C Mar 20th, 2005
Replies: 4
Views: 1,904
Posted By 1o0oBhP
from google

http://www.computing.net/programming/wwwboard/forum/12045.html



#include <stdio.h>

if(remove("myfile.txt") == -1)
Forum: C++ Mar 20th, 2005
Replies: 54
Views: 75,520
Posted By 1o0oBhP
Seeing as this thread is about timesaving what about inheritance? Its a good time saver especially for the masses intent on game creation.

Say you make a class such as


class CBASE_ENTITY
{...
Forum: Motherboards, CPUs and RAM Mar 20th, 2005
Replies: 3
Views: 2,673
Posted By 1o0oBhP
Video ram is Video ram, you cant expand Video mem into RAM as far as I know. OpenGL and DirectX (The most common card techs) 'almost' do this by using system ram if the vid mem runs out, the two...
Forum: C++ Mar 20th, 2005
Replies: 11
Views: 22,515
Posted By 1o0oBhP
I would also recommend DevC++, also DJGPP is useful if you want to program old VGA graphics.
Forum: C++ Mar 20th, 2005
Replies: 2
Views: 3,136
Posted By 1o0oBhP
Another way might be to define two classes with everything private (-constructors) and put the other classes functions as friends? the use of the static keyword could help as static fields dont...
Forum: C Mar 20th, 2005
Replies: 1
Views: 2,077
Posted By 1o0oBhP
What exact problem are you having at the moment with it? If you generate random numbers 1 - 13 to generate random cards all you need to do is have a seperate fields to store the value and the ID in....
Forum: C Mar 16th, 2005
Replies: 4
Views: 3,807
Posted By 1o0oBhP
Well looping would be a simple way to draw it! Does this have to be a console app? Many Win32 Functions are available for arranging text or characters at co-ordinates on a window....
Forum: C++ Mar 16th, 2005
Replies: 1
Views: 4,853
Posted By 1o0oBhP
not sure what is wrong there! However this code (untested) should work


#include <iostream> // std::cout
#include <string> // std::string
#include <cstdlib> // system

template <class t>...
Forum: C++ Mar 16th, 2005
Replies: 9
Views: 4,977
Posted By 1o0oBhP
DevC++ doesnt have graphics.h with it, its a borland extension. iostream.h should work if not try #include <iostream> without the .h
Forum: C++ Mar 5th, 2005
Replies: 6
Views: 14,184
Posted By 1o0oBhP
I thought <string.h> was part of the old c++ standard?
Forum: C++ Mar 5th, 2005
Replies: 8
Views: 72,146
Posted By 1o0oBhP
Where is the original thread. I might be able to have a look...
Forum: C++ Mar 5th, 2005
Replies: 13
Views: 13,655
Posted By 1o0oBhP
Lost times of how many times i have said this (it is posted 3 or 4 times ABOVE people!) but just to refresh...

THE MODE 13H CODE USES 16 BIT ASSEMBLY COMMANDS (16 bit interrupts is the problem)
...
Forum: C++ Mar 5th, 2005
Replies: 6
Views: 15,628
Posted By 1o0oBhP
DevC++ using mingw32 compiler. I think its the other way round as most MS users I have seen have got all sorts of auto-generated things to adjust the code! The brush issue should work as...
Forum: C++ Mar 5th, 2005
Replies: 3
Views: 3,597
Posted By 1o0oBhP
If you must use char * (c-style) strings then define them as

char *string1;
char *string2;

string1 = (char*) new char[length + 1]; // allocate memory for a string of a given length. the + 1 is...
Forum: Visual Basic 4 / 5 / 6 Mar 5th, 2005
Replies: 7
Views: 24,202
Posted By 1o0oBhP
Just a few for you

cstr() ' convert to string
ccur() ' convert to curreny
clng() ' convert to long
cint() ' convert to integer
cdbl() ' convert to double

and theres probably a few more if...
Forum: C++ Mar 5th, 2005
Replies: 6
Views: 14,184
Posted By 1o0oBhP
std::string also works well

ie


std::string str1 = "string 1 goes here";
std::string str2 = "string 2 goes here";

str1 += str2; // add str2 to str1
Forum: C++ Mar 5th, 2005
Replies: 2
Views: 4,269
Posted By 1o0oBhP
median of a matrix? what is that? do you mean determinant? the fstream tutorial on the c/c++ tutorials forum will help with file IO.
Forum: C++ Mar 4th, 2005
Replies: 1
Views: 2,855
Posted By 1o0oBhP
search the code snippets. There are many examples there. strcmp is probably being passed / is returning invalid data. If you want strings why not use the string class?

also strcmp needs const char...
Forum: Game Development Mar 4th, 2005
Replies: 2
Views: 3,002
Posted By 1o0oBhP
OpenGL = Open GRAHPICS library.

You need another library for sound.
Forum: Game Development Mar 4th, 2005
Replies: 1
Views: 3,527
Posted By 1o0oBhP
there is a directx sdk of about 2 - 3 megs (i think) which is just the source and libraries. Search for and download DirectX 8 For Dev C++ (smaller than sdk) and copy what you need. DevC++ also...
Forum: C++ Mar 4th, 2005
Replies: 3
Views: 3,597
Posted By 1o0oBhP
strcmp parameters are invalid like the compiler says! I would convert to using the std::string class found in <string> as it is much easier to use and has most of its operators overloaded so you can...
Forum: DaniWeb Community Feedback Mar 4th, 2005
Replies: 10
Views: 10,038
Posted By 1o0oBhP
I have been studying Engineering at university now and have come across a language which is apprently an industry standard - MatLab. It is a scripting language very close to C at times yet comes with...
Forum: Assembly Mar 4th, 2005
Replies: 1
Views: 12,196
Posted By 1o0oBhP
not done assembly for a while but...

in the array loop if you have a flag for odd / even and XOR it every time the loop goes round it will switch from odd to even. Then test the flag to see...
Forum: Visual Basic 4 / 5 / 6 Mar 4th, 2005
Replies: 7
Views: 24,202
Posted By 1o0oBhP
not tried cstr() ??

then use listbox.additem method
Forum: C++ Mar 4th, 2005
Replies: 5
Views: 3,515
Posted By 1o0oBhP
You could investigate DirectX graphics. It really isnt hard as long as you error check all the way, otherwise it starts getting frustrating. Or even easier try OpenGL
Showing results 1 to 40 of 445

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC