Oh wow this is cool.
I need to find time to play it.
Oh wow this is cool.
Yep this is cool!!!WhattayaBrian wrote:Oh wow this is cool.
I need to find time to play it.
This is indeed cool.lukaramu wrote:Yep this is cool!!!WhattayaBrian wrote:Oh wow this is cool.
I need to find time to play it.
<- Go team Yeah Doctor Shemp.!
<- That's everyone being nice to me. ^^I think that's the kind of thing that's only really cool if you're the one doing it, and if you're not just watching a video of someone doing it1Ashan wrote:
<- Go team Yeah Doctor Shemp.!
<- That's everyone being nice to me. ^^

Sounds like college to me. xP I've had to do that screenshot thing too.Ashan wrote:It just wastes time for no reason.
<- Go team Yeah Doctor Shemp.!
<- That's everyone being nice to me. ^^Code: Select all
void swap(int & a, int & b)
{
int temp = a;
a = b;
b = temp;
}Code: Select all
swap(array[index], array[index + 1]);Code: Select all
void swap(int * a, int * b)
{
int temp = *a;
*a = *b;
*b = temp;
}Code: Select all
swap(&array[index], &array[index + 1]);Code: Select all
swap(array + index, array + index + 1);Code: Select all
srand(time(0));Code: Select all
srand(int(time(0)));And I looked back in the assignment, and it does saythe marker wrote:(-10) - Doesn't use constants. Conversion factors should be as const
so... I guess I made a mistake? It didn't really say I had to use constants, it just said make sure constants are doubles.Declare all variables and constants as data type double.
Code: Select all
double tonsToPounds(double x){
const double TONS_TO_POUNDS = x * 2000;
return TONS_TO_POUNDS;
}Ahhh, sorry. I read your post in a sarcastic tone. (Relevant)RenaBeach wrote:no im being sincere that was good
Yeah, that's why outside of my class I've been working on some basics, like, more recently, that sorting algorithm for an array. I'm still kind of intimidated with stuff like UE because I've never done anything like it before. I suppose you just gotta jump in at some point, but the whole thing still feels kind of daunting from my perspective. I'll give it a shot sometime soon though!RenaBeach wrote:you should program something more interesting though
sign up to that thing i posted on the last page and get ue4 and put your c++ to use
Yeah, your explanation is kind of what I had in mind. I suppose writing out things in plain English will pretty much always make things easier for other people in the long run. I'll keep that in mind, thanks!WhattayaBrian wrote:stuff and things
Yeah, this might be my last time doing so.RenaBeach wrote:lol textbooks for classes i never bothered buying any of them and i'm glad i didn't
I've seen people online (stack overflow and whatnot) tend to use std:: so yeah, I was kind of wondering about that. Is there a reason it's "bad practise", other than I'm guessing you just don't use cout and whatnot in day-to-day C++ programming?RenaBeach wrote:typing std:: before the few std functions you call is not a big deal when you get used to it and "using namespace" is really not used much in practice for good reason
the bizarre "using namespace std;" habit that introductory courses hammer into people is really not a good one
Code: Select all
java.util.Scanner sc = new java.util.Scanner(System.in);Code: Select all
import java.util.Scanner;Code: Select all
Scanner sc = new Scanner(System.in);Code: Select all
#include <iostream>
int main()
{
{
using namespace std;
cout << "Yay";
}
cout << "This is a compile error!";
}
<- Go team Yeah Doctor Shemp.!
<- That's everyone being nice to me. ^^