User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 370,571 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,016 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 420
Search took 0.03 seconds.
Posts Made By: 1o0oBhP
Forum: Posting Games Mar 12th, 2006
Replies: 3,140
Views: 153,447
Posted By 1o0oBhP
Re: 3 word story

...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: 2,841
Posted By 1o0oBhP
Re: drawing - stickman with array

Have an array of chars and draw it!

eg:



char array[] = { "+", "+", "+", "+", "+",
"+", "0", "+", "0", "+",
"+", "+", "^", "+", "+",
...
Forum: C++ Apr 7th, 2005
Replies: 3
Views: 2,841
Posted By 1o0oBhP
Re: drawing - stickman with array

Have an array of chars and draw it!

eg:



char array[] = { "+", "+", "+", "+", "+",
"+", "0", "+", "0", "+",
"+", "+", "^", "+", "+",
...
Forum: C Apr 7th, 2005
Replies: 5
Views: 1,649
Posted By 1o0oBhP
Re: Using sprites...

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: Game Development Mar 23rd, 2005
Replies: 17
Views: 4,428
Posted By 1o0oBhP
Re: Rookie in game development. Where should I start?

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: 31,942
Posted By 1o0oBhP
Re: C++ BASICS ==> Pointers, Call by Reference/Value, Inheritance, Functions & Arrays

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,195
Posted By 1o0oBhP
Re: desperate! having serious issuses

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,390
Posted By 1o0oBhP
Re: Calendar Creator

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,270
Posted By 1o0oBhP
Re: Why compiler complants error when compile.

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
{
double...
Forum: C++ Mar 20th, 2005
Replies: 1
Views: 3,526
Posted By 1o0oBhP
Re: How to get the cursor position on an image

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: 1,997
Posted By 1o0oBhP
Re: Windows programming task

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: 1,997
Posted By 1o0oBhP
Re: Windows programming task

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,555
Posted By 1o0oBhP
Re: Program security (When Launched)

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: 47,934
Posted By 1o0oBhP
Re: C and C++ Timesaving Tips

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
{
// code...
Forum: Motherboards, CPUs and RAM Mar 20th, 2005
Replies: 3
Views: 2,042
Posted By 1o0oBhP
Re: sharing ram with video

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: 11,245
Posted By 1o0oBhP
Re: Best free C/C++ compiler for a newbie?

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: 1,988
Posted By 1o0oBhP
Re: Two-way class communication

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: 1,544
Posted By 1o0oBhP
Re: Trouble with pointers in card game.

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,390
Posted By 1o0oBhP
Re: Calendar Creator

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: 2,733
Posted By 1o0oBhP
Re: Problem with basic templates on GCC

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> class...
Forum: C++ Mar 16th, 2005
Replies: 9
Views: 3,768
Posted By 1o0oBhP
Re: Linker error in borland turboc3 compiler.need help in desperation

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: 3,951
Posted By 1o0oBhP
Re: adding to a string

I thought <string.h> was part of the old c++ standard?
Forum: C++ Mar 5th, 2005
Replies: 8
Views: 38,259
Posted By 1o0oBhP
Re: Dev C++ linker errors, undefined reference

Where is the original thread. I might be able to have a look...
Forum: C++ Mar 5th, 2005
Replies: 13
Views: 10,602
Posted By 1o0oBhP
Re: Graphics in Pixel,Mode13h:Part 1

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...
Forum: C++ Mar 5th, 2005
Replies: 3
Views: 2,235
Posted By 1o0oBhP
Re: loop and class problem

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 for...
Forum: Visual Basic 4 / 5 / 6 Mar 5th, 2005
Replies: 7
Views: 15,850
Posted By 1o0oBhP
Re: Integer to string then 2 listbox

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 you...
Forum: C++ Mar 5th, 2005
Replies: 6
Views: 3,951
Posted By 1o0oBhP
Re: adding to a string

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: 2,896
Posted By 1o0oBhP
Re: I need help in writing c++ code..?!!

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,176
Posted By 1o0oBhP
Re: Linked Lists stresses

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: 2,196
Posted By 1o0oBhP
Re: I need help - about sound in opengl or directx

OpenGL = Open GRAHPICS library.

You need another library for sound.
Forum: Game Development Mar 4th, 2005
Replies: 1
Views: 2,718
Posted By 1o0oBhP
Re: I need help - Opengl SDK

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: 2,235
Posted By 1o0oBhP
Re: loop and class problem

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: 9
Views: 7,694
Posted By 1o0oBhP
MatLab Forum?

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: 9,106
Posted By 1o0oBhP
Re: print odd and even numbers

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 whether...
Forum: Visual Basic 4 / 5 / 6 Mar 4th, 2005
Replies: 7
Views: 15,850
Posted By 1o0oBhP
Re: Integer to string then 2 listbox

not tried cstr() ??

then use listbox.additem method
Forum: C++ Mar 4th, 2005
Replies: 5
Views: 2,822
Posted By 1o0oBhP
Re: graphics.h supplement?

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
Forum: C++ Feb 7th, 2005
Replies: 9
Views: 5,042
Posted By 1o0oBhP
Re: traslate by C++ a EXCEL sintax in a C++ sintax

paolo have you tried EXPORTING / SAVING the sheet as a txt? And saying yes to something you say you dont know what it is (vb) in the next sentence is a bit worrying... ffrosk you cant complain really...
Forum: Windows 9x / Me Feb 7th, 2005
Replies: 10
Views: 2,560
Posted By 1o0oBhP
Re: Getting the right keys i.e.'@' to '"' etc

Check you language settings! Sounds odd but sometimes the language settings and keyboard settings are set wrong from the factory
Forum: C++ Feb 7th, 2005
Replies: 2
Views: 5,209
Posted By 1o0oBhP
Re: Help... assembly in Dev C++

DONT use 10h graphics. Im assuming you have

mov ax, 0x13 or whatever
int 10h

This WONT work in dev C++ as it is a 32 bit compiler. You need to use a 16 bit compiler such as DJGPP! Or get a...
Forum: Java Feb 7th, 2005
Replies: 3
Views: 8,841
Posted By 1o0oBhP
Re: Single Linked Circular Link List

depends on how you code it! If you have a starting head node you can index from there
Showing results 1 to 40 of 420

 
All times are GMT -4. The time now is 5:05 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC