Computer Programming - Seneca Polytechnic College

CPS

Computer Programming - Seneca Polytechnic College

Join the community to ask questions about Computer Programming - Seneca Polytechnic College and get answers from other members.

Join

can anyone explain to me why this is wrong?

i tried cin >> passName however that gave me error as well

function return..

im not sure what to return for this function? TourBus& TourBus::startTheTour() const { if (busSizeNumber != 4)...

Why does my program say my class doesn't have a member function?

I declared everything in the header file and defined it in the cpp file. Not sure why the main program file is saying this member does not exists...

Why is my cout formating not working?

for some reason my cout is not filling with periods . but the three underscores still show up. Not sure why the program is skipping fill.

why can't I use cinRef.getline()?

I have to read a name from a csv file using this method. Is there a reason why i cant just use cinRef.getline() or am I calling the getline method incorrectly?

Not sure why I am getting a segementation fault in the matrix but locally i can run my program

apparently after calling set i get a segementation fault. It runs fine locally, idk if i have to validate the value before setting or is there something im missing

How do i cut off this long string? with cout

i tired using precision and setting it to 30 but that doesnt work

how do you check if cin fails?

how do i know if cin fails when getting the input? do i use an if statement or something to see the value?

Why doesn't my Regex match with the given example?

im getting a false value when i test my regex with the given string not sure why

Help nullptr

im not sure why this is saying its a nullptr

My sort function is working but it doesnt match the exact way the matrix checker sorts.

my function sorts correctly by population size but when two values equal the same it puts the p5e postal code above the E7C postal code. Is there a way i can fix this so it shifts the postal code by just checking the population values? I used selection sort to sort the array...

Uniformly Distributed Random Function in c?

Trying to implement a function to approximate the value of pi, for which to be accurate I need uniformly distributed random numbers(float). Any hints on how I would go about implementing that?

How do i debug Memory leaks

First time I'm seeing a memory. It looks like my FreeMem() function delete(void*) is the problem ? would that be correct

Seneca computer programming

Hello, I am looking to see if Seneca CP is a good program take? Can someone shared their experiences of the program? TY 👍...

Not sure why I am getting an error here

I did some more debugging and im running into an error at this section of my code. This is the error i got, im not sure why. I think it might be because im not storing the values to the dynamic memory properly.

I dont know why i am getting a segementation fault here

I used the lldb debugger and its saying my segmentation fault is occuring on this line, not sure why. I thought by check to see if the value is not a nullptr then i can continue to deallocate the dynamic memory

Help

Why is this happening?

CO-OP

Anybody international here, taking an extra year because of co-op?