how do I make the statement take effect?
Ok sry didnt notice the == vrs the = there lol I got It its working now thanks.
Type: Posts; User: Kevineze
how do I make the statement take effect?
Ok sry didnt notice the == vrs the = there lol I got It its working now thanks.
heres better example of code maybe thsi will help give u an idea of what im talking about. I declare bank as 40 but keeps sayign its 22. why is this?
#include <iostream>
using namespace std;
...
currently wrote a bank account type code it compiles well but instead of givign a starting bank account of 40 when i run it it gives a starting bank account of 22 + the deposit. I also tryed usign a...
damn jus read that u gotta use rand() for this guess i gotta pospone my "project" n do some readin thx for help
how would I declare theres 50% chance to win bet?
ok this is what I got so far. i got in error when i get to please enter ur bet line. can you at least tell me if im on the right track?
#include <iostream>
#include <cstring>
using namespace...
this project is confusing I think I should just write source code first. which type do I choose windos app or empty? remember im new to C++ n programming
o yeah i use dev c++ thanks for reminding me lol
How would I set a constant to declare my starting bank account?
I thought about just usign cout<< but that would be stupid since its only giving output
thx guys this makes sense to me.
lemme try n write somethin n c if it works then run it by you guys
Hey looks like imma start being a regular in this forum :) ok to the point I wanna start a new project and its a very simple gambling system. Its where u enter the amount of cash you want to bet and...
so fricking confusedy if im being a pain
#include <iostream>
using namespace std;
int square x;
int main()
{
Ok that explains it better but at the top I have to declare the function like int ( x and whatever
how would I declare the function by using only one variable?
but how would you use that square function in a program i tryed but got confused by ho to declare x
thanks
Im C++ newbie im started understanding if commands,loops, and strings and even made a mini project by maiking a basic math quiz. the thing i wanna hit next is understandign functions. the tutorial is...
ok the loop worked i declared the num variable and made some other changes this is what i did. it shuts the program if u dont press 1 cuz of the cin.get() but im not done wit program yet check this...
you mean like int num?
I tryed that but it gave me same error
this my code so far. it keeps giving me an error when i get to cin >> num part any ideas? what am I doing wrong
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
Im looking at tutorials of C++ trying to learn it. also swgh I know how to loop number but how would u loop those If statements? sry for acting like a newb lol
sry just a question I get confused sometimes on when to use cout<<endl can someone explain and use an example? this topic sheds some light though
Hey im 16 and a beginner to C++ just trying to learn it on my own to get rdy for college. Now i m writing a math quiz (lol) for exercise and im wondering how to use if commands to reset/ or continue...