15,300 Posted Topics
Re: [QUOTE=somashekar;624373]how do v bridge ip add[/QUOTE] Huh? I have no idea what you are asking. You need to ask your question on one of the Tech boards | |
Re: [QUOTE=Radical Edward;624800]> can anyone see the code in which C is written? Open source compilers like gcc come with source code, so yes. :)[/QUOTE] And be prepared to read some very very complex code. Definitely not for beginners. One C function may call several other C functions which are probably … | |
Re: First call GetSelectedCount() to get the number of selected items, then in a loop call GetNextItem() to get the index value of each selected row. [URL="http://msdn.microsoft.com/en-us/library/7sdaafak(VS.80).aspx"]See example here[/URL]. | |
Re: using the curses library would probably be the most portable way to do it. Check ncurses for *nix and pdcurses for MS-Windows. If you are not concerned about portability and using an MS-Windows compiler then your compiler MIGHT support the functions in conio.h -- mainly _kbhit(). | |
Re: >>Account = Account + 100; If Account is a pointer, then that line is attempting add 100 to the pointer. I doubt that is your intent. We can't tell from your post what exactly you want that line to do. | |
Re: No one can really help you with the little amount of info you posted. Post parts of the file so we can see what it contains. | |
Re: when I click that link all I get is this: [quote]test - opawb01[/quote] | |
Re: I had the same problem with Dev-C++ when I first got Vista. Searched Bloodshed's forums and found that the compiler does have a few problems with paths on Vista. Go to Tools --> Compiler Options, click the Directories tab, then manually expand the paths you find there to contain the … | |
![]() | Re: [QUOTE=joytech22;621709]i suggest you try to cap you'r price at $500. but since you intend on 300, try out the 7600GS very good card, i used to use one until i got 8800. then i upgraded to 9800GTX. maybe buy the 9800GTX its supa fast and the best bang for your … |
Re: Not sure just what you are asking Do you want the contents of the array [b]name[/b] to contain some text that the user entered via keyboard ? [code] char name[80] = {0}; printf("Enter your name\n"); fgets(name,sizeof(name), stdin); printf("You entered %s\n", name); [/code] | |
Re: Just search the PATH environment variable for it. In MS-Windows you can do it like this [code] #include <iostream> #include <windows.h> #include <string> #include <cstdio> #include <sstream> using namespace std; bool search(string path) { WIN32_FIND_DATA data; path += "\\gdiplus.dll"; HANDLE hFind = FindFirstFile(path.c_str(), &data); if(hFind != INVALID_HANDLE_VALUE) { FindClose(hFind); return … | |
Re: Resurrecting old threads is not a problem as long as the new posts are relevent in context to the rest of the old thread. IMHO you can post here if you want to continue the interesting topic. | |
Re: Welcome to DaniWeb >>Yes, I do really sit on the beach with a laptop and GPRS connection uploading code to a web server in some distant land :* :*:* You must have everyone's dream job | |
Re: Welcome to DaniWeb. You can put the URL to your site in your signature without us deleting it. Also if you want suggestions on improving it you can post the link(s) in [URL="http://www.daniweb.com/forums/forum55.html"]Website Reviews[/URL] | |
Re: I don't know about the math you described, but the program is wrong [code] {vector<Pair> set; \\input of the set of points, with 50 points Pair* a1 = new Pair(70, 64); set.push_back(*a1); [/code] you don't need all those memory allocations. Its probably causing a huge memory leek and just overcomplicating … | |
Re: what container are you using? vector? Yes, then treat a vector just as you would a simple array of ints. If you can do this this an array of ints then you can do it with a vector -- same syntax. | |
Re: [URL="http://www.petri.co.il/reg_command_in_windows_xp.htm"]Here[/URL] you go. [URL="http://www.google.com/search?hl=en&q=reg.exe&btnG=Google+Search"]google[/URL] will find other links too | |
Re: [QUOTE=wyw2008;623651]Thank you very much! I did get some spams these days, but now I don't know how to modify what I have submitted?[/QUOTE] You can't, but I can (and did) | |
Re: >>It is unfortunate that boomers and seniors can't earn extra monies for themselves Depending on what country you live in maybe for you, but not for me. In USA there are lots of part time jobs out there that we can do. Won't make a fortune, but will earn enough … | |
Re: A callback is just a function that you write that will be called by the driver. When initializing the driver function you pass it a pointer to your function. You will have to read the ASIO Auto Driver's programming manual to find out exactly how to code the callback function. … | |
Re: >>how to solve this problem so server gets output individually for client?? Each client needs to use different ports. You can reserve a range of ports in the hosts file on the server computer so that nothing else on the server will take them. Assign port no 8000 to client … | |
Re: >>Why use the stack of the space is so limited? What makes you think stack space is so limited ? In MS-DOS 6.x and earlier and in some embedded systems that is true, but if you are using *nix or MS-Windows 32-bit compilers stack space isn't really anything to be … | |
Re: To my knowledge there is no way to get the filename once the bitmap has been read into memory. Actually, the bitmap may not be in any file at all, but can be part of the program's resources, which is attached to the end of the executable program. | |
Re: what have you tried ? Please post your attempt to do this homework assignment. One way to solve the problem is to use the macro [b]tolower()[/b] that's in stdlib.h [icode] ch = tolower(ch);[/icode] | |
Re: >>is there a way to limit/set its size to a value No. But if passing it to some other function you can declare it as [b]const[/b] so that is can not be changed. See std::string methods [URL="http://www.cplusplus.com/reference/string/string/"]here[/URL] To get all substrings [code] std::string str = "one two three one two … | |
Re: [code] #include <"windows.h"> #include <"iostream"> [/code] Do not use both angle brackets and quotes. One or the other. Use angle brackets for your compiler's header files and quotes for the header files that you create. [code] #include <windows.h> #include <iostream> [/code] After a successful compile you will get errors about … | |
Re: Creating a grid control is a very complex task. [URL="http://www.codeproject.com/KB/miscctrl/gridctrl.aspx"]Here is one free control [/URL]that I have used in the past and consists of thousands of line of code. | |
Re: Since [b]displayMessage()[/b] is not a member of Salary class the compiler is looking for a function names [b]getSalary()[/b] that is also not a member of that class. One way to fix this is to make displayMessage a member of the class [icode]Salary::displayMessage() [/icode] | |
Re: [QUOTE=jephthah;622984] why dont you just continue to use the make file to rebuild your changes? seems like less work to me. [/QUOTE] Some programmers write libraries for several different compilers and operating systems. I don't know but possibly this is the case here. | |
Re: The problem(s) appear to be the use of all those pointers. Get rid of all the pointers and you get rid of the errors. Here's the revised program without pointers. This implementation also deleted the destructors, new and delete operators. [code=c++] #include <cstdlib> #include <iostream> #include <math.h> /** File test_!.cpp … | |
Re: You need to close the output file before opening the input file because some of the data has not been flushed to disk yet. | |
Re: Probably depends on the company to which you apply for a job -- I suppose MCSD certs might make a difference between two people with equal education, experience, and knowledge. Otherwise they are not of much value. Why? Because people can pass the exams without ever coding so much as … | |
Re: >>Why so many places to specifiy include directories Those are not all include directories. Some of them are executables and libraries. >>And secondly, where in the IDE can I found out what the environment variables $(VCInstallDir) etc Write a program that displays the variable. But on my system it isn't … | |
Re: [QUOTE=gdg;622448]Because I don't live in the US I have virtually no legal recourse against the company that essentially took me for $3000. [/QUOTE] That seems difficult to believe. Have you contacted legal console in your country? | |
Re: The reason it doesn't work for you is because after entering an integer [icode]cin >> width[/icode] the system leaves the '\n' in the keyboard buffer, and the next time cin is called it gets that '\n' instead of wanting for another keyboard input. What you have to do is flush … | |
Re: [QUOTE=gl_nana;622090]i need some help to make a verifir bytecode ?? can you help me ? plz[/QUOTE] No one can help you in this board. You will have to post your question in the correct DaniWeb support board for your computer language of choice. | |
Re: you have to add a second parameter. [URL="http://www.cplusplus.com/reference/iostream/fstream/open.html"]Read about them here[/URL]. Use the ios::ate and ios::binary flag | |
Re: [QUOTE=jwenting;618541]the best time of year for Disney World is just after it burns down. No more fake happiness, and the inevitable lawsuits haven't started yet.[/QUOTE] Its obvious you have never been there. If you do make sure to take lots and lots of money and plan to visit the other … | |
Re: [QUOTE=Radical Edward;622089]> vector <vector<string>> myvec; In the next C++ standard, yes. Right now the way the parsing rules work mean that >> is treated as a binary right shift instead of the closing character for a nested template. It's ugly, but you have to put a space between them for … | |
Re: [QUOTE=Radical Edward;621546][code] reset(int (&Board)[2][3]) [/code] [/QUOTE] I have never in over 20 years seen anyone code a function prototype like that. Arrays are ALWAYS passed by reference, it is not possible to pass an array by value. So this is all that is needed [icode]void reset(int Board[2][3]);[/icode] | |
Re: [QUOTE=champnim;620278]Well let me assure you I have enough command over the English language but its just that my generation is probably more used to converse in the "SMS lingo". If you have a problem understanding my language there is a more gracious way of saying so rather than adopting a … | |
Re: >> shall we have to write this header file before executing the program. Yes, or get it from whereever you got that *.cpp file. The file you posted is not part of STL because STL doesn't contain main(). | |
Re: you need to post the code where the output file outAccount is opened | |
Re: You have to be very careful about the code you get off the net because a lot of it is written for ancient 16-bit compilers on MS-DOS version 6.X and earlier operating systems. You might as well scrap that second code you found because it won't work on modern 32-bit … | |
Re: Unless your program creates threads there will be only one thread in your program. The details are operating system dependent. | |
Re: >> float x[n]; The error message means that you can not declare an array using a variable like [b]n[/b]. Must have a const integer. If you need to use the variable then allocate the array after the value of [b]n[/b] is known. [code] float* x = 0; <snip> x = … | |
Re: you need to create another thread so that user input is in the main thread and other processing is done in the other thread. | |
Re: What language is this? Your post looks like homework. | |
Re: By [b]stuck[/b] I suppose you mean the program goes into an infinite loop or possibly even crashes. You should fix the problem instead of attempting to hide it. |
The End.