- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 4
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 2
84 Posted Topics
Re: "The C++ Programming Language" by Bjarne Stroustrup. It is a good book about c++ concepts. | |
Re: Hi It is due you are trying to access a value pointed by pointer outside the scope. [CODE] #include<iostream> #include "employee.h" using namespace std; Employee e1,e2; // create two objects for class employee char *gets(char*); // Function DEFINED to return a new string entered by the user void print(); // … | |
Re: you can check for iostream in c++ | |
Re: Hi, Answer to your first question:- 1) Why is my code not reading the int "200" correctly ? - Your code is reading correctly and out put is also according to your code condition. AS for "Mr Tom Jones" syst = 200 and dias = 78 so your first condition … | |
Re: I have some questions about your code:- 1) Why are you using [CODE] MyString temp; // create a object and put default memory and location to data according to your constructor MyString() delete [] temp.data; // delete the data created by constructor [/CODE] 2) You are creating a local object … | |
Re: It is totally depends on your requirements and application type. As a generic for win OS i suggest Visual c++ | |
Re: I am not very sure about your requirement but I think you are getting segmentation fault at line :36 [CODE] words[i] = alphabet[o + 9]; [/CODE] As value of 'o' vary from 0 to 25 and your array alphabet[] has only 26 objects. So at the time of operation alphabet[o … | |
Re: I am unable to understand your code [CODE] Song& Song::operator =(const Song &so){ if(last_played==0){ last_played=0; } else{ if(last_played!=0){ delete last_played; } last_played=new Time (*so.getLastPlayed()); // You are using so as reference(const Song &so) then why you are trying to call with "*" . This call should be so.getLastPlayed() } artist=so.getArtist(); … | |
Re: You can do this by following ways:- 1) Creating GUI in C++ 2) Create GUI in some other language(Visual C++,VB) and call your C++ method from that code. For the 1) one you can search google "graphics in c++". and for 2) You need to understand IPC concepts again google … | |
Re: Could you please mention what exact error you are getting ? | |
Re: Just try modify line 6 by printf("error"); It may be possible that your code is unable to find the file If it is so put the absolute path of your file like "c:\\test\\myfile.txt" | |
Re: I am completely unable to understand what you wants to do ? | |
Re: you should use -lboost_unit_test-st for single-threaded and -lboost_unit_test-mt for multi-threaded applications | |
Re: Use [CODE]printf("%d roses cost %2.2f per %d\n", 24, 19.95, 12);[/CODE] | |
Re: you should check GPU programming in C++. There are lot of metrical on net. Just try to do google | |
Re: What do you mean by [CODE]scoresIn >> scoresArray [initalize];[/CODE] | |
Re: Could you please post the code of Student.h also. As per my understanding of this code you are trying to add int and string [CODE]gpa= gpa/*int*/+ "singleGlass[i].getcreditHrs()"/*string*/[/CODE]. Just wants to check what will Student::getcreditHrs returns. | |
| |
Re: It is a mathematical game or puzzle. [URL="http://en.wikipedia.org/wiki/Tower_of_Hanoi"]Just google[/URL] | |
Re: Compilation does not mean a correct program. Have you try to debug your program? Just by a quick look on your program i am unable to understand the use of [CODE] line 33. semaphore.Wait(0); Line 34. semaphore.Wait(0);[/CODE] | |
Re: Line 60: [CODE] printf(" %s\n", (*it)[*(it1).strAddrObjName].strStartIP); should be printf(" %s\n", (*it)[(*it1).strAddrObjName].strStartIP); [/CODE] | |
Re: Why you don't try with STL list [URL="http://www.yolinux.com/TUTORIALS/LinuxTutorialC++STL.html#LIST"]STL::LIST[/URL] | |
Re: This question really has a very complex answer:- 1) First of all you req very good knowledge of 'lexical' 'analysis', 'parsing', 'grammar', etc. And there is no use of writing C++ compiler in c++. You should learn some low level language. Many universities offer courses where you get to create … | |
Re: Some of the more popular implementations do generate a copy of the instantiation code in each object file which triggers an instantiation, and count on the linker to throw out all but one. Other compilers use some sort of repository, where instantiations are stored; if the instantiation is already present, … | |
Re: [CODE] #include <iostream> using namespace std; int main() { int num1, num2, number=0; cout<<"Please enter your first number"<<endl; cin>>num1; while(num1<number) { cout<<"Please enter a positive number"<<endl; cin>>num1; } cout<<"Please enter you second number"<<endl; cin>>num2; while (num2<number) { cout<<"Please enter a positive number"<<endl; cin>>num2 } [/CODE] | |
Re: You can use [URL="http://www.alhem.net/Sockets/download.html"]Socket lib[/URL] | |
Re: [CODE] #include "stdafx.h" #include <iostream> #include <cctype> #include <iomanip> using namespace std; bool validate(char[] password, int len) { for (i = 0; i < len; i++) { if (!isdigit (password[i])) return false; } return true; } int main() { char password [7]; //password is 6+1('/0') digit long int i; cout … | |
Re: Have you tried to debug the program ? | |
Re: Use [URL="http://msdn.microsoft.com/en-us/library/ms646304"]Keyevent[/URL] | |
Re: add return type for BasicLCG(); and BasicLCG(unsigned long); It should solve you first 4 compilation error | |
Re: [code] char firstChar[256]; size_t chars_read= 0; int currentLocation = 0; while (input.good()) { nextChar = (char) input.get(); firstChar[chars_read++]=(char)input.get(); } while(firstChar[currentLocation] == ' ' || firstChar[currentLocation] == '\t' || firstChar[currentLocation] == '\n' ) \\ ignore all white spaces currentLocation++; if (firstChar[currentLocation]=='+' || firstChar[currentLocation]=='*') badInput=true; currentLocation = chars_read; while(firstChar[currentLocation] == ' ' … | |
Re: Have you giving file relative path or absolute path ? | |
Re: What ever error you are getting it depends on CDocum::~CDocum because line 3 of your code internally calls CDocum::~CDocum. So as suggested by "m4ster r0shi" plz share definition of ~CDocum. | |
Re: In place of data base you can use an encrypted flat file to store/verify username and password. | |
Hi All I am trying to create an add-in for VS2008. As i am new to MS env. Can you tell me :- :?: 1) How to get the full file name/path of currently active file in VS2008. 2) How to execute command prompt from VS 2008 add-in code and … | |
Re: What do you mean by "hardware breakpoints" ? | |
Re: Your first point is correct :- gamebase points to the value 0x4C62FC ![]() | |
Re: 1) First open command prompt 2) run devenv <Full path of your exe> 3) In VS IDE do Project->Properties->ConfigurationProperties->Debugging->CommandArguments | |
Re: Try [URL="http://www.digicamsoft.com/bmp/bmp.html"]This[/URL] | |
Re: If you are using MS c++ compiler you can use XMLLite or DOMXML parser. | |
Re: What do you mean by "switch loop"? 1) Switch and loop 2) Loop in switch 3) Switch in loop 4) or is it "Switch loop" Try [URL="http://www.cplusplus.com/forum/windows/16404/"]switch loop[/URL] | |
Hi Does any buddy help me to convert char* to std::wstring | |
HI All Can you suggest me any tutorial/book for starting with rational rose. I am new to it. | |
Re: You can try at [URL="http://www.lvr.com/serport.htm"]serial port[/URL] | |
Hi All Can anyone tell me about some good tool to auto indent the code c++/objective-c/c with some customization features. | |
Re: Can you please post compiler errors also so it will be easy to find for us. | |
Re: Where are your efforts ? :) First post what ever you have tried so far for this problem then we will help to correct that. |
The End.