Posts
 
Reputation
Joined
Last Seen
Ranked #833
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Gadgetman_53

Hi, I am new to Java, but have been programming in C++ for a few years now. I am working on a project where I have to write a class to implement a gameboard. To do so, I'm using a 2D array of objects. I have a method that swaps …

Member Avatar for Gadgetman_53
0
282
Member Avatar for asweetroxxi

Put it in main and pass the ifstream value to the load_grid function [code=c++] string Input_File_Name; ifstream InFile; int number; cout << "Enter the name of the input file (ctrl-c to exit): "; cin >> Input_File_Name; InFile.open(Input_File_Name.c_str()); while(!InFile) // Tests the state of the ifstream { cout << "Input file …

Member Avatar for tux4life
0
103
Member Avatar for naheesa

Have you atleast written some code and ATTEMPTED to write this program? If so, Post the code (use code tags) and ask a specific question about some code you are having problems with. Then myself or others would gladly HELP. If NOT...

Member Avatar for siddhant3s
0
147
Member Avatar for sabian4k

Someone else correct me if I'm wrong, but you just write in pseudo code (not completely syntactically correct) the basic algorithm. Not quite sure what you're asking about the array though

Member Avatar for siddhant3s
0
196
Member Avatar for noobyjoe

Try something like this, I'm still new to C++, but learning. Hope this works. [code] int month; int date; int year; int someint; InFile >> month; InFile.ignore(500, '/'); InFile >> day; InFile.ignore(500,'/'); InFile >> year; InFile.ignore(500, '_'); InFile >> someint; //InFile is declared as the ifstream [/code]

Member Avatar for noobyjoe
0
160
Member Avatar for Gadgetman_53

Hey, I'm still fairly new to C++, and even more new to this forum. Any help would be greatly appreciated. Could someone look at this segment of code for me and tell me what is wrong with the "if" statements to change the time. I'm not getting the output that …

Member Avatar for Gadgetman_53
0
875