No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Student
- Interests
- Chemisty, Physics, c++
- PC Specs
- P4 530 512MB DDR2-400 7300LE 80GB SATA HD
14 Posted Topics
Well, I read that endl 'flushes' the output buffer as opposed to \n. Now what does that mean (In what way could that be useful)? | |
Re: EDIT: So embarrassing I won't even mention what I'm editing. | |
Re: Can't help much but I'm sure others would greatly appreciate it if you used the [code=c] tag. | |
Re: [QUOTE=Ene Uran;312071]The IT did not use C++ or she would still be working on it![/QUOTE] :lol: | |
Re: [QUOTE=tradfreak;310566]... [B]I like the screen to appear like a FORM that is to filled out...[/B] Hope to hear from you... thanks for any help :)[/QUOTE] Is that a requirement? If it isn't, it shouldn't be that hard. If it is, then good luck and enjoy C for the months to … | |
Re: [QUOTE=Ancient Dragon;310578]C++ compilers for MS-Windows operating system can compile either console programs, which normally opens a DOS-like window, or a GUI window like you see with your VB compiler. The reason is that many c++ programs do not need GUI windows because they do things that do not require a … | |
[B]EDIT:[/B] Again, after searching for some time and not finding any answers then asking here and going back to experiment a bit with my code, I figured out the answer just by trial and error :| Hi! My current homework assignment requires me to read some info from a file, … | |
;) Hey guys, I have another simple question today: Lets say I have a structure: [code=c++]struct Info{ string name; string id; double telNum; }; //.... Info person; //....[/code] Now, if I had a function in which I told it to output one of the elements in the structure, how would … | |
:o EDIT: Forget my question :eek:, thanks for looking :mad: | |
Aright, now all of you might be tired of my sometimes info-lacking posts about binary files. ... but I have another quick question: How do I write and read a double in a binary file? Code as simple as the following does not work (which is the usual code for … | |
Hi, just looking for a quick answer to my problem: How can I read a string from a binary file? for example string buff; binfile.read(reinterpret_cast<char*>(&buff), 10) does not work. Doesn't work either if buff is declared as a c-style string. I'd preferably like to read it into an STL string. … | |
Re: hmm I started some years ago (I believe I was 13) with VB 6.0. Didn't really master it completely, then I stopped programming for some months... somewhat got back into programming and decided to learn C++. Bought "C++ Without Fear" by Brian Overland, explained everything exactly the way I wanted … | |
I'm doing a homework for my programming class, the following code is a part of my code which I cut out and formatted to be a 'runnable' program. Now, if you run it you'll notice it creates a data.txt file, writing the amount of student IDs in the record as … | |
[CODE=c++]#include <cstdlib> #include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string foo = "123"; if(count_if(foo.begin(), foo.end(), isdigit) == foo.size()) { cout << "\nGreat!\n"; } cin.get() }[/CODE] Does not work on bloodshed v4.9.9.2!!! It outputs the following error: [QUOTE]no matching function for call to `count_if(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, … |
The End.