Hi, could someone please tell me what function pauses a console program to stop it from dissapearing at the end.
Is it readln() or something like that?
Thanks :)
Type: Posts; User: Elite
Hi, could someone please tell me what function pauses a console program to stop it from dissapearing at the end.
Is it readln() or something like that?
Thanks :)
this is what i have so far
int main()
{
char mean[] = "nothing";
if(a < b)
{
Hi, I just found out there are no strings in c.
I need a place to store a word that changes often. Unfortunatley the 3 words that will be stored are of different length.
What should I use to...
woops :o
Thanks!!
Hi, I am having trouble using doubles with scanf.
Here is the code i'm using
#include <stdio.h>
int main()
{
Thanks itsme,
I found a different solution before you post that seems to work
int speed = -1000;
printf("Please enter a speed: ");
scanf("%d", &speed);
if(speed == -1000)
Hi, I am trying to make a program that asks a user to enter a speed. The speed shoud be a positive int. How do I make it if a user enters say xyz, a message will say invalid input?
eg
int speed =...
Thanks bithub
That is handy
Cheers :)
Hi, I have a problem that involve global variables. Basicaly, i start in a while loop when a value is true but i cant make that value false when in another function.
I have 2 source files and one...
Hi, I am making a simple program that asks the user to input 2d points and the program will perform various functions.
This is what I have so far
#include <stdio.h>
struct point2D
{...
Thanks guys, I had #include <iostream> in a header file.
I didn't know about std::
Is that new?
I thought namespaces were just a part of managed code like c#
Is there any books about c++ using...
Hi, I am trying to learn c++ from a book called c++ primer. I am using vs .net 7.1
This will sound like a silly question but has c++ changed heaps in this compiler?
When i start a new win32...
Thanks for such a complete answer Salem. Great help :)
Hi, I am still new to c so this might sound like a basic question. Up till now i have been using scanf to store user inputted numbers into int and float ect. I am reading a book called Practical c...
Hi, I am having a little trouble understanding constructiors and member functions. I am reading 2 books on c++, sams teach yourself c++ in 21 days and c++ interactive course. I am up to the chapter...
I C, I think i'm getting it now, i'll have to write a few programs with them to get comfotable:)
Thanks for you help
Hmmm.....something just occured to me, when i get this program running, how is the switch code going to know if i press a,b or c?
Its got case 1; case 2; ect, shouldn't it be case a; case b; or...
Thanks Blackrat, its starting to make sense now, i did a quick google on constructors/deconstructors and i still need to learn about them then it should be clear. Is it because when i create a shop...
Hi, I am still reasonably new at this and i've come up against yet another problem. So far i haven't had trouble creating classes and objects and using member functions of specific objects in main,...
Thanks for the tip DougDbug
you guys rule:)
Ahhh, it all makes sense now, sorry i dont know how i missed salems post
Well thanks heaps for that :)
Well its starting to make sense now but its just not compiling and when it does the program doesnt work
The book i'm using is called c++ interactive course which was recomended by lots of ppl at...
Thanks ... , but that doest seem to work
example
#include <iostream>
int half(int letter);
int main()
Hi, I've been trying to get a simple fuction to work for ages, i understand what functions are and what they do i just dont know how to make the give and return values. I've read the chapter on...
Thanks for the tip bennyandthejets:)