15,300 Posted Topics

Member Avatar for Superstar288

use Regedit program and look in HKEY_LOCAL_MACHINE\\Hardware\\Devicemap\\Video That's where its at on Vista.

Member Avatar for seanhunt
0
93
Member Avatar for Erikmmp
Member Avatar for Erikmmp
0
123
Member Avatar for karang

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]

Member Avatar for karang
0
158
Member Avatar for TheFuture

[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 …

Member Avatar for nazim123
0
12K
Member Avatar for syphon_hawk

[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 …

Member Avatar for syphon_hawk
0
184
Member Avatar for khatib009

>>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 …

Member Avatar for Ancient Dragon
0
110
Member Avatar for Samisam80

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.

Member Avatar for Ancient Dragon
0
101
Member Avatar for chchiu

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) …

Member Avatar for mrboolf
0
128
Member Avatar for koushal.vv

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 :)

Member Avatar for koushal.vv
0
235
Member Avatar for AutoC

>> 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.

Member Avatar for ArkM
0
228
Member Avatar for abhishek.com

look in limits.h to find out the maximum/minimum values of the data types for your compiler.

Member Avatar for vmanes
0
119
Member Avatar for Awaivadrailla

[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 …

Member Avatar for jbennet
0
166
Member Avatar for AcidG3rm5

>> 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.

Member Avatar for Ancient Dragon
-1
122
Member Avatar for JCasso

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 …

Member Avatar for ArkM
0
1K
Member Avatar for slimjimmer

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; …

Member Avatar for slimjimmer
0
153
Member Avatar for atman
Member Avatar for ioio
Member Avatar for 666kennedy

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, …

Member Avatar for Freaky_Chris
0
127
Member Avatar for bcurt85

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]?

Member Avatar for Obeledeveloper
0
194
Member Avatar for vmanes
Member Avatar for The Dude
0
82
Member Avatar for The Dude
Member Avatar for Ancient Dragon

[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]

Member Avatar for Jen0608
0
81
Member Avatar for patkhor

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 …

Member Avatar for patkhor
0
104
Member Avatar for VBNick

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 …

Member Avatar for VBNick
0
179
Member Avatar for dampecram

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].

Member Avatar for Ancient Dragon
0
101
Member Avatar for allena

[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.

Member Avatar for Vladimirr
0
213
Member Avatar for elsa87

>>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 …

Member Avatar for cikara21
0
513
Member Avatar for Krysis

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]

Member Avatar for Krysis
0
5K
Member Avatar for ajorge

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 …

Member Avatar for ArkM
0
119
Member Avatar for Ancient Dragon

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).

Member Avatar for Ancient Dragon
0
163
Member Avatar for LAMBO290

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.

Member Avatar for caperjack
0
100
Member Avatar for vladdy191

>>I don't have a C++ compiler to run it Download one of the free ones. >>a = c; That's illegal.

Member Avatar for dougy83
0
137
Member Avatar for TimothyKhoo

[QUOTE=TimothyKhoo;696122]lol....i dont get it!!!!...what the ....really LOL.....[/QUOTE] We don't get your post either. So there :twisted:

Member Avatar for TimothyKhoo
-1
138
Member Avatar for 666kennedy

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 …

Member Avatar for 666kennedy
0
188
Member Avatar for kyosuke0

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 = …

Member Avatar for rajenpandit
0
137
Member Avatar for Lardmeister

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.

Member Avatar for jbennet
0
3K
Member Avatar for mstrofdrgns

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 …

Member Avatar for Ancient Dragon
0
142
Member Avatar for carson myers

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

Member Avatar for carson myers
0
172
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
154
Member Avatar for brechtjah

'ç' has a decimal value of -25, and isdigit() only works with positive signed integer values.

Member Avatar for brechtjah
0
169
Member Avatar for nvodapally

Ok, so you posted what your teacher gave you. Now post what YOU have attempted.

Member Avatar for skatamatic
0
79
Member Avatar for lehe

>>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]

Member Avatar for lehe
0
208
Member Avatar for xlx16

[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% …

Member Avatar for ajay.krish123
0
116
Member Avatar for cbk

The morale of the story -- always make backups of inportant files. Your computer has floppy and CD RW drives for a purpose -- use them.

Member Avatar for kingy55
0
344
Member Avatar for Terlington

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 …

Member Avatar for Terlington
0
127
Member Avatar for barbaruiva

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 …

Member Avatar for Ancient Dragon
0
69
Member Avatar for jimbob90

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]

Member Avatar for Ancient Dragon
0
101
Member Avatar for Niner710

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]

Member Avatar for Ancient Dragon
0
114
Member Avatar for hello11

>>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.

Member Avatar for Ancient Dragon
0
110
Member Avatar for kavithabhaskar

>>for(i=i;i<10;++i) should be [icode]for(i = [color=red]0[/color] ... [/icode]

Member Avatar for chococrack
0
150

The End.