15,300 Posted Topics
Re: use Regedit program and look in HKEY_LOCAL_MACHINE\\Hardware\\Devicemap\\Video That's where its at on Vista. | |
| |
Re: Is MSXML installed on your computer? You have to download and install it from [URL="http://www.microsoft.com/downloads/details.aspx?FamilyID=993C0BCF-3BCF-4009-BE21-27E85E1857B1&displaylang=en"]here[/URL]. And make sure you read all of [URL="http://msdn.microsoft.com/en-us/library/ms765540(VS.85).aspx"]this article[/URL] | |
Re: [QUOTE=TheFuture;281235]thanks so much for your help but I know how to declares the character already .. the problem is how to get the program working :([/QUOTE] Where is your code? What have you tried? People here are not mind readers, so you need to post YOUR code. And please use … | |
Re: [code] void conversion (int size, char lines [Max_Lines][Max_Size], char alphabet[27] = "abcdefghijklmnopqrstuvwxyz", int alphacount [27] = 0); void displayTable (int alphacount [27] = 0, char alphabet[27] = "abcdefghijklmnopqrstuvwxyz"); [/code] Remove the { and } around the default parameters. That will cause the int array to be NULL pointers if the … | |
Re: >>dont know how i can because i dont know the material!! I'd say you better start by reading the books and other material, and doing the exercises at the end of each chapter. You won't learn how to program is other prople do your work for you. Yes, we will … | |
Re: where is the code you have started to solve the problems? We will not write it for you. Write it a little bit at a time and your program will soon be written. | |
Re: There are a couple approaches in c++ language: 1) if input is in the form of a std::string object, you can use it's find() method to determine if it contains any of the words, example: [code] std::string input; cout << "Enter a word\n"; cin >> input; if( input.find("ONE") != std::npos) … | |
Re: There isn't much you can do about overflows, except just discard the bad CString value. It returns INT_MAX because its impossible to put that many digits into an int variable. I'd like to stuff my 100 inch waste into size 36 slacks too, but that's not possible either :) | |
Re: >> how do i merge these two 1) Write a c++ program instead of C program. or 2) Write a c++ stub program that has functions callable from C program and link the two object codes together. | |
Re: look in limits.h to find out the maximum/minimum values of the data types for your compiler. | |
Re: [QUOTE=Rashakil Fol;736951]Nobody cares.[/QUOTE] Maybe that's part of the problem -- nobody cares enough to fix it. Lets hope the new Obama adminstration will be able to solve this financial crises. If not, then all you young people are in for an awful rude awaking at the bread lines with no … | |
Re: >> And halfway through, i tried to compile and run You need to compile and fix errors a lot sooner than that! >> void displayGame(list <Game>& myGame); You have not coded that function. | |
Re: use a pointer and convert each digit to binary. Here's how: [code] char str[] = "123.456"; char* ptr = str; float n = (*ptr - '0'); // before the decimal point float n = (*ptr - '0') / 10; // after the decimal point [/code] Now, what I posted above … | |
Re: First, the arrays have to be pointers so that they can be allocated at runtime. For example: [icode]float *x[2]; float * fx[2],[/icode] Next, after finding the upper_limit (line 26) you can use malloc to allocate the arrays of the proper size [code] int i; for(i = 0; i < 2; … | |
Re: [URL="http://www.winprog.org/tutorial/"]tutorial[/URL] | |
Re: what's wrong with a word processor, such as Microsoft Word ? | |
Re: what is "CHR/2" ? If you need 8 random numbers between the values of 0 and 16, then put them in an array. [code] start loop generate random number between 0 and 16 first time the number has been generated ? no, then go back and generate another number yes, … | |
Re: Any worse than [URL="http://video.google.com/videosearch?hl=en&q=joe's+apartment&um=1&ie=UTF-8&sa=X&oi=video_result_group&resnum=4&ct=title#"]this [/URL]? | |
Re: LOL very good :) That's what he disserves for being so greedy | |
[url]http://www.break.com/index/lanpunch.html[/url] I don't know what this guy is saying, but I'm sure it isn't nice :) And how about this one too :) :) :) [url]http://www.break.com/index/treadfall3.html[/url] | |
Re: You mean while reading the file there is another program changing it? If that is correct, then all bets are off because the results of your program will be unpredictable. Your program gets the original file probably due to disk cashing -- when the file is opened the program just … | |
Re: There are several ways to solve the problem. One way is to create a 64-bit int in the structure that represents both B and poly at the same time, which will result in unique values for each structure in the array. Your program could set that value just before inserting … | |
Re: The problem is the way the program opens the file on line 22 of the code you posted. "wb+" will delete the contents of the file if the file already exists. Read about the open flags [URL="http://www.cplusplus.com/reference/clibrary/cstdio/fopen.html"]here[/URL]. | |
Re: [URL="http://www.visittucson.org/"]Tucson, Arizona USA[/URL] is my favorite where I have lived. It's hot and dry year around. NO SNOW :) :) The pictures in that link are from the surrounding desert, not the city itself. | |
Re: >>is the below code done using recursion or not? No. Recursion requires a function to call itself, and I see no indication of that behavior in the code you posted. >>how can i make the below code take input from a text fiel Open the text file, then change the … | |
Re: loop is incorrect. Here is how to read until end of file. fgets() returns NULL on end-of-file or some other type of error. [code] while( fgets(s, MAX_BUFF, file) != NULL) { } [/code] | |
Re: The first parameter is a function pointer -- the prototype you declared on has a simple void object pointer [icode]void (*FktFunction)( void (* RegistFuncPtr)(struct TDevice * newdev), TOnDriverEvent eventcallback);[/icode] I think you want something like the above. I didn't attempt to compile that, so not sure if it's exactly right … | |
Or The Roaming Menu. I'm talking about the IT Professional's Lounge link. Sometimes its in the menu list and sometimes not. Sometimes its listed under Business Exchange menu, and othertimes under Water Cooler (or whatever its named now, don't know what its named because there is no menu title). | |
Re: I have 64-bit Vista Home/IE7, 5 Gig RAM, quad core, and occasionally have a similar problem. Had to use Task Manager to kill it just about a half hour ago. Thankfully, that doesn't happen as often as it does for you. | |
Re: >>I don't have a C++ compiler to run it Download one of the free ones. >>a = c; That's illegal. | |
Re: [QUOTE=TimothyKhoo;696122]lol....i dont get it!!!!...what the ....really LOL.....[/QUOTE] We don't get your post either. So there :twisted: | |
Re: You want to sort the error array and keep the relationship with the rows in weights array ??? One way is to use another array that contains indices into both error and weights array. When you sort error array actually move the rows in this third array. Use the third … | |
Re: try this [code] //function to clear all pointers void clearMemory(bus* &pointer) { bus *next; bandMember *current; next = pointer; while(next != NULL) { current = next->memListPtr; while(current) { bandMember *hold = current; current = current->memberPtr; delete hold; } bus* hold = next; next = next->busPtr; delete hold; } pointer = … | |
Re: I'm 75% certain that I will vote for Obama. I don't want someone who is 7 years older than I am to be President. He needs to be in a nursing home, not the white house. Even French President Charic was only 62 when he was first elected as president. | |
Re: That is C code, not C++. Are you sure you are in a c++ class? for a fstream tutorial [URL="http://www.daniweb.com/forums/post31214.html"]click here[/URL]. cout is quite easy to learn. First you have to include <iostream> header file -- it does not have a .h extension. Then declare the std namespace. [code] #include … | |
Re: There are [URL="http://www.google.com/search?hl=en&q=how+to+write+an+assembler&aq=f&oq="]several threads [/URL]about writing your own assembler | |
Re: Could be no one here knows what you are talking about. What is "lame binding for phython" ? Of course I know what phthon is. Are you trying to call phython from C/C++ (or reverse) ? >>Where can I get that simple yet safe DLL to play with CTYPES You … | |
Re: 'ç' has a decimal value of -25, and isdigit() only works with positive signed integer values. | |
Re: Ok, so you posted what your teacher gave you. Now post what YOU have attempted. | |
Re: >>ptr=(unsigned char*)malloc(5*sizeof(unsigned char)); you are only allocating 5 bytes to hold 5 integers! and ptr needs to be an int pointer, not a char pointer. Change that line to [icode]int* ptr= malloc(5*sizeof(unsigned [color=red]int[/color]));[/icode] | |
Re: [quote]for another example i wrote a program which contained some graphical features compilers couldent compile it ,exept borland c for dos(even borland c for windows coulden`t compile[/quote] As you found out the hard way, attempting to port programs written with ancient Turbo C is pretty tedious -- usually requires 100% … | |
Re: The morale of the story -- always make backups of inportant files. Your computer has floppy and CD RW drives for a purpose -- use them. | |
Re: fctThread() does add the names to the pointer in the thread's parameter, but your program just tosses that pointer into the bit bucket (throws it away). Line 99 allocates the pointer, line 100 creates the array and passes the pointer to it, then ---- nothing. The pointer is never saved … | |
Re: 1) learn to properly format your code to make it easier to read and understand. 2) The for loop on line 80 is not formed correcly [code=c] #include <stdio.h> #include <stdlib.h> #include <conio.h> #pragma warning(disable: 4996) #define max 10 typedef int TipoChave; typedef struct { char texto; } TipoItem; typedef … | |
Re: stringstream is the simplest way to convert an int into hex string [code] #include <iostream> #include <string> #include <sstream> using namespace std; int main() { int n = 255; string s; stringstream stream; stream << hex << n; stream >> s; cout << s << "\n"; } [/code] | |
Re: try this: [code] #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { string name1 = "Alvin"; string name2 = "Edward"; cout << left << setw(20) << "Name: " << name1 << "\n"; cout << setw(20) << "Another Name: " << name2 << "\n"; } [/code] | |
Re: >>error string no such file or directory in .h What compiler are you using? That error would indicate you are usiing something readlly really old, like ancient Turbo C what knows nothing about <string> header file. | |
Re: >>for(i=i;i<10;++i) should be [icode]for(i = [color=red]0[/color] ... [/icode] |
The End.