Forum: C++ Jul 22nd, 2009 |
| Replies: 9 Views: 301 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 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 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 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 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 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 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 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 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 Views: 282 Thank You, at last it works!!! |
Forum: C++ Jul 5th, 2009 |
| Replies: 9 Views: 282 sorry but it doesn't if i type in kevin it outpup "kevin, what a lovely name" |
Forum: C++ Jul 5th, 2009 |
| Replies: 9 Views: 282 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 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 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 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 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 use the iomanip header
cin.width(30); // reads max 30 characters/numbers
cin >> input; |
Forum: C++ Jul 4th, 2009 |
| Replies: 4 Views: 484 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 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 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 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 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 Views: 271 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 Views: 271 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 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 Views: 238 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 Views: 238 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 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 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 Well maybe you could learn the code, when you see it. |
Forum: C++ Jun 21st, 2009 |
| Replies: 45 Views: 1,542 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 Views: 461 #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 Views: 461 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 Views: 461 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 Views: 461 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 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 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 Views: 461 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... |