## [Solved] C# – I need to display a variable with an exponential [closed]

you can use unicode code points: Superscript digits \u2070\u00b9\u00b2\u00b3\u2074\u2075\u2076\u2077\u2078\u2079 Subscript digits U+2080 to U+2089 Example: var superscriptstring = “C\u2074”; var subscriptstring = “C\u2081”; solved C# – I need to display a variable with an exponential [closed]

## [Solved] Having trouble converting a decimal into a binary in C. No output [closed]

int main() { int k=0, i, r, nr, c, N[64]; printf(“Decimal Nr: “); scanf(“%d”, &nr); c = nr; if(nr==0) printf(“0”); else{ while (nr) { r = nr % 2; nr = nr / 2; N[k] = r; k++; } } // original number in variable c for (i = k-1; i >= 0; i–) { … Read more

## [Solved] C++ generate random numbers for a given seed [closed]

According to the documentation (which you really should read!): Returns a pseudo-random integral value between ​0​ and RAND_MAX Where RAND_MAX is implementation defined, but is guaranteed to be at least 32767. In fact, it often is 32767, and that appears to apply to you. The documentation also states: rand() is not recommended for serious random-number … Read more

## [Solved] what does this code do? and how it will look on dart? [duplicate]

&= means take only the bits that are set to 1 in both operands ~ reverses all bits, << moves the bits to the left n times, | combines bits from operands so hour = (bufm[1] &= ~((1 << 7) | (1 << 6) | (1 << 5))); // 128, 64, 32 hour = (bufm[1] … Read more

## [Solved] How do I put an image in VisualStudio with C#? [closed]

If it is WindowsForms that you are using, you can use the PictureBox control. 2 solved How do I put an image in VisualStudio with C#? [closed]

## [Solved] while loop exit, without well-known way [closed]

Use goto: This will only exit the while loop. while (true) { … if (some condition) { goto CLEANUP; } … } CLEANUP: … exit() the program: while (true) { … if (some condition) { exit (EXIT_FAILURE); /* OR, if in the `main()` function: */ return EXIT_FAILURE; } …. } abort() the program: while (true) … Read more

## [Solved] How to choose among two classes given a condition in c++? [closed]

Assuming you need to create object at compile time depending on a variable, you can try something like following class class1{}; class class2{}; int main( int argc, char *argv[] ) { constexpr bool variable =true; /* x is object of type class1 or class2 depending on compile time constant ‘variable’ */ typedef std::conditional<variable, class1, class2>::type … Read more

## [Solved] My double function is not working correctly [closed]

You are missing the data types. The right code is: using System; namespace Application { class MainClass { public int times2 (int number) { return number * number; } public static void Main (string[] args) { times2(5); } } } 3 solved My double function is not working correctly [closed]

## [Solved] String takes any value in c# Visual Studio [duplicate]

It is because of the “Hello World!” you need to escape the “, do this instead: “class SecLevel \\n { \\n static void Main()\\n{Console.WriteLine(\”Hello World!\”);}}” 0 solved String takes any value in c# Visual Studio [duplicate]

## [Solved] Filling a ViewList from an xml file [closed]

Have you looked at How does one parse XML files?, http://msdn.microsoft.com/en-us/library/cc189056%28v=vs.95%29.aspx, http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/efcb9fe3-8d1a-47b0-a35e-8415ac1a93bd/ or http://www.codeproject.com/Articles/7718/Using-XML-in-C-in-the-simplest-way ? At least one of those should prove useful. 1 solved Filling a ViewList from an xml file [closed]

## [Solved] If else the best option? [closed]

ok according to you comment and flowchart here is my suggestion to simplify it if (item.IsSet) { DialogResult isComplete = MessageBox.Show(“Complete set?”, “complete set?”, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (isComplete == DialogResult.No) // Break out } if(item.IsNew) { DialogResult goodQuality = MessageBox.Show(“Is the quality good”, “quality”, MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (goodQuality == DialogResult.No) //not accepted (break) } //if … Read more

## [Solved] I am really confused with this kind of compilation error( C ffmpeg Qt)

In Qt you can add this line to your .pro file to force the compiler to look there for header files. Change it to the folder where your header files are stored. INCLUDEPATH += <your path> 1 solved I am really confused with this kind of compilation error( C ffmpeg Qt)

## [Solved] How Do I Add DriveInfoEx.Dll In Project [closed]

Firstly: Go to the page of the project, which implements the DLL Then download the demo project (you need an account to do that), after you downloaded the archive, extract the content (or the DLL only). Right click on References –> Add New Reference…, Browse, then search for the DLL and reference it with a … Read more

## [Solved] Please Translate this from C# to SQL in plain english [closed]

The SQL query is probably something like: SELECT LastName FROM Providers WHERE LastName LIKE ‘PrefixText%’ ORDER BY LastName LIMIT count; — This may be TOP in MS SQL or ROWNUM in Oracle Which means: Give me all rows from the table Providers where the LastName column starts with PrefixText (whatever that variable contains). I want … Read more

## [Solved] How can I extract a string using C# Substring [closed]

Instead of splitting the useragent, you should use the properties already supplied the Asp.net Framework to detect the browser/os. Use this to get the browser name Request.Browser.Browser and browser version Request.Browser.MajorVersion to get the Os name Request.Browser.Platform and os version Request.UserAgent 1 solved How can I extract a string using C# Substring [closed]