Is there a way to set all the elements of an array to a certain number, say 1, without doing something like
hello[] = (1, 1, 1, 1, 1, 1, 1, 1, 1...)
?
Currently I'm using (for a 3 by 3...
Type: Posts; User: |Wiz|
Is there a way to set all the elements of an array to a certain number, say 1, without doing something like
hello[] = (1, 1, 1, 1, 1, 1, 1, 1, 1...)
?
Currently I'm using (for a 3 by 3...
How do you go to a new line when using vectors?
Hey - it still crashes.
Ah well, code-posting time.
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <time.h>
ah, but compare
#include "boost/multi_array.hpp"
#include <cassert>
int
main () {
// Create a 3D array that is 3 x 4 x 2
Ah, but can you access parts of it using array format?
Yours certainly looks much nicer than the others.
Do you substitute the variables in "COLUMNS" and "rows"? My VC++ 2005 doesn't seem to...
I want to create an array such as int array[x][y], where x and y are specified by the user beforehand. Is there a way to do it?
I searched for array and dynamic array and came up with nothing.
Maybe add a "#include "stdafx"" ALL THE WAY at the beginning if its not there. The compiler requires it.
Did you declare the variables beforehand?
I accidently used "cin" and not "cout". I corrected it about a minute later.
If you want to do cin, do what David said - use ">>".
And cin.ignore DOES make a lot of difference - if you had...
And maybe you need to use "cin.ignore" after the "cin >> ... ;".
And speaking of ignoring, ignore decrypt's
cout << this << is;
and instead use
But you can still terminate svchost.exe.
remember to follow the directions
<html>
<A HREF="http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx">here</a>
</html>
I hope the html works...
If not then just copy and...
and the library files are copyrighted...I think.
so get them off the library site
*brain freezes and explodes*
How do you get the program running before you log in?
But I also agree with FoodDude and durban's comments.
1. installing SDK
2. modifying everything I could to make Win32 applications available (msdn guide)
3. puzzling over VCProjectEngine.dll.express.config
3. copying and pasting everything from the...
Hmm...it seems like my Microsoft Visual Studio C++ Express Edition doesn't even come with the standard Microsoft Windows header files!
nvm...solved!
I don't think anything is unterminatable - heck, you can even terminate Windows!
I mean, what can a Windows form application do that a Windows application can't, or what can a Windows application do that a Windows form application can't?
Or is it that they are the same?
Thanks...
What's the difference between a Windows form application and a Windows application?
Thanks, the && was what I needed.
BUT before you follow your own advice, put the parentheses in
if ((argument1) && (argument2)) {run this}
or the && will most likely confuse the compiler
Can you make an "if" command like this?
if ( argument1, argument2){runthis}
wow - that was fast!
thanks.
this is my code:
#include <iostream>
using namespace std;
int primedivisor ( int original)
{
int vr;