Sunday, August 2, 2009

How to convert C code to Java code?Is there any editor/tool for that?

I've never been really great with either language, but googling "convert c to java" gives a BUNCH of results on how to do it. If you can do it manually, you can most likely find a program to do it. Click the link below for google results...

How to convert C code to Java code?Is there any editor/tool for that?
http://www.planetsourcecode.com/vb/scrip...





http://www.planetsourcecode.com/vb/scrip...





http://www.planetsourcecode.com/vb/scrip...


Who knows where can i find a deadlock simulator code for C++ ?

i wanna study deadlock simulator in c++ , i want its code and its algorithm , who knows where i can find the code and resources ?

Who knows where can i find a deadlock simulator code for C++ ?
You too Lazy to be a programmer .


http://en.wikipedia.org/wiki/Dining_phil...
Reply:try to go to www.planetsourcecode.com and find what code you want.....i think thats hard to find and if you want to know about deadlock id rather suggest that you should surf the web....there are many of them in the web....


A c++ code that generate factorial of any number?

oh the very first recursive example =)...lets see





int factorial(int number) {





if(number %26lt;= 1) return 1;





return number * factorial(number - 1);





}

hamper

Write c code for folliwing on the center of screen?

1


1 2 1


1 2 3 2 1


1 2 3 4 3 2 1

Write c code for folliwing on the center of screen?
There are many ways to do this. I don't want to do your homework for you, but this (untested) code should get you started.





int min, max,


min = 1;


max = 4;





for (int i = min; i %26lt;= max; i++) {


for (int j = min; j %26lt;= i; j++) {


cout %26lt;%26lt; j;


}


for (int k = i; k %26gt;= min; k--) {


cout %26lt;%26lt; k;


}


cout %26lt;%26lt; "\n";


}


A c++ code that generate a student grade using switch method?

#include %26lt;iostream%26gt;


using namespace std;





int main()


{


char test;





cout %26lt;%26lt; "enter grade";


cin %26gt;%26gt; grade;








switch ( grade ) {





case 50 :





cout %26lt;%26lt; "You Failed";





case 60 :





cout %26lt;%26lt; "You Just made it";





case 70:





cout %26lt;%26lt; "You passed";





case 80:





cout %26lt;%26lt; "good job";





case 90:


cout %26lt;%26lt; "wow a 90";





case 100:


cout %26lt;%26lt; "way to go you got a 100";





default :


// Process for all other cases.








}





}





you should be able to work off this if i am understanding your question correctly

A c++ code that generate a student grade using switch method?
Most grading systems are like this: 65 and lower: F, 70-75: D, 75-80-C, etc.... Notice it's all 5 units apart, and the grades are from 0 to 100. So take the grade and divide it by 5. Now your result is between 0 and 20. 20 is an A+, 19 is an A, 18 is a B+, etc... I think you can see how this could easily be a switch statement.


A c code that allows one to enter scores for 10 subjects for each student then compute & display average?

without cheating on your homework you should use the following elements:





stdio.h


printf()/scanf()


an array to store the scores


a loop that loops over the array (10 times)

A c code that allows one to enter scores for 10 subjects for each student then compute %26amp; display average?
Do you want it for an assignment?


Using C# code how can I get the all curren running applications ( not proccesses ) thanx in advance .?

using System.Diagnostics;





Process[] myProcesses = Process.GetProcesses();





for(int i=0;i%26lt;myProcesses.Length;i++)


{


Console.WriteLine ( myProcesses[i].MainWindowTitle );


}

bloom