I guess I was looking at the code too long and missed that line 31 was missing a ";"..thanks for all your help!
Type: Posts; User: AQWst
I guess I was looking at the code too long and missed that line 31 was missing a ";"..thanks for all your help!
I added the code suggested in the previous post to my exiting code...see below:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <cstdio>
Well, is there any hope for my code, or do you have a different approach that I can take to get this to work?
Here is a sample of the program:
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iostream>
I am trying to use the ideas presented to me in a posting that was posted last night, but the ideas are not working. I will include my program so that it can be reviewed here to see what I may be...
I would like to include the time.h header file to be able to get the system date and time to appear on some menus I am creating, but it doesn't seem to include the features I want, (I am using the...
I checked through the FAQ and didn't find a method to retrieve the system date and time. I would like to show these items on a menu formatted as follows:
i.e. date in MM/DD/YYYY
time...
I am in the process of creating a series of menus for a program I am writing. I have the Menu_Opt field defined as:
Char Menu_Opt[4];
This way I can support a three character option and the...
FYI, the program worked with all of the lines of code I added prior to adding the logic to read the *.csv file. This is the logic I added to hopefully remove the constants I have set up for each of...
I have the program compile down to two errors now. They are:
c:\dev-c_~1\examples\curren~1.cpp:663: `::ios_base' undeclared (first use here)
c:\dev-c_~1\examples\curren~1.cpp:663: parse...
Here is a *zipped version of my program. I hope that this helps. Just as a reminder, I am using Dev-C++ version 4 as my compiler.
This didn't work, do you have any suggestions? Should I include the program as a *.zipped attachment? If I do send it that way, do I need the code tags for this file too?
The errors I get are as follows:
c:\dev-c_~1\examples\curren~1.cpp:663: `::ios_base' undeclared (first use here)
c:\dev-c_~1\examples\curren~1.cpp:663: parse error before `::'...
I can vouch for the system("cls") command. I have it in one of my programs and it works great on Windows XP.
I editted my program portion of the message. Can someone please help me with it? I am not sure what is wrong. I think I have everything the way that was entered by LuckY's response.
The code is as follows:
float Curr_Conv_Factor; /* Individual currency conversion factor read from
file to be used to fill the array */
float...
I have the code just like LuckY has listed above, but I have several errors now. Should I provide a list of the errors for further help?
I changed the Curr_Conv_Factor to int like you suggested and recompiled and ran it. I still get only the first record read. I am new to this, this is why I am not sure why I have the problem.
Thanks for the help about the code tags. I am including 48 records from my *.csv file or two rows worth.
...
I am using Dev-C++ 4. I see that my code is still not conforming to the standards of using code tags, sorry about that!
I wrote a simple routine to read and load values from my currency exchange rates.csv file, but it appears to keep reading the first record. Because of this, my check for EOF never gets satisfied. ...
I looked at this answer and am still a bit confused. I am including 48 records below as sample data.
...
I would like to read in a *.csv file into an array defined as 24 x 24, but not sure how to do it. The name of the file is Currency Exchange Rates.csv. Can I use the file using this name, or should...
I guess I should have checked there first. Thanks for your help.
I have created a function to clear my screen in between displaying various menus within a program. I am not sure how to have the cursor position back at the top of the screen for displaying the next...