Search:

Type: Posts; User: Aeoskype

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: If statement

    by Aeoskype
    Replies
    3
    Views
    481

    If statement

    I think it's not working, but is it possible to do something like that to avoid that hard typing?


    char c;
    if( c == ('ą' ||...
  2. Replies
    2
    Views
    2,295

    Get word from char array

    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";
  3. Replies
    2
    Views
    1,216

    variable is being used without initialized

    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...
  4. Thread: operator new

    by Aeoskype
    Replies
    8
    Views
    3,027

    Well i should created other object name, not...

    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?
  5. Thread: operator new

    by Aeoskype
    Replies
    8
    Views
    3,027

    operator new

    I know that operator new allocates memory, but when should i use it?

    what is the difference between this?


    MyClass class;


    and this?
  6. Replies
    1
    Views
    1,009

    Acessing file properties

    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..
  7. Replies
    9
    Views
    1,116

    Visual studio 2008. It was working but after...

    Visual studio 2008. It was working but after program crash stopped working. And figured it out, thanks.
  8. Replies
    9
    Views
    1,116

    Any hint how to do it? My intelliSense left me so...

    Any hint how to do it? My intelliSense left me so its a bit hard now..
  9. Replies
    9
    Views
    1,116

    Well i know that garbage collector will collect...

    Well i know that garbage collector will collect it, but i need to delete it from screen.
  10. Replies
    9
    Views
    1,116

    Deleting labels

    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,...
  11. Replies
    2
    Views
    2,183

    Tic Tac Toe game

    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...
  12. Replies
    7
    Views
    737

    How do i solve it without array? Can you give me...

    How do i solve it without array? Can you give me any advice?
  13. Replies
    7
    Views
    737

    It allows to specify with variable, like this: ...

    It allows to specify with variable, like this:


    int a;

    cout << "Enter the size of array:" << endl;
    cin >> a;
    int arr[a];
  14. Replies
    7
    Views
    737

    Need help with solution

    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>
    ...
  15. Replies
    3
    Views
    916

    But how can i make it work? I tried to in...

    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 :)
  16. Replies
    3
    Views
    916

    can't convert char to int

    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...
  17. Thread: Checkers game

    by Aeoskype
    Replies
    11
    Views
    4,875

    Ok, that code wasn't very good so i started from...

    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?
    ...
  18. Thread: Checkers game

    by Aeoskype
    Replies
    11
    Views
    4,875

    What's the difference between placePiece and...

    What's the difference between placePiece and InitBoard? It's just a function name
  19. Thread: Checkers game

    by Aeoskype
    Replies
    11
    Views
    4,875

    Ok, so i did all you said guys, thanks for help....

    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...
  20. Thread: Checkers game

    by Aeoskype
    Replies
    11
    Views
    4,875

    Big thanks to Salem, i have improved placing...

    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...
  21. Thread: Checkers game

    by Aeoskype
    Replies
    11
    Views
    4,875

    Ok, but i think i need to study a little more...

    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...
  22. Thread: Checkers game

    by Aeoskype
    Replies
    11
    Views
    4,875

    Checkers game

    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...
  23. Replies
    22
    Views
    16,771

    try adding int main() { } at the end of...

    try adding
    int main()
    {

    }

    at the end of program.
  24. Replies
    21
    Views
    9,405

    Yes!!! Finally finished my checkwin function: ...

    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] ==...
  25. Replies
    21
    Views
    9,405

    Ok, but could you write some little code? Just a...

    Ok, but could you write some little code? Just a start of it, because i don't know how to start.
Results 1 to 25 of 34
Page 1 of 2 1 2