[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

c++ assignment help

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 40
Thread images: 1

File: tfw.jpg (55KB, 625x322px) Image search: [Google]
tfw.jpg
55KB, 625x322px
Hello /g/. 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: http://pastebin.com/m6HGuMCT
The file mentioned in the assignment: http://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?
>>
Disgusting fixed length CSV file. It's pretty easy to program mate.
>>
>>58056445
> 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
>>
>>58056584
I'm tired and stupid as fuck at the moment.

>>58056653
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!
>>
>>58056712
Post a correct struct and I will help you with I/O
>>
>>58056712
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.
>>
>>58056445
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.
>>
>>58056712
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 }


>>58056732
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 )

>>58056748
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.
>>
>>58056801
I hope I did that struct right...
>>
/g/ 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
>>
>>58056445
struct customer{
char lastname[11];
char type;
struct number{
unsigned checking : 17,
saving : 17,
credit : 24,
mortgage : 20;
};
};
>>
>>58056838
The reason I come to you guys is that I only have 3 hours to get it done.

I figured /g/ could do something like this in their sleep. I didn't mean no disrespect by bringing my garbage here
>>
>>58056801
>If you're willing to wait until Friday, I'll pay you $50.
BULLSHIT

as is the rest of your story
>>
>>58056876
The 50 bucks is bullshit yeah.

But the rest is the sad truth
>>
>>58056445
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
>>
>>58056914
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?
>>
>>58056931
No fuck off, /g/ isn't your pajeet level homework aid group. As other anon said, your better of posting to reddit.
>>
>>58056801
>>58056931

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.

>>58056965
Never used reddit. Not sure if I have time.

>>58056973
I just felt bad for him.
>>
>>58056985
Go on Omegle, put programming, coding and computer science as your interests, and solicit help from the people you connect to.
>>
>>58056985
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.
>>
>>58057033
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.

>>58057027
There's an idea. I'll try that.
>>
>>58057066
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.
>>
>>>/wsr/1

Fuck you /g/ for not sending him directly to /wsr/.
>>
>>58057103
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: http://pastebin.com/VVgXxY8J
Code file: http://pastebin.com/0kn7a735
Header file: http://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

http://pastebin.com/k2zP6EJt
>>
>>58057231
Oops, wrong instruction!
http://pastebin.com/nSrK3GRD
>>
>>58057249
I already gave him the red light.

But I'll look into your code for my own sake.
Thank you!
>>
>>58056860
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.
>>
>>58057279
This was meant for you >>58057249
>>
>>58057242
Also this was meant for OP >>58056445
>>
>>58057279
this
>>58057292
and this was meant for >>58057242

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 /g/ use char not string
Its like you want to make your life harder than it has to be.
>>
>>58057307
>http://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 http://pastebin.com/p9PELKEG
Thread posts: 40
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.