Disgusting fixed length CSV file. It's pretty easy to program mate.
Cooper Gomez
> not even a line of code yet > assignment is to declare a struct
Dafuq u doin m8
start with the *literal* fucking word "struct", take it from there
Jose Howard
I'm tired and stupid as fuck at the moment.
It's the array part and loading from file that fucks with me.
Joseph Jenkins
Fixed length lines Fixed array Simple loop shit required for search Wew lad I'm a turbo CPP pleb and I could probably do this.
Asher Hernandez
OP here. I'm probably the biggest retard on the damn planet. And I'm aware of that fact. But I've been working on 5 other assignments for the past 4-5 hours and I'm running on no sleep due to work and what not.
If it's that easy, could someone whip something up for me? It would really save my butt!
Ian Turner
Post a correct struct and I will help you with I/O
Jordan Diaz
paypal me or another neckbeard $5
Brayden Myers
ifstream (char [10] , char[1] , int x 3) all in a for loop since it's fixed. After that just loop out the output.
Hunter Hernandez
Turn it in late you stupid bitch. You're not doing yourself any favors by not learning this.
Angel Cook
If you aren't going to do the work just drop out. A W is still better than an F and if you're behind now you're just going to be further behind later.
Camden Thompson
Linking this thread to your professor.
Luis Clark
struct customer{ char name[10]; char type[1]; int checking; int account; int card; int mortgage; };
customer someName{ name="Bobby", type=D }
If you're willing to wait until Friday, I'll pay you $50. I really fucking need this done by 6 am( 3 hours from now )
It's already late as fuck
Side note: This isn't my assignment. I don't go to college. I'm doing it for a friend who was desperate and I told him that I would see what I could do. I did finish the first 5. But as I'm a programming nobody myself, got stuck on this assignment. I'm just trying to keep my word.
Michael Clark
I hope I did that struct right...
Austin Lee
Sup Forums will only mock you and call you a ratard. Rightfully so If you really want this done go to reddit and post in the freelance subreddits. I'm sure some third worlder pajeet will be able to do this for like 1-10 bucks. It's really simple shit
The reason I come to you guys is that I only have 3 hours to get it done.
I figured Sup Forums could do something like this in their sleep. I didn't mean no disrespect by bringing my garbage here
Elijah White
>If you're willing to wait until Friday, I'll pay you $50. BULLSHIT
as is the rest of your story
Evan Reed
The 50 bucks is bullshit yeah.
But the rest is the sad truth
Gabriel Carter
you are literally asking us to make you whole assignment for some poo-college ? also it is so easy you can make it in 5 mins. fuck off and start coding
Julian Robinson
If I post my code on some of the other assignments I did today, will that be enough to convince you that I'm trying?
Charles Barnes
No fuck off, Sup Forums isn't your pajeet level homework aid group. As other user said, your better of posting to reddit.
Wyatt Rivera
Why exactly are you doing your friend's assignments?
Is it some chick/dude that you want to bang or are currently banging in exchange for doing their homework?
Robert Adams
Look guys, I'm not asking for any thing complicated. You're all saying how easy it is, so I just thought you guys could help a fellow out. It's just that I've been working all night to meet a deadline for a friend and I'm exhausted.
If you don't want to help, that's fine. I just wanted to at least ask.
Never used reddit. Not sure if I have time.
I just felt bad for him.
Logan Collins
Go on Omegle, put programming, coding and computer science as your interests, and solicit help from the people you connect to.
Bentley Flores
If your bullshit story is true, you're not doing your friend any favors. He'll just flunk out later and rack up even more debt before he realises he can't do shit.
Grayson Collins
I'm not doing THIS for him per se.
I took over for him because he freaked out and I thought it looked easy. Now I just feel like shit for not being able to pull through.
There's an idea. I'll try that.
Henry Bennett
Dude, your friend is not even worth to graduate. I don't want to work with people like that who can't figure something like this on their own.
Jaxson Torres
Fuck you Sup Forums for not sending him directly to /wsr/.
Landon Phillips
Well, I just sent him what I've already done.
Thanks anyways.
I guess for shits and giggles, here's one of the completed assignments: Instruction: pastebin.com/VVgXxY8J Code file: pastebin.com/0kn7a735 Header file: pastebin.com/0sYwxzma This is my shit level of coding so take it with a grain of salt and try not to be too harsh on me
But I'll look into your code for my own sake. Thank you!
Zachary Johnson
Those bit lengths are excessive (and ultimately unnecessary), but they got me thinking: it is actually possible to pack all 4 numeric values into a single 64-bit field. 20 bytes total per struct (unaligned), compared to 28 in the naïve solution.
Brandon Gutierrez
This was meant for you
Lucas Bailey
Also this was meant for OP
Gavin Young
this and this was meant for Dammit I'm tried...
Owen Jackson
For I/o because the file is already formatted, legit just do a while loop and get the line. Then with sstream you can just take in the required data
Evan Evans
>Plebs on Sup Forums use char not string Its like you want to make your life harder than it has to be.