Search Results

Showing results 1 to 14 of 14
Search took 0.02 seconds.
Search: Posts Made By: twomers ; Forum: C and child forums
Forum: C 15 Days Ago
Replies: 14
Views: 678
Posted By twomers
This thread is stupid.
ahamed101 -- save the data in files and fopen them according to the input parameters of the program.
OR do what you were doing with the #include and just live with code...
Forum: C 16 Days Ago
Replies: 14
Views: 678
Posted By twomers
Actually.
The #include thing only works on compile time. Not run time. So you can't strcat the value of the #include.
Also, your first example mightn't work the way you think.
Forum: C 34 Days Ago
Replies: 3
Solved: UART problem!
Views: 318
Posted By twomers
Does the second program have to do the same thing as the first but must be written differently?
You could always do a switch on readValue instead of the if tree.
Forum: C Oct 29th, 2009
Replies: 6
Views: 326
Posted By twomers
I'm no assembly guru, but you might be able to find something were you to decompile it.
Forum: C Oct 14th, 2009
Replies: 4
Views: 365
Posted By twomers
That's curious.
Try doing \r\n instead. Not sure if that'll help, to be honest, but worth a try.
Can you get a hex editor and look at the hex of the file and see if the \n character is there? It...
Forum: C Aug 2nd, 2009
Replies: 5
Views: 375
Posted By twomers
I was thinking that too, but figured he wanted to ... transpose it for his own reasons.
Forum: C Aug 2nd, 2009
Replies: 5
Views: 375
Posted By twomers
First consider not globalising all the variables and consider passing them by pointer or something from main().

Second, the line should be stringarray[j][0] = string[j]; That should be it,...
Forum: C May 14th, 2009
Replies: 11
Views: 1,299
Posted By twomers
Read here http://www.adrianxw.dk/SoftwareSite/FindFirstFile/FindFirstFile1.html (and part 2 and 3), and in the retrieving loop you could simply have a counter that's returned by the function.
Forum: C Sep 14th, 2008
Replies: 5
Views: 535
Posted By twomers
I think you have all your numbers mixed up... you're scanning d, a is used as the while loop control, c has 2 being subtracted from it, and then you're printing a. You only need one variable. So...
Forum: C Sep 13th, 2008
Replies: 5
Views: 535
Posted By twomers
So a number is taken from a user, and 2 is subtracted from it until it's 0? Why do you have an array or a[100]? Do you need to save each number? Just try to think about it.

Problem:
You're...
Forum: C Dec 27th, 2007
Replies: 6
Views: 1,236
Posted By twomers
Well, by playing with the code from the link I got this:


#include<windows.h>
#include<stdio.h>
#include<conio.h>

#pragma comment(lib, "Winmm.lib")

//command, note, velocity
Forum: C Nov 3rd, 2007
Replies: 10
Solved: file handeling
Views: 2,038
Posted By twomers
Did you even look at the link I sent? Gah!

http://www.cplusplus.com/reference/clibrary/cstdio/fgets.html
Forum: C Nov 3rd, 2007
Replies: 10
Solved: file handeling
Views: 2,038
Posted By twomers
Do you want to print the contents to your screen or to the file? The way you opened the file there was for writing, that's what the w stands for. I was under the impression that you wanted to read...
Forum: C Nov 3rd, 2007
Replies: 10
Solved: file handeling
Views: 2,038
Posted By twomers
Simple file io. First hit on google - http://www.cprogramming.com/tutorial/cfileio.html. All you need to do is point the file pointer to your desktop. You can hard code that if you want. Then open...
Showing results 1 to 14 of 14

 


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

©2003 - 2009 DaniWeb® LLC