15,300 Posted Topics

Member Avatar for andreas.petrou.967

Very very difficult, but they can be read easily in C# and VB.NET due to the .NET functions that are not available to standard c++. In C++ it's a lot easier to create a CSV text file and let Word import it. Or use [Office Automation](http://msdn.microsoft.com/en-us/library/ms173024(v=vs.90).aspx) software.

Member Avatar for rubberman
0
201
Member Avatar for Emma_3

The arrays are declared as two-dimensional arrays and line 26 is trying to treat them as one-dimensional arrays. Why are they two-dimensional instead of one dimensional arrays?

Member Avatar for Ancient Dragon
0
395
Member Avatar for johans22

Why do you need to do that? Just have an array of max possible size, then have a variable, such as arrsz, that contains the size you want (either SIZE_10 or SIZE_20). It won't matter if you have extra elements in the array that aren't used. >extern unsigned char marray[arrsz]; …

Member Avatar for David W
0
222
Member Avatar for JOHN-shirley

I would do it by using an array of 255 ints, each element in the array represents one of the characters in standard ascii character set. So, if you enter 'A', then all you have to do is increment array['A']++. When done, all the non-zero elements are what you want. …

Member Avatar for David W
0
232
Member Avatar for DS9596

>The basic difference between int( keyword of integer) and char(keyword of character) is the first is integer that is includes numbers(without float values),whereas character includes (a to z and A to Z and sometimes 0 t0 9,some special chars like .,+-!?,...),char may be string also that is group of chars. …

Member Avatar for Ancient Dragon
0
428
Member Avatar for marouane12

why not ask that on [their forums](http://sourceforge.net/p/dtorrent/discussion/)?

Member Avatar for Ancient Dragon
0
123
Member Avatar for COKEDUDE

It can get even more complicated than that -- for a complete discussion see [this article](http://en.wikipedia.org/wiki/Newline). At one time the MAC used CR as line terminator, don't know if that' changed in recent years or not.

Member Avatar for rubberman
0
815
Member Avatar for Complete_1

My guess -- define RainfallListNode before RainfallList because RainfallList uses RainfallListNode which has not been declared yet.

Member Avatar for Ancient Dragon
0
642
Member Avatar for Tariq Amin

>how to creat recovery softwear? Study c or c++ for a couple years and you might be ready to answer that question yourself.

Member Avatar for Ancient Dragon
0
167
Member Avatar for naveen1993

what kind of images -- gui or text? If gui then you would be better off using a library suited for that such as OpenGL -- all the hard work is already done.

Member Avatar for Ancient Dragon
0
115
Member Avatar for dennis.ritchie

Then go to court and have his name changed, his parents weren't funny giving him that name.

Member Avatar for Ancient Dragon
0
213
Member Avatar for endri_1

We can all help you and it will be for free. But Dani would sure appreciate any donation you want to give her. If the class is too high for you then maybe you should think about dropping it and enrolling in a lower level class.

Member Avatar for David W
0
332
Member Avatar for 111100/11000

That's a new feature of c++11 iso standards. Some compilers such as Visual Studio have not implemented it yet, while others such as g++ may need special flags. For compiles that don't support that, just change line 81 to this: `string* boardWithPieces = new string[rowLength*columnLenght];` As for the freezing problem …

Member Avatar for 111100/11000
0
1K
Member Avatar for Sai Ravi Teja
Member Avatar for michelemalta
Member Avatar for StuXYZ
0
390
Member Avatar for azareth
Member Avatar for GrimJack
0
1K
Member Avatar for dennis.ritchie

>am wondering why would one need to swapp the numbers in real life? One very good reason is sorting numbers in either ascending or descending sequence.

Member Avatar for Kristian_2
0
231
Member Avatar for ravi_14

Most likely the problem is compiler mangling names. c++ compilers change function names so that they can be overriden, while c compilers do not because c does not support overiding functions. The most common way to prevent name mangling is like this #ifdef __cplusplus extern c { #endif #include "widget.h" …

Member Avatar for Ancient Dragon
0
695
Member Avatar for mechbas
Member Avatar for mechbas
0
408
Member Avatar for bokizss

Here you go, but don't be supprised if you get an F because your teacher will know at first sight you didn't write it #include "stdafx.h" #include <iostream> #include <cliext/map> using namespace System; using namespace std; void sort(int nums [], int numitems) { for (int i = 0; i < …

Member Avatar for Bendez Thyna
0
166
Member Avatar for matrixdevuk

>Is it possible that I could get it back? Probably not -- you auto lose the badge when the period of your donation expires. For example if you donate $3 for one month and don't renew it the badge will only appear for the month of the donation. It's not …

Member Avatar for Dani
0
148
Member Avatar for COKEDUDE

look up strstr() function. Another way is to call [strncmp(](http://www.cplusplus.com/reference/cstring/strncmp/))

Member Avatar for COKEDUDE
0
210
Member Avatar for Xheis

What compiler are you using? Try commenting out large sections of the code so that you can narrow down the location of the error.

Member Avatar for David W
0
316
Member Avatar for nathan.pavlovsky

The difference is that eof() doesn't recognize end-of-file until an actual read is performed. When at end-of-file line 31 doesn't know it yet until line 33 is executed. But line 34 is executed whether at eof or not. That's a common mistake that new programmers do -- IMO eof() is …

Member Avatar for vmanes
0
370
Member Avatar for ala_2
Member Avatar for BobS0327
0
517
Member Avatar for ubhart
Member Avatar for ubhart
0
396
Member Avatar for Suzie999

line 26: what happens when found+1 > str.length()? There is nothing in the loop to stop the loop at the end of the str. Replace lines 19-31 with this loop found = str.find_first_of('a'); while( found != string::npos && (found+1) < str.length()) { str[found]='X'; found = find_next_of(str, found + 1); }

Member Avatar for Suzie999
0
232
Member Avatar for zebnoon
Member Avatar for IconKana
0
282
Member Avatar for pooja_4

What have you done so far? Do you know how to read a file? If not, then you need to read tutorials on ifstream (input file stream) and ofstream (output file stream).

Member Avatar for Faizal Shariff
1
297
Member Avatar for admiri92
Member Avatar for jeevan reddy

Looks like it is sending char\* (line 15) and receiving wchar_t\* (line 40)? Is that right? I don't think that will work. Suggest you change OnClickedBsend() to convert the string from char\* to wchar_t\* before sending it.

Member Avatar for jeevan reddy
0
195
Member Avatar for tony75

Why would you want to compile a windows program on \*nix? Why not just compile on Windows?

Member Avatar for JasonHippy
0
5K
Member Avatar for fatmah
Member Avatar for adhirgukt

The header file will do you no good without the libraries. If you want to code Windows program on \*nix then you need a cross compiler. [Here](http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/475665/compile-windows-source-codec-under-linux#post2077386) is a related article you should read.

Member Avatar for invadev
0
12K
Member Avatar for Dang_1

There is no standard C or C++ function/class that will do what you want. So you can resort to non-standard functions, for example the functions in conio.h if your compiler supports that header file and library. Have youy searched google for password code? like [this link](http://www.daniweb.com/software-development/cpp/threads/32798/password-function-c)? Another example [here](http://www.cplusplus.com/articles/E6vU7k9E/#WIN-e1)

Member Avatar for Ancient Dragon
0
498
Member Avatar for ravi_14

void\* is just a generic term for a pointer of any type. For example, malloc() returns void\*. If you really want a pointer of type char\* then, in c++, you have to typecast the return value of malloc(). `char* p = (char*)malloc(15);` In the above, malloc will allocate memory for …

Member Avatar for Ancient Dragon
0
188
Member Avatar for ashley.vanhoesen.7

ifstream and ofstream cannot be members of a class like you have them. It's probably better to just have inData() and outData() declare ifstream/ofstrem, open the file, then read/write. void Billionaire::outData() { ofstream outFile("filename.txt"); //The output data is formatted accordingly outFile << setw(12) << "Name: " << getName() << endl …

Member Avatar for ashley.vanhoesen.7
0
4K
Member Avatar for اشرف_1
Member Avatar for smitsky
Member Avatar for smitsky

iterators are pointers and need the -> operator not the dot operator cout << left << setw(0) << "--d" << diskQueue.size() << left << setw(4) << " " << left << setw(14) << g->getFilename() << left << setw(14) << g->getMemoryStart() << left << setw(14) << g->getFileLength() << g->getRW() << endl;

Member Avatar for smitsky
0
220
Member Avatar for smitsky
Member Avatar for catastrophe2

line 240: Suggestion: Save yourself a lot of grief by shortening that path down. In Visual Studio you can move the projects to another folder. I always put projects in a folder directly off c:, such as `c:\dvlp` That makes it a lot easier to specify specific project paths. line …

Member Avatar for catastrophe2
0
1K
Member Avatar for Mohammed_9

>// t-1 = second last and t-2 = secound first What?? The second last is t-2, the second first is 1. Why do you need loops to find the second last and second first numbers?

Member Avatar for Mohammed_9
0
180
Member Avatar for cavin.gm

What is your question? Nobody here is going to do your homework for you. First you will have to know what "four bar linkage by ..." is. If you don't, then that's the first place to start. I assume your instructor has already explained that in class, providing you attended …

Member Avatar for Edward_3
0
783
Member Avatar for Ajay_9

what is ID? what is rnd(ID)? Is that generating a random number seeded with ID? Or something else? What SQL database is this for?

Member Avatar for Ancient Dragon
0
69
Member Avatar for Xheis

If you wrote that code then you should know what command-line arguments it needs. Looks like it takes 11 integers on the command line.

Member Avatar for Ancient Dragon
0
179
Member Avatar for ceelos1974

You have to rewrite the entire file in order to edit one of the lines. It is not possible to just expand a line like you would in memory. If there are lots of edits then first read the entire file into memory (such as into a vector of strings), …

Member Avatar for Ancient Dragon
0
146
Member Avatar for Mohammed_9

If on Windows then call [PlaySound()](http://msdn.microsoft.com/en-us/library/windows/desktop/dd743680%28v=vs.85%29.aspx). I don't know the \*nix equivalent, or even if there is one.

Member Avatar for Ancient Dragon
0
327
Member Avatar for ahmad_9

I doubt that is the exact assignment -- it's completely incomprehensible.

Member Avatar for Ancient Dragon
0
130
Member Avatar for waseem1345

Do you mean win32 api functions? They are very old and mostly obsolete now, better to use .NET functions using c++/CLR, C# and/or VB.NET. If you still want to learn win32 api, it's too extensive a subject to be in one book. [Microsoft Press](https://www.google.com/#q=microsoft+press+windows+programming) has probably 10 or more books …

Member Avatar for waseem1345
0
285

The End.