grub will auto detect your windows
I tried that -- grub didn't detect any operating system on the computer.
Did you find solution?
Nope -- I gave up. Your suggestion didn't fix the problem.
grub will auto detect your windows
I tried that -- grub didn't detect any operating system on the computer.
Did you find solution?
Nope -- I gave up. Your suggestion didn't fix the problem.
_T() is the same as _TEXT(), which converts a string literal to UNICODE, for example _TEXT("Hello World"); Those two macros do nothing for character arrays. These macros are translated at compile time as either wide characters (wchar_t*) or normal ascii characters (char *).
L is not a macro but forces the string literal to be wchar_t*, regardless of whether the program is compiled for UNICODE or not.
LPCWSTR is typedef for a pointer -- same as const wchar_t*
, and LPCTSTR is typedef for const char*
Here is a more comprehensive tutorial
processes are created by executing a program. But maybe that's not your question. You need to explain a bit more about the problem you have.
It would be a lot easier if the whole line was read all at one time instead of a character at a time. fgets() will read an entire line into a buffer, then you can extract the individual words from that buffer. strtok() is handy for doing that. Something like below. But your problem is a little more complicated then the code below because you will have to compare the employee numbers in order to find the row you want to print. To do that you will have to save the split lines in an array of strings so that the comparison can be done with the employee ID.
char line[255];
FILE* in = fopen(...);
while( fgets(in,line,sizeof(line) )
{
SplitLine(line);
}
void SplitLine(char* line)
{
char* ptr = strtok(line," ");
while(ptr != NULL)
{
printf("%s\n",ptr);
ptr = strtok(NULL," ");
}
}
srand() should only be called once during the lifetime of the program. You should move line 147 to the beginning of main().
line 78: If the correct answer is alphabetic between 'A' and 'Z' why do you want the guess to be a numeric value? If the expected value is 'A' then you have to enter the numberic value of 'A', which is 65, in order to guess the answer correctly.
The line static int x = 10; is only executed during the first call to the function,
The value of static variables is set at compile time just like all other global variables.
In Main, the line fun() = 30; is the first call to the function and so x is brought into existence and set to 10.
No. See my previous comment.
The return value of each of those functions may be incorrect. All they have to do is return res, they don't have to create another object
MixedExpression MixedExpression::add(MixedExpression op)
{
MixedExpression res;
res.a = a + op.a;
res.b = (b * op.c) + (op.b * c);
res.c = c * op.c;
return res; // <<<<<<<<<<<<<<<<<<
}
I think the best car I ever owned was a 1986 Ford Torris, 5 speed manual. I finally retired it 12 years later when it has about 350,000 miles. The only reason I got rid of it was because the floorboard was rusting out. Remember how Fred Flintstone put his feet through the floor to peddle his car? That's how I felt in that car.
The Expess version of Visual Studio is also free.
Are you planning to sell it?
Yes, you want to buy it?
I have two autos -- 2011 Prius which gets 52 MPG, and 2011 Ford Edge which barely get 20 MPH. I leave the Edge sit in my driveway most of the time, it's over 2 years old and doesn't even have 18,000 miles yet.
The 2011 revision of C eliminated gets; it's no longer required to be supported, and any use of it makes your code non-portable. Rejoice!
Maybe yes, and maybe no. Universities are still teaching with ancient Turbo C compiler after 30 years extinct. How soon sill they get around teaching with 2013 compilers that have dropped gets()??
If you google for that term I think it is the same as an ordinary live band that plays at weddings.
Raison Brand with Silk unsweatened vinally flavored milk.
The only sport I play regularly is Diablo III. Just got back from the gym where I did some leg and back exercises then spent some time on the tred mill. Does that count as a sport?
the overall cost of those people should go down
Yes, but whether the cost of health care for already covered individuals will also go down is questionable -- but time will tell. The last time I visited emergency room it cost medicare about $1,800.00 just for me to walk in the doors. I'd be interesting to see what the cost will be a year or so from now after obamacare is fully implemented.
Congress is exempt from Obamacare.
That's not just a claim, it is a fact. It was brought up publically several times during the government shutdown and debate about obamacare.
You can't put functions in header files -- move lines 18-21 into main.cpp or some other *.cpp file.
If you've seen the sci-fi movie Independence Day then you would understand why it cost so much money. It's expensive keeping Area 51.
$634M is just a drop in the bucket compared to what it's going to cost for Obamacare.
what compiler and operating systems are you using? And post a few of the errors.
Why don't you just call it a class instead of struct because that's what it is. structs are carry-over from C language and normally do not contain methods. Although both structs and classes are nearly the same in C++ it is more conventional to call it a class when it contains methods.
I also have a bottle of Apple And Pumpkin Wine spked with Cinnamon and Nutmeg. Haven't tried it yet.
Is it real pumpkin?
I don't know -- probably not.
I know you Americans like pumpkin
I thought most people around the world did -- but maybe not. Pumpkins are native to North America, but found its way to europe in the 16th century.
I think it was just a judgement call whether to put it under Software or Web development, it could have been placed under either category.
I think it means that you create an array of color names. The GetColor() function has an argument of the color number (index number) and returns the name of the color. For example
char *colors[] = {"Red","Yellow","Green","Brown","white","black"};
char* GetColor(int index) {return colors[index];}
This is just a guess - you should ask your instructor for clarification of that requirement.
She says that the expressways are moving at 5 mph during rush hours.
LOL! If those are "Express" ways, I don't want to see the normal highways.
If all you want to do is find out how long it takes to transverse a linked list of 1 billion nodes then you can do it with a sample of say 1 million nodes then, in a loop, transverse it 1,000 times. Start the timer before beginning the loop and end the timer after the loop finishes.
They're not the only ones who have such server problems. Diablo III was similar when it was first released over a year ago. Blizzard sold millions of copies before the release date but yet the servers couldn't handle the huge workload. The only way to test a system with millions of users at the same time is to test it live. Just because a program works at the desk doesn't mean it will work anywhere else.
Calling a stored procedure is the same as executing any other sql statement. If you don't know how to do that, then read chapter 13 of this free tutorial
Oh, ok. I don't recall seeing that before.
Pictures are better than words, so please see the menu text behind the purple ribbon in the thumbnail. I'm on Chrome Windows 7.
McDonald's new Pumpkin Spice Latte. Yummy!
i don't like to much of 8, because it's like i need a touchscreen because of it's 'start menu')
Wrong, Windows 8 does not require touch screen. Anything you can do with touch screen you can do just as easily with the mouse.
Line 7 looks like it's trying to put all 350,000 words into a single string?? You might be overloading the number of characters that can be put into a single string (link). Another problem would be memory management, each time a new word is added gto the string vb.net has to increase the size of the string, copy the original string to the new memory location, add the new string to the new memory location then delete the original string. That's a whole lot of work for 350,000 words.
Do it in two steps. First step, get return value fromt he stored procedure. Second step: format the select statement that includes the return value of the stored procedure. This means making two calls to the database, which can be somewhat time consuming.
Another option might be to create another stored procedure which does all that. The advantage is there is only one call to the database, not two.
No -- it's impossible to get that precision in operating systems such as MS-Windows and *nix. You need a real-time os such as MS-DOS 6.X in order to do that. I recall reading about some 3d party add-ons to turn MS-Windows into real-time os, but the cost a lot of money.
The reason yours doesn't look like a triangle is because you need to print spaces before the asterisk. There's also a space between each asterisk. So in Trianble 1 might look like this
bb*
b*b*
*b*b*
Where 'b' is a space
I also think the user input needs to be an odd number in order for the triangle to look right.
Also stoi() throws an exception on error and your program should process it in a try/catch block.
I just finished installing Pale Moon to see what it's like, I'm using it right now. I had it import all bookmarks and cookies from Chrome. The only problem I see so far is that the LOG OUT button doesn't do anything. All other buttons and menu items work ok.
Do that assignment one step at a time. First step is to create the class with the required data items. After that, do each of the other steps one at a time. If you have specific questions then post the code you have written and ask the questions.
Nobody will do your homework, especially since that link doesn't work.
What compiler and operating system? Have you used your compiler's debugger to single step through the program so that you can see what's happening? You have not provided enough code to enable us to make any knowledgable comments. Attach the entire file(s) to your post so that we can test it.
Depends, there may be many more transfers for some databases. Example: if the database is SQL running on another computer across the internet. That could require hundreds of transfers all over the world to get to the final database.
Even if the database is a simple text file on your own computer the number of transfers is not constant. Is user input from a GUI program or console program? Is the file i/o buffered or unbuffered? What does your program do with the data once it receives user input?
All you had to do is hit he Flag Bad Post link and report it to the moderators.
Spicy foods don't prevent cancer. My son has always loved spicy foods such as jalapeno, and now he has cancer. If anything, I would say spicy foods cause cancer.
There are a couple problems with that code
LPWSTR is a pointer, not a character, so LPWSTR buffer[255] creates an array of 255 pointers. Correction: TCHAR buffer[255]
is an array of TCHAR characters, and TCHAR is defined as either char or wchar_t depending on whether the program is compiled for UNICODE or not. tchar.h contains many such macros to make your program compile with or without UNICODE without source code changes.
The else statement needs to add CheckDlgButton(hWnd, 1, BST_CHECKED);
so that the checkbox can be checked again.
You won't need to write the text in the edit box to a file and read it again into std::string. Just set std::string = buffer. No i/o needed. I didn't test this with UNICODE so you will most likely need std::wstring instead of std::string to do that.
I have no idea whether the shell command actually resets the password or not. Check it from cmd prompt.
Some of the code below was compiler generated. I just added your switch statements to it.
#include "stdafx.h"
#include "Win32Project1.h"
#include <shellapi.h>
#include <string>
#include <fstream>
using namespace std;
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; // current instance
TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
TCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name
HWND hEdit = 0;
// Forward declarations of functions included in this code module:
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE …
Since people have to enter the commas in the number from the keyboard, what's the purpose of the program? Just to verify the commas are in the right place?
Have no idea what an .afi file is, but to make a program work only during trial period the program needs to check a computer clock time/date against the install time/date. It's too easy for people to just change the computer's clock in order to circumvent the trial period so the program should access a clock from some other computer, such as a web server computer over the internet.
Still doesn't explain how you get a crazy looking string like 2,43,,111.11 from 243,111.11. Why so many commas??
What does s1 point to on line 15?? It points to the end of the string, not to the beginning and that's why it doesn't work. You can't change the value of the poiter if you intend to use it again. Line 15 needs to return s, not s1, because s is pointing to the beginning of the string.
IMO being the owner of a business sucks. You, and no one else, are responsible for all the good things as well as all the bad things. If you are also an employer then you also have to be head of Personnel, that is you have to hire, fire and be advisor to employees. You can't afford to be too friendly to employees because that can lead top problems elsewhere.
Much easier, IMO, to be an employee; not nearly as stresful.
can anybody be entrepreneur if he is determined and passionate to do something ?
You will never know if you don't try it.
“It is better to try and to fail than to fail to try and forever experience the inestimable loss of what might have been.”
― -Unknown_
How do you get that output from that input??? Your teacher must have given you some instructions on how to do it because the example you posted makes no sense.