If we have to install service make sure, .interframework install already. Goto folder like:- C:\Windows\Microsoft.NET\Framework\v2.0.50727 C:\Windows\Microsoft.NET\Framework\ v2.0.50727 (Note: version folder can be change as the version change.) Open command prompt by writing the "cmd" in the box of file/folder location shoes Run the command : "installUtil.exe pathofexeofthe service"
#include <bits/stdc++.h> using namespace std ; // this is the program to find the number of 1's bit in a number int count1nsBit ( int n ) { int count = 0 ; while ( n ) { n = n & n - 1 ; count ++ ; } return count ; } int main () { int n ; cin >> n ; cout << count1nsBit ( n ); return 0 ; } /* input an output tast are comments */
package layouts;
ReplyDeleteimport java.awt.BorderLayout;
import javax.swing.JFrame;
public class BorderLay {
public static void main(String[] args) {
JFrame f = new JFrame("Border Layout Example");
f.setBounds(300,200,500,300);
f.setLocationRelativeTo(null);
f.setVisible(true);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container c = f.getContentPane();
}
}