49,761 Topics
| |
Hello people, I am using zbar library to detect barcode. I am able to compile and run their sample code in main.cpp Now if I make a class and include <zbar.h> in the header of that class, I get the following error : /usr/local/include/zbar/Exception.h:144: error: the default argument for parameter … | |
Can you give an idea how to create this pattern:7. Write a program to display the following pattern x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x … | |
can you help me how to display an equivalent color once an input letter matches its first character for example b is for blue, r for red and so on. letter colors b or B blue r or R red g or G Green y or Y yellow other Letter … | |
How do i reset the existing password in cpp and need that new password for starting the program everytime i start the program?? Please help. | |
What output is generated from the following code: cout << 2 * (5.0/2) << endl; | |
Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h): http://ideone.com/oJ6mI8 Here is the website for my library source file (MixedExpression.cpp): http://ideone.com/inEyqe Here is the website for my calculator client file (Calculator.cpp): http://ideone.com/EDTWeS The header file is correct. I … | |
#include<stdio.h> int main(){ printf("hello world"); getch(); return 0; } | |
how do i put a password, change password on my code because everytime i put it in, my program don't shows it it just jumping to my selection menu, and how do i delete informations that ive put on my program? this is my code. thank you in advance. [CODE] … | |
Thanks to Muschops and Schol-R-LEA I finally got my program working. However I decided to change my file format and replace the underlines with spaces and separate the data with a comma. I open the file and use getline to grab the data but I have an error that reads: … | |
write a program to request two integer number,x and y. If x falls within the range of -2 and 7, y is either 5 or 10, then the program will display ""within range". Otherwise the program displays "out of range". | |
I am trying to read from a text file and input the data into a struct. I have read through all the threads on this topic and have not been able to work out where I am going wrong. My text file is: > Plain_Egg 1.45 Bacon_and_Eggs 2.45 Muffin .99 … | |
given int a[]= {3,2,7,6,8,1,4,5} vector<int> v(a,a+8) use the stl copy algorithm to display the last 5 integers in the vector to cout with each integer on a seperate line. copy takes three argument. third argument is output container. In this case it is v.but v already have 8 elemenst. How … | |
Question: Well I have to input a number correctly with comma's and a decimal. My input would be 243,111.11 and the output would come out as 2,43,,111.11 Do I have to create additional for loops statements for each digits and check for comma's/decimal? I almost scrapped this code for attempting … | |
I have an application this is already license but in this application use my functionality put custom .afl file this file make in c++ make this .afl file as trial period.So how to make this .afl file as 7 day trial period.....i am beginner so plz help me... | |
I can't understand why this doesn't work, but when i enable char *s=s1 and use s wherever s1 is used it returns the correct output. char *mystrncat(char *s1,const char *s2, size_t n ) { // char *s=s1; while(*s1!='\0') { s1++; } while(n!=0 && (*s1++=*s2++)!='\0') n--; if(*s1!='\0') *s1='\0'; return s1; } | |
Hi to everyone.Can somebody help to : Write a program to display all the hour and minute values in a 24-hour clock from 00:00 to 23:59. | |
Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h): http://ideone.com/oJ6mI8 Here is the website for my library source file (MixedExpression.cpp): http://ideone.com/RSrshS Here is the website for my calculator client file (Calculator.cpp): http://ideone.com/U5F2O8 My question: I got the code … | |
I'm trying to write a program that prints out all prime numbers from 1 to 300. It isn't working the way I want it to. Right now it appears to have caused an infinite loop. Here is my code. [CODE]#include<iostream> #include<iomanip> using namespace std; int main(){ for(int i=0; i<=300; i++){ … | |
I am writing a program that outputs whether or not a number is prime. Can anyone help me find where my syntax error is? Also, i get that i = 3; i <= num; i++ would be true for it being a prime number from the other forums I have … | |
[code]#include <iostream> using namespace std; long int math; long int check; long int divider = 1; long int inputnum; void dividerp(); void counter(); void inputp(); void dividerp(){ math = inputnum/divider; if (math == 1 or inputnum == 2 or inputnum == 1){ cout<<"You do have a prime number there!"<<endl; system("PAUSE"); … | |
I'm in serious need of help with a C++ based prime number generator. I have the program to create and run the code, but i dont have the knowledge to develop the code and I'm looking for one of you guys to build the code for me. I need a … | |
Q1: Trace the partial of program below: 1. int v = 8, *r, *s; 2. int *p; 3. int q = 100; 4. p = &q; 5. r = p; 6. *p = 20; 7. p = new int; 8. *r = 30; 9. q = v; 10. s = … | |
Downloaded and installed latest RE2. When building simple test code with Xcode 5, build fails. #include <iostream> #include <string> #include <re2/re2.h> using namespace std; int main(int argc, const char * argv[]) { unsigned long ulValue = 0L; string sMultiple; string sMatch = "^(\\d+)([KkMm])"; string sData = "2M"; if (RE2::FullMatch(sData, sMatch, … | |
see these class: class test { public: void virtual Created(){} void test() { Created(); } }; class test1 : public test { void Created(); void test1(): test { Created(); } } test1; void test1::Created() { cout << "created test1"; } (these code wasn't tested, but you get the point) can … | |
i want to know what should i do first , or the main points that i should start with pleaes help me :( Project: General Distribution Center This project aims to develop a C++ program that support a General Distribution Center using object oriented concept. The General Distribution Center has … | |
Should I loop through tiles and delete each one? Or is there a better way? if(tiles->at(i) != NULL) delete tiles->at(i); std::vector<Tile*> tiles; //TODO: need to fix this to match sprite sheet tiles size for (int y = 0; y < 10; y++) { for (int x = 0; x < … | |
i need help with a complete source code for c++ program for newton raphson method .the program should have these attributes;one double data member,class,and also have a constructor to initialize the data member as it cannot be negative. The function should return the square root of the data member. The … | |
WinHttpGetProxyForUrl always returns ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT when I test it with the below code. See [url]http://msdn.microsoft.com/en-us/library/aa384122%28VS.85%29.aspx[/url] for what I have tried to base this on. Can anyone see any flaw in my code that causes this error to always return? I have tested it with many pac files and this is always … | |
I'm having a vowel count problem when I build the code. #include <iostream> #include <string.h> using namespace std; char str1[51]; int vowelA = 0, vowelE = 0, vowelI = 0, vowelO = 0, vowelU = 0; int vCount() { int ii; // Counter cout << "\nResult: " << endl; cout … | |
Hey everyone, So, I need help understanding why I'm not able sort my code: here is my code (so far) for my selection sort. I have only written the iterative form of Selection Sort, but I know how to do it recursively as well (which is required for my homework). … |
The End.