Search Results

Showing results 1 to 38 of 38
Search took 0.01 seconds.
Search: Posts Made By: kangarooblood
Forum: C++ Jul 22nd, 2009
Replies: 9
Views: 301
Posted By kangarooblood
well thank you for taking time, and yes that is what I'm trying to do so I'll just have to find an other way do it.
Forum: C++ Jul 22nd, 2009
Replies: 9
Views: 301
Posted By kangarooblood
the thing is that a program like this works

char streng[]="array"
int i = 0;
while(streng[i]){
cout << streng[i] << "=" << (int)streng[i];
++i;
}
Forum: C++ Jul 22nd, 2009
Replies: 9
Views: 301
Posted By kangarooblood
well i want it to have the same function as if i had written

dword[]="Loveyou";

like if I enter yuck inte the word string then
dword[0] =y
dword[1] =u
dword[2] =c
dword[3] =k
...
Forum: C++ Jul 22nd, 2009
Replies: 9
Views: 301
Posted By kangarooblood
well this is the whole code, ait's supposed to be a substitution cipher solver, and it works fine if replace the "word" variable with some letters.

#include <iostream>
#include <string.h>
...
Forum: C++ Jul 22nd, 2009
Replies: 9
Views: 301
Posted By kangarooblood
string word;
cout << "type in the word you want to be decrypted >> ";
cin >> word;
char dword[] = word;


this does't work, is it because yo can't use the line

char dword[] =...
Forum: C++ Jul 9th, 2009
Replies: 13
Views: 15,210
Posted By kangarooblood
could you give me an example of how a program that changes the wallpaper to flower.jpg, would look like?
Forum: Geeks' Lounge Jul 5th, 2009
Replies: 75
Views: 4,755
Posted By kangarooblood
Well I haven't really seen any breathtaking movie but, the best so far is >>The Runaway Jury<< I love it, if you haven't seen it the do it!
Forum: Geeks' Lounge Jul 5th, 2009
Replies: 54
Views: 4,519
Posted By kangarooblood
I think humanity will destroy it self, we might start some war, pollute our planet so you could no longer live there, maybe the magnet fields will move and the sunstorms will reach the earths...
Forum: C++ Jul 5th, 2009
Replies: 1
Views: 316
Posted By kangarooblood
what's wrong with this code, when i try to make the pyramid, it's always the same height of the pyramid. and somehow onumber always has the value of 20, WHY??!!
Here is the code and I'll also...
Forum: C++ Jul 5th, 2009
Replies: 9
Solved: char help
Views: 282
Posted By kangarooblood
Thank You, at last it works!!!
Forum: C++ Jul 5th, 2009
Replies: 9
Solved: char help
Views: 282
Posted By kangarooblood
sorry but it doesn't if i type in kevin it outpup "kevin, what a lovely name"
Forum: C++ Jul 5th, 2009
Replies: 9
Solved: char help
Views: 282
Posted By kangarooblood
Since the very first time I programmed c++ I've been trying to make a program that looks like this

#include <iostream>

using namespace std;

int main()
{
char name;
cout << "please...
Forum: C++ Jul 5th, 2009
Replies: 7
Views: 2,475
Posted By kangarooblood
this works for me, and yes I think it only works with char. Sorry to bother you, I thought it worked with int to.


#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
Forum: C++ Jul 5th, 2009
Replies: 4
Views: 484
Posted By kangarooblood
well I'm going to use the headers later, like adding some color and so on. And when I overcome the printable range (for the moment) nothing happends, then it's just not a substitution cipher and it's...
Forum: C++ Jul 4th, 2009
Replies: 7
Views: 2,475
Posted By kangarooblood
well actually you can still write as much as you want to but the input variable will only consist of max 30 signs
Forum: C++ Jul 4th, 2009
Replies: 8
Views: 924
Posted By kangarooblood
use the iomanip header

[code=c++]
#include <iomanip.h>
#include <iostream>

using namespace std;

int main()
{
Forum: C++ Jul 4th, 2009
Replies: 7
Views: 2,475
Posted By kangarooblood
use the iomanip header


cin.width(30); // reads max 30 characters/numbers
cin >> input;
Forum: C++ Jul 4th, 2009
Replies: 4
Views: 484
Posted By kangarooblood
well it's supposed to give differet solutions to a Substitution cipher (http://en.wikipedia.org/wiki/Substitution_cipher)
it should be writing a possible solutions and if it's the correct then...
Forum: C++ Jul 4th, 2009
Replies: 4
Views: 250
Posted By kangarooblood
You could use a much easier type of game, here's a link from where you could get the code: http://brom8305.blogspot.com/2009/06/c-tic-tac-toe-script.html

try it out!
Forum: C++ Jul 4th, 2009
Replies: 4
Views: 484
Posted By kangarooblood
Been trying to make a substitution cipher decrypter, but it isn't working especially good. so I thought I might could get some help with it.


#include <iostream>
#include <time.h>
#include...
Forum: C++ Jun 24th, 2009
Replies: 5
Views: 464
Posted By kangarooblood
thanx for the loop tip, I tried to make a loop before but constructed it wrong, As you can see I have changed my question a little (I discovered that I had written char instead of int) do you know...
Forum: C++ Jun 24th, 2009
Replies: 5
Views: 464
Posted By kangarooblood
Have created a simple bingo game, I'm going to add color later (why I have used the SetConsoleTextAttribute). The problem is that the X i replaced by 88, I know why (I think), it's becuse it's a int...
Forum: C++ Jun 24th, 2009
Replies: 5
Solved: Is it possible?
Views: 271
Posted By kangarooblood
Thank you, this helped a lot!

just one question, could you use any othe colors then blue, green, red?
Forum: C++ Jun 22nd, 2009
Replies: 5
Solved: Is it possible?
Views: 271
Posted By kangarooblood
does anyone of you lot know a way to use colors in a program compiled in Dev C++, except for the

system("color a");

function?

and I'd also be glad to know another way to clear the screen,...
Forum: Geeks' Lounge Jun 22nd, 2009
Replies: 61
Views: 3,997
Posted By kangarooblood
I agree, IE is out of date and it doesn't have all good functions, and not soo many add-ons either...
Forum: C++ Jun 22nd, 2009
Replies: 5
Solved: Need help!
Views: 238
Posted By kangarooblood
hey!! it works! Thank you!!!

I had already fixed the player2=player2-hit;
but the other tip was great!
Forum: C++ Jun 22nd, 2009
Replies: 5
Solved: Need help!
Views: 238
Posted By kangarooblood
I've been trying to do a really easy game here, the thing is that the when a player reaches 0, it just keep going to -5 and such like. WHat's wrong?


#include <iostream>
#include <cstdio>...
Forum: C++ Jun 22nd, 2009
Replies: 11
Views: 608
Posted By kangarooblood
to add text into an already existing file use the

ios::app

function

and to read a file use the

ios::in
Forum: C++ Jun 21st, 2009
Replies: 9
Views: 417
Posted By kangarooblood
well... if you ever get tired of books then try this tutorial http://www.youtube.com/watch?v=Jud497WjF-E&feature=SeriesPlayList&p=A68C1F33757B4A38&index=1

this is the first lesson, then it's just...
Forum: C++ Jun 21st, 2009
Replies: 45
Views: 1,542
Posted By kangarooblood
...
Well maybe you could learn the code, when you see it.
Forum: C++ Jun 21st, 2009
Replies: 45
Views: 1,542
Posted By kangarooblood
Sorry, it's a habit to use system("pause"); I'm trying to get used to not do, i did it in my last update of my tic tac toe instead of system("pause"); I used cin.get() and I promise to not give away...
Forum: C++ Jun 21st, 2009
Replies: 10
Solved: What is wrong?
Views: 461
Posted By kangarooblood
#include <windows.h>
#include <iostream>
#include <cstdlib>
#include <conio.h>
#include <stdio.h>
#include <sstream>
using namespace std;

int main()
{
Forum: C++ Jun 21st, 2009
Replies: 10
Solved: What is wrong?
Views: 461
Posted By kangarooblood
http://www.youtube.com/watch?v=zcev82OMW1E&feature=PlayList&p=A68C1F33757B4A38&playnext=1&playnext_from=PL&index=9

here is the tutorial I've used
Forum: C++ Jun 21st, 2009
Replies: 10
Solved: What is wrong?
Views: 461
Posted By kangarooblood
well actually i looked at some tutorials when I made this, I had some questions about what the best way to do certain stuffs were, and in the tutorial that I used there was no shutdown code. And by...
Forum: C++ Jun 21st, 2009
Replies: 10
Solved: What is wrong?
Views: 461
Posted By kangarooblood
well it does help, now it's not just shutting down, but every time I make a move I win, so it's still not working. D'you have any ideas why?
Forum: C++ Jun 21st, 2009
Replies: 45
Views: 1,542
Posted By kangarooblood
This would do it...

#include <iostream>
#include <string>

using namespace std;
int main()
{
char Team1[40];
char Team2[40];
Forum: C Jun 21st, 2009
Replies: 12
Views: 791
Posted By kangarooblood
this is the answere:

#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <windows.h>
#include <time.h>
#include <fstream.h>

using namespace std;
Forum: C++ Jun 21st, 2009
Replies: 10
Solved: What is wrong?
Views: 461
Posted By kangarooblood
I'm quite new too C++ but finally my experience is good enough to actually create something, that's what I thought... So I triedto make this easy Tic Tac Toe Game and I think i got it all right but...
Showing results 1 to 38 of 38

 


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

©2003 - 2009 DaniWeb® LLC