[Solved] Connect to client’s SQL Server [closed]

[ad_1] It’s better to store sql server connection string in your configuration file (if you are on .net framework then it’s App.Config for desktop apps and Web.Config for web apps) which you can update independently from your compiled app. And then you will be able to connect any sql server you have access to. 0 … Read more

[Solved] Why does this work?Does the ANSI translate values that are written in hex “form” into their decimal equal when used in mathematical functions?

[ad_1] Why does this work?Does the ANSI translate values that are written in hex “form” into their decimal equal when used in mathematical functions? [ad_2] solved Why does this work?Does the ANSI translate values that are written in hex “form” into their decimal equal when used in mathematical functions?

[Solved] Should C++ file read be slower than Ruby or C#?

[ad_1] Based on the comments and the originally posted code (it has now been fixed [now deleted]) there was previously a coding error (i++ missing) that stopped the C++ program from outputting anything. This plus the while(true) loop in the complete code sample would present symptoms consistent with those stated in the question (i.e. user … Read more

[Solved] C# Sudoku Board Generator [closed]

[ad_1] Something like this will provide a basic console output of your board. foreach (var cell in board.Cells) { int x = cell.Column; int y = cell.Row; Console.SetCursorPosition(x * 2, y * 2); Console.Write(cell.Value.HasValue ? cell.Value.Value.ToString() : ” “); } Console.ReadKey(); I’m multiplying the X and Y by 2 for the purpose of separating the … Read more

[Solved] Linq join between two Lists [closed]

[ad_1] var result = studentList .Join(markList, m => m.Id, s => s.Sid, (s, m) => new { s, m }) .GroupBy(t => t.s) .Select(g => new { Student = g.Key, MarksCount = g.Count(), Marks = g.Select(x => x.m).ToList() }) .ToList(); MarksCount – total marks for this student Marks – List of marks for this student … Read more

[Solved] C++ quadratic equation using factorization

[ad_1] Building on what @Aditi Rawat said, I’ve wrote a little program that does what you need using the quadratic roots formula. Not sure if you need to do it that way or not but this solves the problem: #include <iostream> #include <cmath> using namespace std; int main() { double a, b, c; cout<<“Enter a: … Read more

[Solved] C++ Open software with argument

[ad_1] To start a different software than your own program (with or without arguments) you can use system() from <cstdlib> header. #include <cstdlib> int main(int argc, char* argv[]) { system(“start putty -ssh user@server -pw password”); return 0; } If you want to evaluate the arguments to your own program, you can use argv[]. argv[0] holds … Read more