Heyy daniweb!
I have a couple questions that need answering :)

1. Is there a way, in C++ to do a do - if loop?
2. Can there be a way to do something like:

#include <iostream>
int main()
{
    if (g == string) // if something were to EQUAL a string and not a specific value
    //or
    if (g !=> 4) //if a variable does not equal a value greater than another value
    return 0;
}

3. A way to convert C++ to C# or C++ to java, ect.
4. A way to do flashing console text
5. Easier-to-use C# libraries/headers/ect (WHATEVER THEY'RE CALLED :P)

Thanx pplz from Earth and beyond.

P.S. I know there is some info here about C#. It kinda just got randomly thrown in there.

> 1. Is there a way, in C++ to do a do - if loop?
You might need to explain how the logic of a do - if loop works. Edward can think of more than one way, but this one is intuitive.

if (condition) {
    do {
        // Stuff
    } while (!done);
}

> 2. Can there be a way to do something like:
The sample is confusing.

> 3. A way to convert C++ to C# or C++ to java, ect.
Yes, but not an automated way to the best of Ed's knowledge. ;)

> 4. A way to do flashing console text
Yes, but it depends on the OS.

> 5. Easier-to-use C# libraries/headers/ect
C++.NET can interface with the .NET framework. It is not as clean as C#, but the ease of the framework is still there.

> 1. Is there a way, in C++ to do a do - if loop?
You might need to explain how the logic of a do - if loop works. Edward can think of more than one way, but this one is intuitive.

if (condition) {
    do {
        // Stuff
    } while (!done);
}

> 2. Can there be a way to do something like:
The sample is confusing.

> 3. A way to convert C++ to C# or C++ to java, ect.
Yes, but not an automated way to the best of Ed's knowledge. ;)

> 4. A way to do flashing console text
Yes, but it depends on the OS.

> 5. Easier-to-use C# libraries/headers/ect
C++.NET can interface with the .NET framework. It is not as clean as C#, but the ease of the framework is still there.

Ok
1. Thanks for the example
2. Ok I want to:
A) Create an if function to tell if a variable is equal to that data type
B) do an if () for an equation that does not equal greater than a number
3. I figured out a way to convert
4. My OS is Windows XP Pro SP3, and I'd kinda like a decent variety of colours :P
5. Where can I get this?

Edited 6 Years Ago by spartan118: n/a

> A) Create an if function to tell if a variable is equal to that data type
> B) do an if () for an equation that does not equal greater than a number
Not so much. C++ is strongly typed, so that kind of variant type behavior is awkward. Do a google search for Boost::any if you still want a variant type. :)

> 4. My OS is Windows XP Pro SP3, and I'd kinda like a decent variety of colours
MSDN has console functions that will do that for you. SetConsoleTextAttribute() is the one for colors. There is no flash color though, you need to clear the text, change the color, and print the new text on a timer.

> 5. Where can I get this?
The only compiler for C++.NET is Visual C++. You can learn more about it from wikipedia.

This article has been dead for over six months. Start a new discussion instead.