I think it's not working, but is it possible to do something like that to avoid that hard typing?
char c;
if( c == ('ą' ||...
Type: Posts; User: Aeoskype
I think it's not working, but is it possible to do something like that to avoid that hard typing?
char c;
if( c == ('ą' ||...
Let's say i have some text in char array
char text[] = "Hello my friend";
How can i get a seperate words from it? It should be like
char a[] = "Hello";
I get an error when i try to compile this code. I tried to allocate memory in main function and that works. But why it doesn't work in function? I think that there is something wrong with function...
Well i should created other object name, not class. But got idea.
So basically i need pointer to point to that new object i created?
I know that operator new allocates memory, but when should i use it?
what is the difference between this?
MyClass class;
and this?
Is it possible to access file properties from c++ program? For example, user could drag file to program and then it displays a detailed information about file like date modified, size, type and etc..
Visual studio 2008. It was working but after program crash stopped working. And figured it out, thanks.
Any hint how to do it? My intelliSense left me so its a bit hard now..
Well i know that garbage collector will collect it, but i need to delete it from screen.
Hello, so im facing problem with labels. Im writing word guessing game in windows forms. I have function to create labels and store them into array. But when word is guessed, i need to delete labels,...
Hello, so im writing a tic tac toe game with AI. There is no possible human win . Everything works fine ( it should work fine) , but i want to ask you what could i improve in this game? Maybe make...
How do i solve it without array? Can you give me any advice?
It allows to specify with variable, like this:
int a;
cout << "Enter the size of array:" << endl;
cin >> a;
int arr[a];
Good evening, so my problem is commented in code. Original task is
here. Everything else is working just fine, but i need a help how to make that array size changeable.
#include <iostream>
...
But how can i make it work? I tried to in function Save to declare key as char, but then it says: cant convert 'char*' to 'char'.
You know, to rule the world :)
Hello, so im writing a basic keylogger and i want to add data to log file, but it says that i cant convert char to int. Everything else works fine.
Any ideas?
#include <iostream>#include...
Ok, that code wasn't very good so i started from scratch. I think i have improved something, but still function forceStrike doen't work. After any move it returns true. Or it is true before return?
...
What's the difference between placePiece and InitBoard? It's just a function name
Ok, so i did all you said guys, thanks for help. Now im facing problem how to insert function forceStrike (at the end) into main function. That function should check for piece if it is nearby and...
Big thanks to Salem, i have improved placing pieces and piece movement. But still don't know how to check if piece is out of board.
#include <iostream>
#include <cstdlib>
using namespace...
Ok, but i think i need to study a little more with this, i find it a bit difficult to understand how it works. (Im kinda stupid lol). But anyway, how i could use this bool isValidMove? How im...
Hi all, i'm writing checkers game and problem is that i can't get a right code to do a valid move. I mean i can move piece to any place. It should work only with two upper left and right sides. Any...
try adding
int main()
{
}
at the end of program.
Yes!!! Finally finished my checkwin function:
int checkwin(){
for(int i=0; i<4; i++) // check for horizontal
{
for(int j=0; j<6; j++)
{
if(place[j][i] ==...
Ok, but could you write some little code? Just a start of it, because i don't know how to start.