- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 9
- Posts with Upvotes
- 9
- Upvoting Members
- 9
- Downvotes Received
- 7
- Posts with Downvotes
- 7
- Downvoting Members
- 5
| Re: Definitivelly the most powerfull language of all times is... English. The most powerfull computer is an... Engineer. Explain your problem to an Engineer in English, and he/she will solve it! Easy, isn't it? |
Re: I think you are doing a good job. Continue. I recomend you to change the reverse function with: void reverse(char line[], int len) { int i; char tmp; --len; for(i=0; i<=len/2; i++) { tmp = line[i]; line[i] = line[len-i]; line[len-i]=tmp; } } To understand it, you must work with a … | |
Re: See http://www.parashift.com/c++-faq/serialization.html There, it is defined as: Serialization lets you take an object or group of objects, put them on a disk or send them through a wire or wireless transport mechanism, then later, perhaps on another computer, reverse the process: resurrect the original object(s). The basic mechanisms are to … | |
Re: Yes, it is perfectly possible to solve that problem in C++. | |
Re: I recomend you to use the function `int toupper( int ch )` defined in header `<cctype>` | |
Re: A for that do something 10 times can be written like this: for(int i=1; i<=10; ++i) { //... } | |
Re: Consider you have a counter (c) that goes from 1 to 5. The number of stars you what to print is `s = 6-c`. In this way, when c values 1 s values 5, when c values 2 s values 4, when c values 3 s values 3, and so … | |
Re: This link [Stackoverflow](http://stackoverflow.com/questions/2799023/what-exactly-is-a-reentrant-function) can give you more information. | |
Re: The disadvantage of multiple inheritance is that for using it you need to know more than for not using it. However, if you know how to use it, it is a fantastic tool. In other words, knowing a little of multiple inheritance, you can make a mess; knowing a lot, … | |
Re: Replace `strVec.push_back(getline(about));` with `strVec.push_back(getline(infile));` Then show the vector `strVec` Then sort the vector `strVec` Finally show again the vector `strVec` | |
| Re: I think that rubberman has been a little exagerated because this is neither for a PhD nor even Master but he is right in that this is very difficult for a beginner. You must learn about WEB servers and how to create utilities there. Also you need to learn about … |
Re: I recomend you to learn C++11 directly. Learning C is the long way to C++98 to C++03 to C++11 and do not have any benefit. As a matter of fact, the style of programming and the way of think has evolved a lot. With C++11 there are many things you … | |
Re: Sorry but I can't tell you a book like that. > Also, is there an advantage to learning C before you learn C++? No, there isn't. As a matter of fact, it is not recomended at all. Learn C++ directly. Knowing Python you have an advantage but resist the tentation … | |
Re: The memory is measured in bytes. 1k bytes are 1024 bytes (not 1000 bytes). This is because the memory space is expresed in powers of two: 2^0=1 2^1=2 2^2=4 2^3=8 2^4=16 2^5=32 2^6=64 2^7=128 2^8=256 2^9=512 2^10=1024 <--- This is why 1k of memory has 1024 bytes. 2^11=2048 2^12=4096 <--- … | |
Re: On line 18, change `get_values(*r, *v);` with `get_values(&resistor, &volts);` Also you can change line 39 from `scanf("%f", &*r);` to `scanf("%f", r);` and line 43 from `scanf("%f", &*v);` to `scanf("%f", v);` but these are not stricly necessary. | |
Re: `data_search` is an integer. But is `current->ID` also an integer? It seems that `current->ID` is a `string`. Probably you can use `std::stoi(current->ID)` to solve the problem. | |
Re: Daniweb is not a homework service. Please provide evidence that you've attempted a solution on your own. | |
Re: D is something like to try to create a car that can fly like an airplane and transport like a jumbo but with the facility to dive under the sea. And all of these applying restrictions to what C++ can do very well, just because something has decided that some … | |
Re: Daniweb is not a homework service. Please provide evidence that you've attempted a solution on your own, as per our rules. | |
Re: Do you want that someone make your homework? | |
| |
Re: Probably you don't need to go with the debuger to all of your functions. In that case, I also sujest you to compile some files with -O3 (where you are sure that everything is OK) and others (where you will need to debug) with the -Og option, following the NathanOliver … | |
Re: > 1) Is this statement correct: In memory, elements of an array are stored "against" each other (I think more precisely, contigious space is allocated for them?) and a pointer to an array points to the first element. Yes it is correct. | |
Re: Your problem can be fixed just adding two parenthesis. The idea is to put your str string into a scope `{/*...*/}` and, at the end of the scope, your str string memory will be automatically released. //... fileIn.open(fileName, ios::in | ios::binary); { string str((istreambuf_iterator<char>(fileIn)), istreambuf_iterator<char>()); cout << str << endl; … |