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
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:
[I]<< split from [URL="http://www.daniweb.com/techtalkforums/post301149.html#post301149"]here[/URL] >>[/I] I need help writing a pseuocode for the following statement: pseudocode that represents the logic of a program that allows a user to enter a value for the radius of a circle and then provides the user with a choice between printing either the diameter … |
|
Re:
I'm almost finished with this program but the problem I'm having is with freeing the memory I allocated. Particularly in the area where I have pointers to strings. [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> /////////////// user defined data ///////////////////// struct State { char * name; // state name int year; … |
|
Re:
I was wondering if it is possible to make a gui program in C++ without[COLOR=black] a toolkit, and if so are there any tutorials or books that I can read:?: [/COLOR] [COLOR=black] [/COLOR] |
|
Re:
hello :-) I'm Sean and currently a 3rd year BS Business Admin. Major in Management Information Technology student... due to my limited programming skill... i know this would be a simple programming problem to you guys out there so i would like to get inputs on how am I to … |
|
Re:
Hi! Even when I use windows versions of C++ compilers (Visual studio or Borland) when I compile my program it opens up in a DOS window. Is VB the only way the program will open up in a windows like window? Thanks, Ami |
|
[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:
Hi everyone, I'm new here and this is my first post. Like the title says - I'm new to the whole coding and programming thing, I really LOVE the thought and the idea, I've started out with XHTML and CSS, it's going easy so far and I think I have … |
|
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>, … |