No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
To all the c++ experts, I have some doubt on how does the convertion works. If for instance, I want to convert a hexadecimal eg. 199 to to decimal, I use printf("%d",199); but what if I want the hexadecimal 199 to be displayed in binary? What must is use? |
|
Dear experts, I am new to the subject of bitwise operator. I know some of the basics like the gates and how the gates function eg. and gate, or gate, exclusive nor gates. And also how to change decimal numbers to binary numbers. But I am not quite sure about … |
|
Guys, I have this question, when I run this program, the program suddenly stop and tell me it cannot be runned, could your please tell me my error thanks. Here is the code: [code=cplusplus]#include <iostream> using namespace std; int main() { int student,subject; int marks[student][subject]; int i,count; student=5; subject=3; //Getting … |
|
I am still new with fstream topic and I have some enquiries about using it. Based on the tutorial shown, I managed to understand a little about it but when I copy the first few lines, #include <fstream.h> void main { ofstream file; file.open("file.txt"); //open a file file<<"Hello file\n"<<75; //write … |