sorry guys the \n isn't in my real code, but i still have the problem!
BBNERD
Type: Posts; User: BODYBUILDNERD
sorry guys the \n isn't in my real code, but i still have the problem!
BBNERD
hey whats up..i hate getlines..we're working in UNIX on a binary file program..
and i need to ask for a persons name...and i tried to ways..
way 1)
string key;
cout << "Enter name\n";...
i made it into a function...i think my error checks are off..i'm so confused!!
BBNERD
can you post that in a little more detail...i'm a little confused on what you mean...... I've been working on this program waaaay to long and my mind isn't working..and its due tomorrow! AHH
...
hey guys, i'm writing a program that schedules appointments, cancels them, etc..
i have 6 classes...
appointment- checks to see if an appointment is valid
car- holds all information about a car,...
i'm using .net right now! HELP!
Hi guys,
I'm in adv. c++ at my college here and its rough..really rough..i'm starting to hate it and i dont' want to do so..i started last night at 7PM and went to bed this morning at 4..and i'm...
i know this, i'm friends w/ vanished...my question is a little different..maybe i didnt' explain it enough..
i want to have say a song play throughout the whole program..and loop over and over....
okay i'm sorry, i realized it would be better in gaming board..it was an honest mistake..i didn't even think about it while i was doing it...sorry!
:( now no one will help
BBNERD
i'm sorry won't happen again
i realized after i did it that the post would be better for gaming board...SORRY!
BBNERD
hi,
i'm making the game battleship..and i have used the playsound function to include .wav files in my program...
for example...an explosion when a ship is hit, etc.
BUT i wanted to know how...
i'm making a program...and i know of the play sound function...
but i want it so that i could play a song throughout the whole program...not just at certain parts....can anyone help me with this?
...
we use .net, & console applications if that helps
is there any other simple sound commands you can use on simple
c++ programs besides "\a" ????? is so what are they..
thanks...
BBNERD
you say my loop is wrong? i dunno if you did something wrong i thought that was one part i had working right..LOL ahh well screw it..i guess nothing is working.....
i'm sorry for being such a pest...
yeah post what you have
anything helps...my WHOLE class is lost on this program..its due friday..and doubt anyone will turn it in..lol..so much for my A....
haha
BBNERD
when i shoot a missle, it finds a spot on the field that isn't where its located when i look at the field itself..thats weird...
AHH again and again
I FIXED IT..woohoo..got HTML on the brain too
ocean.h file
#ifndef OCEAN_H
#define OCEAN_H
#include <iostream>
using namespace std;
class ocean
the ~ represents an empty space, i'm just wondering how on the field, it shows me for debugging purposes it says there's a letter there, but then when i call it it says there isn't...
ahh
nope not a ship...but i dunno where i coulda went wrong..hmm
i can't figure it out..
this hasn't been my day...i can't program,
i find out my friggen gym that i work out at is closing...
and finals are next week...
AHH
its hard to tell what it does w/ the debugger...i don't even know how i could get a 61...
BBNERD AKA RETARD
the code that checks for the shot at the beginning of my else if statement is...check_shot..
it looks like this..
bool ship::check_space(char dir, int col, int row, ocean field)
{
if(dir ==...
i can't be the teachers fault..LOL i think i'm doing something wrong...AHH