Forum: C++ 34 Days Ago |
| Replies: 2 Views: 291 To use CSS files, JavaScript files and images in resource, you must convert all links in HTML file to be the resource numbers. Take a look at this article -... |
Forum: C++ Nov 16th, 2009 |
| Replies: 3 Views: 633 As the error says, the name getch() is deprecated, and _getch() (http://msdn.microsoft.com/en-us/library/ms235446(VS.80).aspx) is recommended instead. |
Forum: C++ Oct 4th, 2009 |
| Replies: 8 Views: 303 Missing typename of argument in method definition,
int stringClass::wordCount(string line){
.....
//(n+1) = total; // <---------------Remove this
....
} |
Forum: C++ Oct 4th, 2009 |
| Replies: 2 Views: 246 My suggestion and favorite are,
Effective C++ (http://www.amazon.com/Effective-Specific-Addison-Wesley-Professional-Computing/dp/0321334876/ref=pd_bxgy_b_img_b)
The C++ Programming Language... |
Forum: C++ Sep 20th, 2009 |
| Replies: 6 Views: 310 aomran,
Welcome to daniweb.
Please "Edit" your post. Use tag to post source code.
for example,
[code=cplusplus]
// statements |
Forum: C++ Sep 16th, 2009 |
| Replies: 7 Views: 527 You misspelt cout,
//arrcon[1]=*scon;
//count << "arrcon[1] " << arrcon[1];
string arrcon[5][35]; is a two-dimensional string array,
arrcon[0][0]="Hello";
arrcon[0][1]=*scon; |
Forum: C++ Sep 15th, 2009 |
| Replies: 13 Views: 482 daviddoria,
Error message says - "there are no arguments to 'getX' that depend on a template parameter, so a declaration of 'getX' must be available."
In Output3D, getX() is not used in a... |
Forum: C++ Sep 14th, 2009 |
| Replies: 2 Views: 247 bal_1991,
Welcome to the daniweb.
Take a look at http://www.parashift.com/c++-faq-lite/templates.html |
Forum: C++ Sep 11th, 2009 |
| Replies: 1 Views: 247 Think about http://en.wikipedia.org/wiki/Personal_Software_Process |
Forum: C++ Sep 11th, 2009 |
| Replies: 5 Views: 356 Take a look at fstream (http://www.cplusplus.com/reference/iostream/fstream/). |
Forum: C++ Aug 27th, 2009 |
| Replies: 35 Views: 1,683 Bit Masking
Setting, clearing and inverting bits while leaving others bits unchanged using Bitwise operators.
By using a string with zeroes and ones in particular spots, you can set certain bits... |
Forum: C++ Aug 12th, 2009 |
| Replies: 3 Views: 366 Token pasting operator.
#include <iostream>
using namespace std;
#define paster( n,m,k ) cout << "\n" << (token##n k token##m)
int main()
{
int token9 =30;
int token8=10; |
Forum: C++ Jul 30th, 2009 |
| Replies: 3 Views: 200 Little correction of tux4life's code.
wordRecord test; // (1)
sc.printDict(&test); // address operator was missing |
Forum: C++ Jul 29th, 2009 |
| Replies: 5 Views: 401 Template is not a class or a function. It is a "pattern" that the compiler uses to generate a family of classes or functions.
Must read link -
http://www.parashift.com/c++-faq-lite/templates.html |
Forum: C++ Jul 26th, 2009 |
| Replies: 1 Views: 177 Welcome accy,
Are you teacher or student?
You must read following before you post:
1.Homework policy (http://www.daniweb.com/forums/announcement118-2.html)
2.How to post source code?... |
Forum: C++ Jul 24th, 2009 |
| Replies: 7 Views: 304 Method are implemented (defined) in class stockItem.
....
class stockItem
{
public:
void setID(string ID) { this->ID=ID;}
string getID() {return ID; };
void... |
Forum: C++ Jul 23rd, 2009 |
| Replies: 23 Views: 967 Your problem is that you are still writing pointers into a file. Write only the data not any address.
Write:
char ar[3][10];
double **p;
strcpy(ar[0],"No1");
strcpy(ar[1],"No2");... |
Forum: C++ Jul 21st, 2009 |
| Replies: 5 Views: 479 Class CButton's create method takes button style argument - MSDN Reference (http://msdn.microsoft.com/en-us/library/tf9hd91s(VS.80).aspx) |
Forum: C++ Jul 19th, 2009 |
| Replies: 13 Views: 1,391 skandh,
Your question should be - How to display 256 color bitmap using C++ program?
Use C99 - standard c++ compiler. CodeBlocks, DevC++, and Microsoft Visual C++ are free compilers.
Read more... |
Forum: C++ Jul 18th, 2009 |
| Replies: 14 Views: 477 LPCDLIST is pointer to struct.
GetCDLists code :
if (GCDLists !=0){
LPCDLIST lpcd; // Pointer to struct
GCDLists(lpcd); // <-- no place for data
..... |
Forum: C++ Jul 17th, 2009 |
| Replies: 10 Views: 1,189 Don't use class name along with member if that member is an instance (object) member. Static members are qualified with class name only.
You have to define member function... |
Forum: C++ Jul 15th, 2009 |
| Replies: 4 Views: 358 smithss,
Pointer/array misconception.
Declaration,
int** a;
is called pointer to pointers.
How many int pointers you want?
>3 |
Forum: C++ Jul 1st, 2009 |
| Replies: 10 Views: 355 TrintiyNoe,
Did you work out on this problem? If yes; then show us your code, please.
However I suggest:
string str="This is a sentance";
istringstream iss(str); |
Forum: C++ Jun 23rd, 2009 |
| Replies: 5 Views: 457 Use typeid keyword.
cout << typeid(p).name(); |
Forum: C++ Jun 18th, 2009 |
| Replies: 2 Views: 660 Sort two strings in ascending order and compare two strings character by character. |
Forum: C++ Jun 14th, 2009 |
| Replies: 17 Views: 1,116 Here is a problem:
Use \r instead of \n.
data = Tokenize(s, '\r'); |
Forum: C++ Jun 10th, 2009 |
| Replies: 23 Views: 1,248 >how much more negative can your rep go? keep posting this junk, and we'll find out! whee! - jephthah
>Unportable rubbish! - tux4life
>How much of your immature programming would you post here. -... |