Search Results

Showing results 1 to 17 of 17
Search took 0.00 seconds.
Search: Posts Made By: Daishi ; Forum: C and child forums
Forum: C Nov 18th, 2005
Replies: 1
Views: 1,222
Posted By Daishi
You can check out CFile, if you want to stick with the MFC stuff and not mess with STL or the C file input/output functions. For CFile:
...
Forum: C Nov 18th, 2005
Replies: 4
Views: 4,485
Posted By Daishi
http://www.cplusplus.com/ref/cmath/pow.html

Pow, in the standard C library for mathematical operations, takes two double values by default. You could also look into the powerful powf function.
...
Forum: C Nov 7th, 2005
Replies: 1
Views: 1,508
Posted By Daishi
Probably the '.txt' that you are reading is an ASCII file. .jpg and (I think) .doc are binary files. The difference is that ASCII files generally store readable text data, and binary files...
Forum: C Nov 7th, 2005
Replies: 1
Views: 5,197
Posted By Daishi
http://www.daniweb.com/techtalkforums/thread19956.html
Forum: C Nov 2nd, 2005
Replies: 4
Views: 1,677
Posted By Daishi
Easy. Go to the spot in the array where you want to delete the element. Copy the next element in the array to that spot, move to the next element. Repeat the process until you get to the end of...
Forum: C Oct 31st, 2005
Replies: 3
Views: 1,187
Posted By Daishi
Well, if you don't know what is wrong with it, you can't expect anyone else to know what is wrong with it. What problem is it giving you, specifically? It compiles and runs just fine for me, and it...
Forum: C Oct 10th, 2005
Replies: 4
Views: 4,083
Posted By Daishi
I put the \r in there, and I started getting data from the server!

Thanks. :)

-Fredric
Forum: C Oct 8th, 2005
Replies: 4
Views: 4,083
Posted By Daishi
That doesn't seem to work, although it should. I have no idea what's going on, I think I'll just have to settle with HTTP1.0...

-Fredric
Forum: C Oct 7th, 2005
Replies: 4
Views: 4,083
Posted By Daishi
I happen to be writing a very simple text browser, and I'm having a problem connecting to servers using HTTP1.1 GET messages... HTTP1.0 works fine, I just have a string like this:


const char...
Forum: C Sep 26th, 2005
Replies: 2
Views: 4,317
Posted By Daishi
Just store the sum totals in an 11-element array of ints. (there are 11 possible combinations for the sum of two 6-sided dice)


int num[11];

for (int i=0; i<36000; i++) {
// ...
Forum: C Sep 19th, 2005
Replies: 6
Views: 2,246
Posted By Daishi
I'm kind of confused as to what the ' character is too... Are you sure it isn't one of the logical AND or NOT characters? Did you copy the problem down right?
...
Forum: C Aug 27th, 2005
Replies: 10
Views: 6,806
Posted By Daishi
I find this amusing, especially after looking at his signature.

-Fredric
Forum: C Aug 17th, 2005
Replies: 9
Views: 2,131
Posted By Daishi
Try setting the precision to 4, instead of 2.

And I'm really curious as to what this program does...? Does it have to do with Jovian orbits...?

-Fredric
Forum: C Aug 17th, 2005
Replies: 8
Views: 2,090
Posted By Daishi
Bad habits, I tell ya! :o

-Fredric
Forum: C Aug 17th, 2005
Replies: 8
Views: 2,090
Posted By Daishi
Ah, I think I see what's going on now. It seems like the memory is being held on by the vector class itself, and not the memory manager when I call clear (which frees *no* memory, based on my...
Forum: C Aug 17th, 2005
Replies: 8
Views: 2,090
Posted By Daishi
Here is my complete main.cpp file...that might help.


#include <stdio.h>
#include <vector>

using namespace std;

int main(int argc, char **argv) {
vector<int> test;
Forum: C Aug 17th, 2005
Replies: 8
Views: 2,090
Posted By Daishi
This has been bothering me for a while now. When I try to clear a vector it just *pretends* to clear it, and the data is still in memory. This led to some obscene memory leaks, so I dug around...
Showing results 1 to 17 of 17

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC