C++ assignment help

Hello Sup Forums. I'm hoping you guys can help me out here.

I just got done completing 5 assignments and I've got one more to go and it's due in 5 hours and I'm stuck.

The assignment: pastebin.com/m6HGuMCT
The file mentioned in the assignment: pastebin.com/cvcYnP2T

I'm tired and I feel like I'm gonna die.

Is there any way you guys could help a beginner out?

Other urls found in this thread:

pastebin.com/VVgXxY8J
pastebin.com/0kn7a735
pastebin.com/0sYwxzma
pastebin.com/k2zP6EJt
pastebin.com/nSrK3GRD
pastebin.com/p9PELKEG
twitter.com/SFWRedditGifs

Disgusting fixed length CSV file. It's pretty easy to program mate.

> 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

I'm tired and stupid as fuck at the moment.

It's the array part and loading from file that fucks with me.

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.

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!

Post a correct struct and I will help you with I/O

paypal me or another neckbeard $5

ifstream (char [10] , char[1] , int x 3) all in a for loop since it's fixed. After that just loop out the output.

Turn it in late you stupid bitch. You're not doing yourself any favors by not learning this.

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.

Linking this thread to your professor.

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.

I hope I did that struct right...

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

struct customer{
char lastname[11];
char type;
struct number{
unsigned checking : 17,
saving : 17,
credit : 24,
mortgage : 20;
};
};

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

>If you're willing to wait until Friday, I'll pay you $50.
BULLSHIT

as is the rest of your story

The 50 bucks is bullshit yeah.

But the rest is the sad truth

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

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?

No fuck off, Sup Forums isn't your pajeet level homework aid group. As other user said, your better of posting to reddit.

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?

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.

Go on Omegle, put programming, coding and computer science as your interests, and solicit help from the people you connect to.

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.

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.

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.

Fuck you Sup Forums for not sending him directly to /wsr/.

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

not perfect but this should get you started

pastebin.com/k2zP6EJt

Oops, wrong instruction!
pastebin.com/nSrK3GRD

I already gave him the red light.

But I'll look into your code for my own sake.
Thank you!

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.

This was meant for you

Also this was meant for OP

this
and this was meant for Dammit I'm tried...

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

>Plebs on Sup Forums use char not string
Its like you want to make your life harder than it has to be.

>pastebin.com/nSrK3GRD
ah, got it

well, if he still wants it, i figured i'd just wrap it up-- here's a completed version just in case pastebin.com/p9PELKEG