no.. I was wondering if there was any general way to do it (edit: by programming, not doing it manually).
Not all graphic drivers installs any program to rotate the screen (which is added by...
Type: Posts; User: Dag_
no.. I was wondering if there was any general way to do it (edit: by programming, not doing it manually).
Not all graphic drivers installs any program to rotate the screen (which is added by...
use strings or chars
with chars:
char name[20]; // a variable that can hold 20 chars
cin >> name;
Still it wont print the content of the variables!
you need to have it
cout<<"Thanks. Your details are as follows " << yourname << "\n" << youraddress << "\n" << yourage << "\n\n";
But...
hello
Any way(API or something) to write a program which rotates the whole content of a screen by XX degrees? I have searched google, found something on MSDN sites for Windows CE:
(...
Ok thanks
I remember reading somewhere on this forum(I think) that says declaring global variables outside/before the main function is bad.
why is that?
Dag
Hello
I am trying to make something by the cprogramming.com tutorial of linked lists. Problem is in the remove function, in the line where I'm trying to "delete conductor".
Anyone see what the...
well, it was a I was suppose to delete... since I have a char array that stores 2 elements, ex
char a[2];
a[0] = 'a';
a[1] = 'b';
now that those are set, I want to remove the values in...
great :)
thank you!
wow, lots of replies!
I would like to thank all who explained this sizeof thing also! I think I understand it a bit more now...!
greatly appreciated!
Dag
Q1:
string s;
cin >> s;
how can I include all the input words?
f.ex if I write hello world and try to cout << s; only "hello" will be couted.
Thanks you!, that is just what I wanted :)
char *f;
f = "123456789";
cout << "size of f is " << sizeof(f) << endl;
Why is this 4? Everytime I compile it, its 4.
No matter what I put the value of f to be, it says 4.
I would really...
thanks :)
Ok I did a try now, but somehow it does not work correctly-- it allways goes to the else clause, and there it allways just couts a dot(.), not any files, for example when I input "C:\\WINDOWS\\*"....
thank you :), what about linux?
Hello.
Could anyone please give me a pointer to where I could find out more about how to do a check in the program whether a folder is empty or not? I dont really know what to search for, so just...
Okay, I thought that was just if the person were asking others to do his homework.... Not if someone just wants to write the code. I think that is a good way to learn(for me or the person who try to...
this looks pointless?
for(j=0; j < 3; j++)
{
cout << "." << endl;
}
I was bored and saw this thread, here is how I would have done it:
#include <iostream>
#include <stdlib.h>
#include <math.h>
using namespace std;
double GetDistance(double X1, double...
major_small why are you so rude?
I was just wondering why someone was using this over using braces.
Also I'm new to c++ programming - so what? new people is not allowed to ask questions in here?...
Ok got it.
thanks
The compiler I use has no problem compiling and executing this
if (var == something) cout << "this"; cout << "that";
if (var == something) { cout << "something else"; }
or
if (var == something) cout << "something else";
why is someone using without brackets {}? Is there a difference on those 2?
thank you :)