49,761 Topics
| |
In my program, I have to input a word and then a character. The program will tell me how many times does the character appear in the word...my problem is that I have to find this character with the find(str,ind)...I know the ind is the index and can be manipulated … | |
Every time i compile this code i come up with a additional set of numbers, but i don't know why. [CODE] #include <iostream> #include <stdlib.h> #include <iomanip> #include <string> #include <fstream> using namespace std; void calculateAverage(double quiz1, double quiz2, double quiz3, double test4, double& SAverage); int calculateGrade(double grade); int main() … | |
Hi! I have a windows mobile 5 device, and I would like to make some programs for it. I need a free development environment (compiler and librarys) that runs on winxp. It would be a very big help if I could use my NetBeans which I have experience with. It … | |
[CODE] void open_key(HKEY* Key , HKEY key , LPCTSTR subkey) { cout << Key[1] << endl; RegOpenKeyEx(Key[1] , subkey , 0 , KEY_ENUMERATE_SUB_KEYS | KEY_QUERY_VALUE , &key); } int main() { HKEY keys[] = {HKEY_CLASSES_ROOT , HKEY_CURRENT_USER , HKEY_LOCAL_MACHINE , HKEY_USERS , HKEY_CURRENT_CONFIG}; open_key(&keys[1] , hkey , "Software"); } [/CODE] … | |
If there is a pointer member in a class. Eg.: [CODE]Class XYZ { Int *x; Char *c; }[/CODE] Then in such a case what all precautations do we need to take while handling such a member and the class? | |
Okay just so you all are aware before reading this, yes this is a homework assignment. No I have no code for it yet and no I don't want you all to solve it for me. Now the reason I'm asking for this kind of help is because I'm in … | |
Hi all - hope you can help me with this. I'm trying to search through a vector of struct's; I'm able to loop through the vector using a simple for() loop, but i'm unable to use the generic find(). Secondly i want to delete a element if there's a match. … | |
I wonder how it is possible to retreive a string from a function that is generating this string. How is it possible to get the string "SendThis" when presssing the button1 in this case and declare it to getgenerateString ? [code] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { String^ getgenerateString … | |
Hi buddy,, can u jst refer me some links or share sum of ur own experiences about creating a text editor.....dat wut exactly the text editor is all about. I dont bother bout the inferface of it......i jst need how the core looks like....i.e. data structure implementation and all that....hope … | |
| |
i need help starting this program..........Write a program that finds and outputs the minimum element in an array int A[10] | |
Hey everyone. I want to call dateConversion and send along the date string which I do with this "dateConversion(dateString);" I want that to print the month day and year. I will have to do it at this line "cout << "on " << date << endl << endl;". When I … | |
hello everybody! i have a question that i want to reverse the queue in BigO(1) time and space without effecting its enqueue, dequeue ,print and other function. thnx in advance 4 answering | |
Okay, so I am EXTREMELY new to programming and my teacher is not exactly a great one, sadly. I am attempting to sort a string alphabetically. For example: Prompt to enter name: Alex Joe John Bill Cait Then sort and print: Alex Bill Cait Joe John Here's what I have … | |
hello guys, i want to programming a simple game. please see these picures first picture: [URL="http://img519.imageshack.us/img519/6323/boardf.jpg"]http://img519.imageshack.us/img519/6323/boardf.jpg[/URL] second picture: [URL="http://img151.imageshack.us/img151/9964/18245360.jpg"]http://img151.imageshack.us/img151/9964/18245360.jpg[/URL] last picture: [URL="http://img25.imageshack.us/img25/3871/21456530.jpg"]http://img25.imageshack.us/img25/3871/21456530.jpg[/URL] "Jump over a token and capture the token. Every move must be a jump! Only horizontal and vertical moves are allowed, no diagonal movement in the game. The … | |
I m designing scientific calculator in vc++ technology I used an edit box for the text to appear and some buttons for the operators and numbers I enter 1st operand by clicking the button and then the operator.Now I want to clear the edit box to enter the second operand … | |
Write a class datetype it can perform the following operations on a date , in addition to the operation already defined : 1-set the month 2-set the day 3-set the year 4-return the month 5-return the day 6-return the year 7-test the year is a leap year 8-return the number … | |
I have a little spoky problem here. I really cant understand what it is. I am reading a file that is completely empty. But still the second MessageBox is showing this string: "22" I cant wrap my head around why if( line != "" ) is executing and no character … | |
Hello, I have a problem, I needed a change from C++ to C#. help anyone? I made it from this: ( This is script in C++ [CODE]using namespace System; using namespace System::Text; using namespace System::Net; using namespace System::Net::Sockets; String^ chr(String^ str) { Char^ c = Convert::ToChar(Convert::ToInt32(str)); return Convert::ToString(c); } Int64^ … | |
hello guys, i have a simple question which is how can i declare a variable to accept character and number at one time for example, i ask the user to input 'a1' to do something waiting for you | |
Hi guys,I was interesting,how to write a function,to determine the nearest square number that is equal or greater to the length of the string( for example 16 is the next square number after 13) I don't even know what is the mechanism of this function:-/ | |
Hi everybody. How can I write a program with C++ that finds pattern. For example if we give the program 3 pairs like (2,5),(5,11),(1,3) and then enter 6 the program returns 13. note:the pattern was 2x +1. Thank you. | |
Hi. I'm new to C++, and I'm having problems understanding a certain type of function argument. I wrote this code to try and understand it, and it didn't help much. :) [code=cpp] #include <iostream> using namespace std; class TestClass { public: int a ( TestClass arg ); int b ( … | |
Hi Guys, Im having issue with the following code. I am getting the following error? could someone please assist? [code]#include <iostream> #include <iomanip> #include <string> #include <vector> #include <fstream> #include <stdlib.h> using namespace std; class employee { /* Employee class to contain employee data */ private: string surname; double hourlyRate; … | |
Hi, I have to create an RSS feed reader in C++. I have worked with Expat Xml parser but only for parsing purposes. Can I use the same to read feeds from websites ? If not, please recommend what C++ libraries can be used to achieve the same. Thanks, Vani | |
Hi all, i,m trying to use A* algorithm to do my task; this is the code [code] //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // STL A* Search implementation // (C)2001 Justin Heyes-Jones // // Finding a path on a simple grid maze // This shows how to do shortest path finding using A* //////////////////////////////////////////////////////////////////////////////////////////////////////////////// #include … | |
In linux Qt use “ksystemtray.h” for developing program. Anyone know which header file equal to “ksystemtray.h” use in Windows (mingW). Thanks Advance:) | |
How integrate .dll files in Qt4 c++. Any sample codes ?? Thanks Advance. | |
Hi, I'm doing a program to capture from USB camera. And to do the program, I need directshow which can be found in directX sdk. I read that the new versions of directx are not compatable with VC++ 6.0. Does anybody know where I can get an old version which … | |
Is there a data structure that lets me push and pop things onto/off of a queue, but also doesn't allow duplicates? E.g. I want [code] queue a; a.push(1); a.push(2); a.push(2); a.push(3); [/code] to only have 3 elements, because 2 was added twice so the second time it is just ignored. … |
The End.