katokato -5 Light Poster

i have netbook with 4gb ssd for windows installation.
i need to reinstall it so the documents and settings is on main hard drive (100gb) and program files are also on main drive.

got my xp installation, and I extracted iso into actual folder with winrar, searched for WINNT.sif
i put the following commands under the unattandedgui section: ProfilesDir = D:\
Programfilesdir = D:\
then i took the folder and rebuilt it with imgburn and i got the edited iso to boot.
then when installation came, i chose to install on ssd 4 gig, installation was going good, then reboot, error came saying: setup log file corrupt, please provide more information fatal error. and some other error i forget.
i tried this with two other copies of windows that i had, but it still doesnt work?
how do i modify the windows installation unattanded to change profiles dri and prgoram files dir to different path?

i already read the kb article on profiles dir and it didnt help.

also i think i have to put programfilesdir under [UNATTENDED] not the gui unattanded part.
i will also try to put actual name
but it is so weird that id have to put actual folder name, youd think that it would make an actual directory named programfiles and documents and settings already?

okay i read a guide on how to do it:

i got another iso of windows xp.
extracted it with winrar
looked at the new folder that was extracted, searched ...

katokato -5

register(closer to processor than L1) : FASTEST WTF MABOB SO FAST FAST
L1(each core has its own) : lol wtf fast
l2(each core has its own) : fast
l3(cores share this) : lil fast
ram:(cores share this) slow
swap file(slower but stores a fuckton more info, used when you use too much ram): SLOWEST WTF MABOB SO SLOW

you can increase speed by having 2 hard drives and putting the swap file on another hdd and have the main os on a primary one.

when you talk about gpu:
Integrated GPU soldered on mobo(uses your dimm for storing graphics info) :: slowest of all, if you game on this you wont be happy, probably the weakest part of the computer

discrete gpu:: its a giant card that uses its own ram (and since its already together) its faster and contains more processing power (read better).

katokato -5 Light Poster

katokato -5

Where would I get the handle to the dialog box, and the handle of the menu?
I'm new at this so you will have to explain to me better.

katokato -5

bump

Narue commented: Bumping is incredibly rude and presumptuous. -5

katokato -5

wat abt australia dey wont enjoy cloud

katokato -5

bump

katokato -5

i played around with it..

[code]

include
#include <cmath>
#include <cstdlib>
#include <ctime>  /you need this to declare time
using namespace std;

int main()
{
srand ((unsigned)time(0));

char yn;
int parameter = 0;
int x = 0;
int rar = 100; //your guesses
int ror = 1;
int counter = 0; //counts how many tries it took me to get the answer
char number = 0;
while (yn != 'q')
{
x= rand () % rar+ror ;
cout << "is your number lower than " << x <<"?" << "guessed " <<counter <<"times " << "\npress q if i guessed your number correctly " << "(y/n) for answers\n";
cin >> yn;
if (yn == 'y') //if ur answer is yes that your number is lower
rar = x;

else /if you number is no
ror = x;

rar = rar - ror; //gets the numbers in between to guess

counter ++;
}

return 0;
}
[/code]

it will guess it in about 30 tries or so.
it needs more tweaking though.
sometimes it will get really close to the number (but thats rand for you) and then go completely random then it will come back close again.

it has a hard time guessing 69 for some reason
it also has a fu.ck detector, it will terminate itself if it senses that youre screwing around with it (lets just say, dont choose negative numbers).
also dont choose numbers higher than 1,000 because theres a lot of whole numbers there and ...

katokato -5

i think hes trying to make the program generate a random number and have the user guess it.

or something like 20 questions

[code]
srand ((unsigned)time(0));
[/code]
you need to use #include
to get time.
also you might want to generate numbers based on the users choice, like:
is your number more than 5?
(user chooses yes)
is you number less than 10?
(user chooses yes)

then the program should think that the number is between 10 and 5.

because in your program i chose higher than 50 and it asked me if my number was 1.
use less than and more than or equalto signs in your if functions.

also you dont want to initialize x and y integers in the loop. everytime it does the loop those integers will be reset to 1 and 100, giving you no baseline

katokato -5

katokato -5

i am a beginner also. i have found this website really good help: [url]http://www.winprog.org/tutorial/start.html[/url]

i think I would use pointers for that if i were you, since you can access anything in memory with them.

katokato -5 Light Poster

im new to this c++ thing and windows api thing, and i got most of this code from a tutorial but i modified it alot.
how do i retrieve a handle to a dialog box so i can put my menu inside it?
(when i put the code for the menu in resourcces into the definition of the dialog box in the resources i get a syntax error).
but i want to declare setmenu() in wm_initdialog, but it says i need a handle to the dialog box and a handle to a menu.
how would i get that?

since im learning i dont use visual resource editors.
main cpp:
[code]

include "resource.h"
include

const char g_szClassName[] = "myWindowClass";
HWND dialogshandle;
BOOL CALLBACK AboutDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
switch(Message)
{
case WM_INITDIALOG:

    return TRUE;
    case WM_COMMAND:
        switch(LOWORD(wParam))
        {
            case ID_STUFF_GO:
            DialogBox(GetModuleHandle(NULL),
            MAKEINTRESOURCE(IDD_ABOUT), hwnd, AboutDlgProc);
            case ID_NEW_WIN:
     MessageBox(NULL, "fua", "title", MB_OK);
    break;

    case IDOK:
                DialogBox(GetModuleHandle(NULL),MAKEINTRESOURCE(IDD_ABOUT), hwnd, AboutDlgProc);
            break;
            case IDCANCEL:
                EndDialog(hwnd, IDCANCEL);
            break;
        }
    break;
    default:
        return FALSE;
}
return TRUE;

}

LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
switch(Message)
{

    case WM_COMMAND:
        switch(LOWORD(wParam))
        {

    case ID_FILE_EXIT:

PostMessage(hwnd, WM_CLOSE, 0, 0);
break;
case ID_STUFF_GO:
case IDD_ABOUT:
{
int ret = DialogBox(GetModuleHandle(NULL),
MAKEINTRESOURCE(IDD_ABOUT), hwnd, AboutDlgProc);
if(ret == IDOK){
MessageBox(hwnd, "Dialog exited with IDOK.", "Notice",
MB_OK | MB_ICONINFORMATION);
}
else if(ret == IDCANCEL){
MessageBox(hwnd, "Dialog exited with IDCANCEL.", "Notice",
MB_OK | MB_ICONINFORMATION);
}
else if(ret == -1){
MessageBox(hwnd, "Dialog failed!", "Error",
MB_OK | MB_ICONINFORMATION);
} ...

katokato -5 Light Poster

Im supposed to create a program that will read 10 floating pt numbers into an array of 10 double. The program is supposed to quit on non numeric input, which i have succeeded in doing, and also the program is supposed to take an average of all of the numbers and report how many of the 10 numbers entered are above average (this is the part that im having trouble with). With the code shown below, the program takes an average but it doesnt report how many numbers are above average. Please help me.

#include <iostream>
#include <cctype>

int main()
{
          using namespace std;
          double input[10];
          double total = 0;
          double avg = 0;
          int count = 0;

          cout << "Enter the numbers (up to ten) then press enter, make sure each value is floating point\n";
          for (int i = 0; 10 > i; i++ )
          { 

                if (cin.fail() == false)
                {

                cin >> input[i];

                } 
                else
                {
                    break;
                    }

                total += input[i];    
          }

                avg = total / 10;
                cout << "Average is: " << avg <<endl;

                for ( int e = 0; input[e] > avg; e++)
                count++;

                cout << count << " Numbers are above average\n";
                cin.get();
                cin.get();
                cin.get();

          return 0;
}

katokato -5

hmm, would this be better?: #include

include

struct car
{
std::string carname;
int yearmade;
};
int main(void)
{
using namespace std;
int zero = 0;
int carcount = 1;
int count = 0;

int strcture = 0;
cout << "How many cars do you wish to catalog? ";
cin>>strcture;
car * cars = new car[strcture];

while(count != strcture)
{
cout <<"Car# " << carcount;
cout <<"Please enter the make: ";
getline(cin, cars[zero].carname);
cin.get();
cout <<"Please enter the year made: ";
cin.get();
cin >> cars[zero].yearmade;
count++;
vb2++;
zero++;
}
count = 0;
zero = 0;
cout <<"Here is your collection:\n";
while(count =! strcture)
{
cout<< cars[zero].yearmade << cars[zero].carname;
count++;
zero++;
}
delete cars;
return 0;
}

i tried it and when i go to input the make of the car, the loop spirals out of control. gives me garbage sometimes.

katokato -5 Light Poster

Im trying to learn c++ loops and structures with the c++ primer plus book.

Here is the question no6: [url]http://books.google.com/books?id=zuyAIZ9ZIskC&pg=PA205&lpg=PA205&dq=c%2B%2B+primer+plus+programming+exercise+how+many+cars+do+you+wish+to+catalog&source=bl&ots=mbyXM-wZBZ&sig=o0nBYx-ZkCShRJztCVoFTy4S1eM&hl=en&ei=BqxQTMKVK4eosQPi_bynBw&sa=X&oi=book_result&ct=result&resnum=1&ved=0CBIQ6AEwAA#v=onepage&q&f=false[/url]

My current code:

include
include

struct car
{
std::string carname;
int yearmade;
};
int main(void)
{
using namespace std;
int zero = 0;
int vb2 = 1;
int count2;
int zero2 = 0;
int count = 0;

int strcture;
cout << "How many cars do you wish to catalog? ";
cin>>strcture;
car * cars[strcture] = new car;

while(count != strcture)
{
cout <<"Car# " << vb2;
cout <<"Please enter the make: ";
getline(cin, cars[zero]->carname);
cin.get();
cout <<" Please enter the year made: ";
cin.get();
cin >> cars[zero]->yearmade;
cin.get();
count++;
vb2++;
zero++;
}

cout <<"Here is your collection:\n";
while(count2 =! strcture)
{
cout<< cars[zero2]->yearmade << cars[zero2]->carname;
zero++;
}
return 0;
}

im stuck on the part on the while loops, my compiler just keeps telling me: variable-sized object `cars' may not be initialized|

plz help.

thanks.

katokato -5

thanks for the help it works.

katokato -5 Light Poster

im trying to learn c++, so i stumble upon this programming exercise that asks the user to make a program that asks for 2 numbers, assuming that the second number is always the biggest in value, and adds all of the numbers in between the numbers entered including the entered numbers.

i figured that using a for function would be nice but im stuck as to what to make the for function do. here is the current code:

include

int main(void)
{
using namespace std;
int no1;
int no2;

cout << "Enter the first number:";
cin >> no1;
cout << "Enter the second number:";
cin >> no2;

for (int count = 0; count != no2; count++)

return 0;

}

katokato -5

same here i cannot wait for gw2

katokato -5

if you want you can reinstall grub2.

however, if youre seeing the windows screen that means that grub already handed the control to windows7's partition so i dont think its a grub problem? i could be wrong.

katokato -5

i hate the cloud.

why?

i dont like to remember passwords, that is only for games, email, and logmein.

if i had to remember a password just so i could access a document i would die, i mean why would i go through all of that trouble when i can simply just access (double click) a file on my hard drive? and also if my internet connections drops (which it oftenly does) how will i get my file?

katokato -5

i usually dont buy games often because: price, price, price, and also that i dont know if it will work with my computer, i also hate steam.

however im thinking of buying battlefield bad company 2.

katokato -5

can you describe your problem more clearly?

does the problem occur when you click a hyperlink?

katokato -5

the minidump file should be under c:\windows\minidump

katokato -5

My method is: put clock to max

stress test it, if fail, step down clock,

repeat untill you found stable clock.

katokato -5

upload the minidump file of the bsod located at c:\windows\minidump, i will take a look at it.

katokato -5

also in the meantime, set everything clocked back to default. try a system restore point too.

katokato -5

upload the minidump file.

katokato -5

sfc /scannow in elevated cmd

repair disc

easiest way is to replace the dll/exe with a working one which you can easily find on google.

katokato -5

Thanks fbody

katokato -5 Light Poster

Hey, im new to the forum and im trying to learn c++, so i bought a book.

On a programming exercise i was asked to create a program that would take a persons full name, letter grade, then subtract the letter grade (ie: A to B), and age and display it on the screen.

Everything was working fine until i tried to work out the part to subtract the letter grade.

Here is the link to the programming exercise page (no.1): [url]http://books.google.com/books?id=zuyAIZ9ZIskC&pg=PA153&lpg=PA153&dq=c%2B%2B+primer+plus+betty+sue&source=bl&ots=mbx4P-t2HX&sig=4nn3Mqs9YUMY25BcvYC9EN_fQTs&hl=en&ei=HPRFTI3dI4vSsAOgsoCyAg&sa=X&oi=book_result&ct=result&resnum=1&ved=0CBYQ6AEwAA#v=onepage&q&f=false[/url]

My code:

include
include

int main()

{
using namespace std;
string name;
string lastname;
char grade[6] = {"ABCDF"};
char gradez [1];
cout << "What is your first name?";
getline(cin, name);
cout << "What is your last name?";
getline(cin, lastname);
cout << "What letter grade do you deserve?";
cin >> gradez;
gradez = grade[] + 1;
cout << "Name:" << lastname << name<<endl;
cout << "Grade: " << gradez;
return 0;
}

Everything works fine untill i try to match what letter grade the user typed in to the different grades on the array (fourth or fifth line from the bottom).

Please help me figure this out.

Thanks.