Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Member Avatar for bigdan182

i am trying to figure out how to pass structures based on the state of one of the variables. bassically there are 8 "teams" that each have a "progress" variable that is a bool. I want to be able to pass the 4 "teams" that have had their "progress" bool …

Member Avatar for nmaillet
0
75
Member Avatar for bigdan182

hi, I have been writing a football tournament simulator and I am almost done, however i need to some how sort the teams after a round the put the teams that progress into the next round. The data of the teams is held in structures and have a boolean vale, …

Member Avatar for rubberman
0
136
Member Avatar for bigdan182

hey, I promise i'm getting there!! so my code now seems to be emptying the structures as they are passed between the functions, any thought on how to fix it? also if anyone knows of any good examples of passing by reference, that could apply to this code that would …

Member Avatar for NathanOliver
0
145
Member Avatar for bigdan182

hi Is there a way to pass a structure into a function in C++? ie if I have a structure of data, can I pass it in and use all the members without having to pass them indevidually? I basically want to pass team data into a function and that …

Member Avatar for danb737
0
157
Member Avatar for bigdan182

Hi I am writing a football tournament sim and cannot get the main of my program to deal with the structures which are defined in the header. Here is the relevent code: header file [CODE] #include <math.h> #include <iostream> #include <array> #include <string> using namespace std; struct team{ string name; …

Member Avatar for NathanOliver
0
190
Member Avatar for bigdan182

I keep getting this error while trying to make my football tournament simulator, anyone know how I can solve it? or even just what it means! ------ Build started: Project: world cup sim, Configuration: Debug Win32 ------ main.obj : error LNK2019: unresolved external symbol "void __cdecl teamstructure(void)" (?teamstructure@@YAXXZ) referenced in …

Member Avatar for bigdan182
0
153
Member Avatar for bigdan182

I am writing some code to simulate a football tournament by comparing several teams on several parameters. I need to be able to knock out teams, edit some stats mid simulation, and be able to easily access individual teams data, what structure would I be best using? I had thought …

Member Avatar for mike_2000_17
0
216
Member Avatar for bigdan182

hey guys, im fairly new to this so feel free to tell me if i need to supply more info. basically i need to write code to read in a text file and store different values in different variables, so for example i would read in: bob 1.1 maths 1.2 …

Member Avatar for abhimanipal
0
246