Page 1 of 1

Coding helps need for Me on my Wolf 3D works

PostPosted: 14 Dec 2016, 22:53
by Officer-Michael John
Hi members! I work on many Wolf 3D mod +2 convert to SDL. I found so problems whats I can‘t fixing. :(
Please help for Me. I not like working on many mod.

Thanks:Officer-Michael John.

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 17 Dec 2016, 07:15
by linuxwolf
You need to learn C/C++. If you have any questions on C/C++ ask here. I will help with C/C++. I will NOT help with Wolf3d feature coding.

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 17 Dec 2016, 11:37
by Officer-Michael John
Already started to learn C++ programming. I got a PDF file which provides the C++ programming. I like compiling,but I get an Error:[Linker error] undefined reference to `WinMain@16'

Here it code:

Code: Select all
double sqrt(double arg)
{
  //the square root calculation code
}

void f()
{
  double root2 = sqrt(2);
  //...
}

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 18 Dec 2016, 00:42
by linuxwolf
You need main. Check book how to add main entry point routine..

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 18 Dec 2016, 10:32
by Officer-Michael John
I added main.

Code: Select all
#include <iostream>

int main()
{
//  std::cout << "Hello world!\n";
}

double sqrt(double arg)
{
  //the square root calculation code
}

void f()
{
  double root2 = sqrt(2);
  //...
}

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 18 Dec 2016, 13:18
by linuxwolf
Compile as console application, not Windows app.

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 18 Dec 2016, 15:25
by Officer-Michael John
How do I set it to not turn off for Windows app?

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 18 Dec 2016, 15:39
by linuxwolf
What IDE are you using?

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 18 Dec 2016, 16:43
by Officer-Michael John
I use Dev C++ compiler on programming and coding.

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 19 Dec 2016, 11:24
by linuxwolf
My assistance only goes so far as C/C++ programming language itself.

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 19 Dec 2016, 21:48
by Officer-Michael John
What do I learn from C++?

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 19 Dec 2016, 22:41
by linuxwolf
Learn these topics:

    - Classes
    - Class constructors/destructors
    - Standard containers (e.g., std::vector, std::map)
    - Namespaces
    - Defining templates
    - Operator overloading
    - Polymorphism and class inheritance
    - Parameter passing by value, by reference and by pointer
    - Const vs non-const
Any good book on C++ will cover those.

Learn C before C++.

When you are good at C/C++ then you can fix as much bugs as you like. Enjoy.

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 20 Dec 2016, 10:59
by Officer-Michael John
Already started to learn Classes topic.

For 1st Easy Classes.

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 20 Dec 2016, 12:57
by linuxwolf
Good.

Re: Coding helps need for Me on my Wolf 3D works

PostPosted: 20 Dec 2016, 13:57
by Officer-Michael John
I'll tell you I do not know or do not understand.