15,300 Posted Topics

Member Avatar for thanjaa

You don't really do it in c++ any more than you did on *nix. [URL="http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&source=hp&q=program+to+image+hard+drive+in+windows&btnG=Google+Search"]Here are some links [/URL]to programs that will image the hard drive.

Member Avatar for Ancient Dragon
0
205
Member Avatar for Snapster5

line 48: you must specify a data type, such as [icode]int Array[ARRAY_SIZE];[/icode] line 50: You need to specify data type here too. line 55: remove that semicolon at the end of the line. line 56: Need opening brace {. Add closing } at the end of the loop. line 61 …

Member Avatar for Ancient Dragon
0
178
Member Avatar for javaStud

The file was read on lines 28-30, why are you trying to read it again on lines 34-37? And line 37 will just read all the numbers into the same element of Array. My guess is that on lines 34-37 you need to just display the contents of the array …

Member Avatar for javaStud
0
92
Member Avatar for anonymous alias

You shouldn't feel so bad [quote] Overall Post Quality Score: 34% Up Votes Total Up-Votes Received: 899 Unique Posts Receiving Up-Votes: 776 Individual Members Who've Up-Voted: 268 Posts Currently Positive: 62 Down Votes Total Down-Votes Received: 6509 Unique Posts Receiving Down-Votes: 1481 Individual Members Who've Down-Voted: 40 Posts Currently Negative: …

Member Avatar for diafol
-2
414
Member Avatar for lllllIllIlllI

First of all, you only have ONE birthday -- the day you were born. After that they are the Anniversary of your Birthday. My family (wife and two children) celebrates the anniversary of our birthdays all at the same time because we are so close (within 30 days). We have …

Member Avatar for William Hemsworth
7
135
Member Avatar for Stefano Mtangoo

Favorite IDE: VC++ 2008. Code::Blocks close second. M$ has the best debugger on MS-Windows I've ever seen. When on *nix I use VI and gdb, recently started using Code::Blocks on *nix. Graphics library: ON MS-Windows I love MFC. It's difficult to learn, about a year's learning curve. I've dabbled with …

Member Avatar for Lawand
0
139
Member Avatar for DJZ

You need to read the answers given on other forums before starting new threads. See [URL="http://www.dreamincode.net/forums/index.php?showtopic=145379&hl="]this link[/URL] if you forgot.

Member Avatar for Ancient Dragon
0
96
Member Avatar for azra36

The first thing you should do is initialize BlockDataType array with all 0s before doing anything else with it -- that will clear the array of all random data. Now lin line 14 fwrite() will write 0s for all unused bytes in that array. fwrite() will write blocksize number of …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for foxmulder

You are trying to do it the hard way [code] #include <iostream> #include <algorithm> #include <vector> #include <string> #include <fstream> using namespace std; int main() { vector<string> movieList; ifstream in("myfile.txt"); if( in.is_open() ) { string line; while( getline(in, line) ) movieList.push_back(line); sort(movieList.begin(), movieList.end()); vector<string>::iterator it = movieList.begin(); for(; it != …

Member Avatar for Ancient Dragon
0
198
Member Avatar for Stefano Mtangoo

you have to declare them [b]extern "C"[/b]. [code] #ifdef __cplusplus extern "C" { #endif // C function prototypes here #ifdef __cplusplus } #endif [/code] You will find this example in stdio.h as well as other c header files that may also be used in c++ functions.

Member Avatar for Stefano Mtangoo
0
176
Member Avatar for saisai81

Already got my Christmas present this year -- Samsung 55" 400+ Hz LED TV, Blue-Ray DVD player, and Bose speakers.

Member Avatar for saisai81
0
149
Member Avatar for Clinton Portis

coding out large blocks of code. I like to use [icode]#if 0[/icode] because its easier to find the end of it. [code] #if 0 some code here #endif [/code] Otherwise the way I code is pretty consistent with the link you posted.

Member Avatar for Lawand
1
153
Member Avatar for squadjot

you could redirect the output to a file. Then your other program just read the file like it does any other file. Below I put the output in separate files, but you can put them all in the same file too by use >> instead of > [code] ping google.au …

Member Avatar for squadjot
0
127
Member Avatar for Reimschmied

Why can't you do that yourself? The loop starting on line 38 is poorly written. Note the use of < symbol instead of <=. Arrays are indexed from 0 up to but not including the number of elements in the array (variable len in this case) [code] for(i2 = 0; …

Member Avatar for Ancient Dragon
0
137
Member Avatar for DweyneAnne

gotoxy() is a function only supported by Turbo C and Turbo C++. No other compiler in the whole wide world supported it. So if you want to use a different compiler then you will have to find a different way to accomplish the same thing, such as write your own …

Member Avatar for DweyneAnne
0
240
Member Avatar for emptiness

[QUOTE=emptiness;1076307]I have actually dlownloaded some alienskins and wares from site, [/quote] I have no idea what you are talking about. [QUOTE]therefore later the control panel never worked. everything was enlarged to the absurd extend. [/quote] You mean the fonts on your display screen are too large? [QUOTE]Needed help but no …

Member Avatar for caperjack
0
86
Member Avatar for abebudi

[QUOTE=abebudi;1076309]I dont know how to start, but I enjoy to join this forum. Thanks for accepted me.[/QUOTE] Welcome to DaniWeb, but most newcomers post this in the [URL="http://www.daniweb.com/forums/forum165.html"]Community Introductions forum[/URL]

Member Avatar for abebudi
0
133
Member Avatar for Stefano Mtangoo

Just as well -- VS6 doesn't work well with Vista or Win7. Better off upgrading to VS8 or VS2010

Member Avatar for Stefano Mtangoo
0
137
Member Avatar for Eric^^

If all you want to do is play games or surf the net, then don't waste your hard-earned money on the ultimate edition -- the Home Premium edition works great for those. You can't buy Vista any more so the argument between Vista and Windows 7 is now mute.

Member Avatar for caperjack
0
415
Member Avatar for vmanojnair

[QUOTE=apurv;298338][B]If u want...:?: [/B] [B]I hav both these programs[/B]:cool:[/QUOTE] After 1 1/2 years do you think the op really gives a dam?:mrgreen:

Member Avatar for peter_budo
-4
675
Member Avatar for Dave Sinkula

I really miss that list of frequently visited forums. I was about to start a new thread here about it, but glad I read this thread first :) Hopefully Dani will put it back. And while we're at it -- I'm starting to like that [b]NEW[/b] button Dani added to …

Member Avatar for lllllIllIlllI
0
321
Member Avatar for Ultratermi
Member Avatar for Ultratermi
0
1K
Member Avatar for tien113
Member Avatar for Snapster5

line 55: should be }, not { lines 59, 60 and 61: just delete them. line 25: If you want to display double quotes then you have to escape them, like this: [icode] cout << "Enter \"P\" for Power or \"S\" for Square Root";[/icode] line 28: put surround P and …

Member Avatar for Ancient Dragon
0
149
Member Avatar for StaticX

Add this to the bottom of that program to verify that it worked (works ok for me on Windows 7 using VC++ 2008 Express compiler) [code] ifstream in("myFile.dat", ios::binary); int k = 0; if( in.is_open() ) { in.read((char *)&k, sizeof(int)); cout << "k = " << k << '\n'; } …

Member Avatar for StaticX
0
109
Member Avatar for Ryujin89

>>if(!cookieOrdered.compare(flavors[i])) You can just simply write this: [icode]if( cookieOrdered == flavors[i] )[/icode], assuming [b]flavors[/b] is an array or vector of strings/character arrays.. >>cookieOrdered.clear(); Could also be: [icode]cookieOrdered = "";[/icode] line 8: There is really no point in using an iterator in that function. Just use a loop similar to line …

Member Avatar for Ryujin89
0
113
Member Avatar for chester1908

>>.any ideas? Any ideas about what? You sort of lot me with all that description.

Member Avatar for Murtan
-2
268
Member Avatar for mokia1

Each row has 5 seats, but you don't know how many rows there will be until runtime. So the first thing you need to do is to declare a 2d array with unknown number of rows and columns, like this: [icode]char **rows = NULL;[/icode] Now after asking how many rows …

Member Avatar for mokia1
0
280
Member Avatar for dvdreplication

summer -- I hate snow and ice in the winter because it makes driving so hazardous.

Member Avatar for characteredu
-4
131
Member Avatar for ladyqueen1988

[QUOTE=candaceusa;1070045]Ladyqween you question is not complete. I couldn't make out what you meant here. Sorry[/QUOTE] It was spam.

Member Avatar for crunchie
-2
261
Member Avatar for Weetnie

Delete line 2 -- it is more harm than good. Replace all the rest of that code with this single loop. When the '@' is found I don't know what you want to do, so the code below will just display the entire text. [code] string line, check; while( getline(fin, …

Member Avatar for jephthah
0
104
Member Avatar for trcartmill

What are you going to do with the rest of the line if the Name is more than 29 characters? Is it supposed to ignore the rest of the Name characters (skip over the excess characters) and read in the remaining characters? If that is true, then after line 76 …

Member Avatar for Lerner
0
135
Member Avatar for cwarn23

You can always click the "Unanswered Threads" link on the right side of the screen.

Member Avatar for Dave Sinkula
0
164
Member Avatar for Eternity[LK]

replace all 7 loops with something a function [code] void GetMartks(std::string prompt, float& mark) { cout << prompt << '\n'; cin >> mark; mark = decimal(mark); } [/code] And call it in main() like this: [code] GetMark("T1:", a[n].vert.t1); GetMark("T2:", a[n].vert.t2); GetMark("T3:", a[n].vert.t3); GetMark("T4:", a[n].vert.t4); GetMark("T5:", a[n].vert.t5); GetMark("T6:", a[n].vert.t6; GetMark("T7:", a[n].vert.t7); …

Member Avatar for Eternity[LK]
0
105
Member Avatar for DweyneAnne
Member Avatar for Jeffro_i4i

>>Can someone please help me with this? Can we do what to help you ? Post the code you have written, compiler's error messages, and ask questions. We are not going to write the program for you.

Member Avatar for Ancient Dragon
0
120
Member Avatar for Jfunch

First create an array of month strings [icode]char *months[] = { "January", "February", "March", // etc etc }[/icode] Now all you have to do is index that array with the month-1 [icode]string Name = months[m-1];[/icode] where m is a numeric value from 1 to 12.

Member Avatar for Ancient Dragon
0
100
Member Avatar for bairamfci

You need to sort the array twice. First time, sort the rows. When a swap is needed you need to swap all the columns on the row so that the column data stays with the rows. Then resort the array by columns. When a swap is needed you need to …

Member Avatar for Ancient Dragon
0
81
Member Avatar for therstonsplace

Read some of [URL="http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozilla%3Aen-US%3Aofficial&hs=lGp&q=calling+c+from+vb.net&aq=2&oq=calling+c+from+v&aqi=g5"]these links [/URL]how to call C functions from VB.

Member Avatar for Ancient Dragon
0
88
Member Avatar for SergioEspaillat

I have 64-bit HP computer, 5 Gig RAM and 750 Gig HD. At first I tried to install 32-bit Windows 7, but it had all sorts of problems because I had too much RAM and too large a HD, so I wound up erasing that and starting all over with …

Member Avatar for jbennet
0
369
Member Avatar for new programer

You don't need to pass the length of each of those strings. The concat function can easily find the lengths itself. Here is how to make concat() return the string [code] string concat(const char* title, const char* fname, const char* lname) { string fullname; // concat all three names not …

Member Avatar for new programer
0
157
Member Avatar for merse

x1.error is not 0.1 -- its 0.100000001. [code] bool operator==(const real& x1, const double x2) { // after substituting: 0.1 <= 0.1 is true! bool b; double x = fabs(x2-x1.value); printf("x = %0.15f, x1.error = %0.25f\n", x, x1.error); if( x <= x1.error ) b = true; else b = false; …

Member Avatar for merse
0
101
Member Avatar for johndoe444

line 23 and 29: You can't add an node that's allocated on the stack to the linked list. Reason: when the function returns the memory address of that node is destroyed and becomes invalid. To fix this you need to call malloc() to allocate memory for the node from the …

Member Avatar for johndoe444
0
105
Member Avatar for tzushky

Where did you get that crappy code from??? Toss it out and forget it. >> myend = &MyArray[MAX_SIZE]; Wrong -- myend is set to point one element beyond the end of the array, a common mistake. should be [icode] myend = &MyArray[MAX_SIZE=1];[/icode] >>first = (MyLL *) mystart; Illegal operation. mystart …

Member Avatar for tzushky
0
497
Member Avatar for confusedndazed

Are you looking for c++ code or pseudocode? [code] declare three integers, one for age, one for sum of ages, and third for number of ages entered. in a loop prompt for age update sum update counter end of loop average age is sum divided by counter [/code]

Member Avatar for confusedndazed
0
121
Member Avatar for zobadof
Member Avatar for endsamsara

you have to print each field individually [code=c] printf("name: %s\n", Doom3.name); printf("memory: %d\n", Doom3.memory); ... [/code]

Member Avatar for sasik
0
15K
Member Avatar for PDB1982

An array and a list are two different things. Its a lot easier to sort an array than linked list.

Member Avatar for PDB1982
0
133
Member Avatar for bonotevo

line 32: you are using the wrong operator; use == to test the two characters, not = which is assignment operator. Same problem on line 43.

Member Avatar for Dave Sinkula
0
303
Member Avatar for 101ani.sh

turbo c++ is just too old, it won't even run on Windows 7 or Vista on PC. Get Code::Blocks, MinGW, or VC++ 2008 Express.

Member Avatar for zobadof
-1
87

The End.