Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #4K
~843 People Reached
Favorite Forums
Favorite Tags
c++ x 11
Member Avatar for doolali

Like it says in the title im having problems with putting a 2D array into a function. Im not sure on the syntax of putting an array into a function and using it, any help is much appreciated! Thanks in advance! [CODE]#include <cstdlib> #include <iostream> #include <string> using namespace std; …

Member Avatar for doolali
0
112
Member Avatar for OneRunner

So, Daniweb. My teacher has been teaching us some old C++ (a problem I've been trying with little avail to rectify). I need y'all wonderful people to look over a section of code that I'm having trouble with. It has to do with recognizing a letter in an if statement. …

Member Avatar for doolali
0
118
Member Avatar for ccube921

I wanted the program to display each piece with its assigned color preceding it (eg a white rook would be 'WR'). [CODE]#include <iostream> using namespace std; struct attrib{ char x; int y; char cont[5]; char clr; }; attrib brd[8][8]; void prntbrd(void) { for ( int y =0; y<8; y++) //accesses …

Member Avatar for doolali
0
83
Member Avatar for doolali

Hey guys, ive just started learnng c++ after a year or so of java, one issue that has just cropped up for me is repeating input from console. if for example i ask for an input, expecting just 1, and the user inputs 2 with a space inbetween how do …

Member Avatar for doolali
0
530