Hi,
What is the process you want to do with the bmp images?
For eg., display the bmp image
Also check this link.
Read BMP Images
Regards,
M.Sivadhas....
User Profile
Collapse
-
Hi,
In C++, you can't pass a string variable to the switch statement.
You can pass only the integer variable.
Here is an example of using the switch statement.
Code:#include <iostream.h> #define CHOICE_INCHES 1 #define CHOICE_METERES 2 #define CHOICE_QUIT 3 int main () { int nChoice = 0;
Leave a comment:
-
Leave a comment:
-
Hi,
The thread must have different thread id.
Regards,
M.Sivadhas.Leave a comment:
-
Yes,
In the first expression, the result will come like this.
Code:result = 0.57 * (100 - 1) / (100 + 200) result = 0.57 * 99 / 300 result = 56.43 / 300 result = 56.43 / 300 result = 0.1881
In the second expression, the result will come like this.
Code:result = 0.57 * ((100 - 1) / (100 + 200)) result = 0.57 * (99 / 300) result = 56.43 /
Leave a comment:
-
Hi,
I think, I solved all the compilation errors.
Code:#include <iostream> #include <iomanip> #include <fstream> #include <string> #include <cmath> using namespace std; void NamePrompt(string&); void SearchName(string&, string); int main() { ifstream myInfile;
Leave a comment:
-
Hi,
You may use like this.
Code:result = 0.57 * (double(100 - 1) / double(100 + 200));
M.Sivadhas.Leave a comment:
-
Hi,
Try to use linked list to achieve your goal.
Regards,
M.Sivadhas....Leave a comment:
-
-
Hi Palani,
I think void * will act as a generic pointer.
Regards,
M.Sivadhas....Leave a comment:
-
-
Hi,
Do u have any code?
If have please post it.
Regards,
M.Sivadhas.Leave a comment:
-
Hi,
Try this...
Code:#include <iostream> using namespace std; int main() { int nScore = 0; char cGrade = '\0'; // Get the total Score. cout << "\nEnter total Score (int, must be <= 100) : " ; cin >> nScore ; //Compute Grade if (nScore
Leave a comment:
-
Hi,
This code is working well.
Code:#include<stdio.h> int main() { int nos = 0; printf("Enter number:"); scanf("%d",&nos); if(nos % 2 == 0) printf("Even number\n"); else printf("Odd number\n"); getch(); return 0;
Leave a comment:
-
Hi,
You can also do like this.
Code:#include <iostream> using namespace std; void deleteS(char * a_pszInput, char *a_pszOutput) { char chTemp = '\0';; while(*a_pszInput !=0) { chTemp = *a_pszInput; if (chTemp != 'S' && chTemp!= 's') { *a_pszOutput
Leave a comment:
-
Hi,
A shallow copy of an object copies all of the member field values. This works well if the fields are values, but may not be what you want for fields that point to dynamically allocated memory. The pointer will be copied. but the memory it points to will not be copied -- the field in both the original object and the copy will then point to the same dynamically allocated memory, which is not usually what you want. The default copy...Leave a comment:
-
Hi,
Can I know which IDE you are using to write the program?
Because this may be due to the IDE Settings.
Regards,
M.Sivadhas....Leave a comment:
-
Hi,
on/off representes 1/0 right.
If it is 1/0 means no need to convert to decimal.
Regards,
M.Sivadhas.Leave a comment:
-
Hi,
Can you post your full code?
Can I know from where you are getting these values?
Code:sn[0] = 0x10; sn[1] = 0x2E; sn[2] = 0x22; sn[3] = 0x47; sn[4] = 0x00; sn[5] = 0x08; sn[6] = 0x00; sn[7] = 0x35;
Regards,
M.Sivadhas.Leave a comment:
-
Hi,
Can I know why you are giving the const keyword in there?
Regards,
M.Sivadhas....Leave a comment:
No activity results to display
Show More
Leave a comment: