Bes Posted April 6, 2020 Report Share Posted April 6, 2020 Can someone help with a code for reading a csv file using system c Quote Link to comment Share on other sites More sharing options...
David Black Posted April 6, 2020 Report Share Posted April 6, 2020 This is not a SystemC issue. This is a C++ issue and you need to go to a C++ forum to improve your C++ skills. There are plenty of tutorials of various types for this. Pretty much any C++ solution will work. Quote Link to comment Share on other sites More sharing options...
Bes Posted April 6, 2020 Author Report Share Posted April 6, 2020 Can you put links for some of these references as my reference is a text book however I didn’t understand from it Quote Link to comment Share on other sites More sharing options...
David Black Posted April 6, 2020 Report Share Posted April 6, 2020 For your specific problem just Google "C++ read CSV": https://thispointer.com/how-to-read-data-from-a-csv-file-in-c/ https://www.gormanalysis.com/blog/reading-and-writing-csv-files-with-cpp/ For C++ try: https://www.geeksforgeeks.org/c-plus-plus/ http://www.cplusplus.com/doc/tutorial/ Bes 1 Quote Link to comment Share on other sites More sharing options...
Bes Posted April 6, 2020 Author Report Share Posted April 6, 2020 Thank you Quote Link to comment Share on other sites More sharing options...
Bes Posted April 7, 2020 Author Report Share Posted April 7, 2020 Excuse me i want to make sure that the code to reading a csv file from c++ would still work using system c cause it’s obligatory for me to use system c while reading the file Quote Link to comment Share on other sites More sharing options...
David Black Posted April 7, 2020 Report Share Posted April 7, 2020 SystemC is simply a C++ library. The syntax of SystemC is C++. To meet the requirement of using SystemC you would probably just place the C++ inside a SystemC SC_THREAD method. SystemC is easy to wrap around C or C++. This is sounding more and more like you are doing homework for a class, which means you need to get educated. This forum is not a place to have us do your work for you. First, go and learn C++. I don't mean minimal C++ either. SystemC uses plenty of advanced constructs of C++ including OO concepts, generic programming concepts and coding patterns. You have very little hope of being a successful SystemC coder if you don't know C++ well. Second, take a class on SystemC or read a good book. Take time to do the examples and understand how it hangs together. Shy of the above, find another field of endeavour. In any case, please do not ask people to do your homework. We have enough on our plates as it is, and you will do your future employer no favor if you slide by with minimal SystemC skills. Where to take a course? Try https://www.doulos.com/content/training/SysC_training.php (my employer) Where to find a book? Try Amazon. I wrote a book (slightly dated: SystemC: From the Ground Up) that will get you started. Or search for others. But a SystemC course or book will not help much until you become proficient at C++. Bes 1 Quote Link to comment Share on other sites More sharing options...
Bes Posted April 7, 2020 Author Report Share Posted April 7, 2020 By the way i opened this reference book and didn’t find it helpful at all, it’s very hard to learn from, and i am not asking someone to do my homework for me i am asking for help for solving the errors cause sometimes i don’t find a way to solve them! ,Or simple questions that would save time and of course I’m learning the language by practicing alot and trying as much as i can to read more and practice more Quote Link to comment Share on other sites More sharing options...
David Black Posted April 7, 2020 Report Share Posted April 7, 2020 I'm sorry, but I really think that if you upgrade your C++ skills, most of these errors will become obvious. Q: Have you tried putting your code onto http://www.edaplayground.com? You can then share a link to your code, which will make it infinitely easier for somebody to comment on the errors. It's free. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.