-
Replied To a Post in how?
This edit from part of your code above, may give you some further ideas to help you see how you you might break up the code into jobs (functions)... and … -
Replied To a Post in how?
This little example, uses functions to help you see the logic flow: typedef struct { int item1; int item2; /* ... */ int itemN; } Order ; const char* MENU … -
Began Watching how?
how can i put this in a flowchart form? need for my project and where will i put all the void? #include<stdio.h> #include<time.h> #include<process.h> #include<string.h> #include<conio.h> #include<dos.h> /*Placement*/ void order(); … -
Replied To a Post in how?
Whow ... that is a lot of code to scan through ! First off ... You must be using an ancient NON-standard C compiler ! The standard is: int main() … -
Began Watching Read text file in c++ and store in array
I have a text file that represents a book , this first line of it for example is P.G. Wodehouse, "Heavy Weather" (336 pp.) [PH.409 AVAILABLE FOR LENDING] So there … -
Replied To a Post in Read text file in c++ and store in array
If the pattern holds ( as per @ddanbe )... you might like to try parsing, using the power of C++ stringstream, something like this ... // getFileDataParsed.cpp // /* I … -
Began Watching Inputting data from txt file to array
My project for my C++ class requires that I take a bunch of weather data. It's a ton of lines so I won't include all of the text file, but … -
Replied To a Post in Inputting data from txt file to array
This little example of simple file input from a well ordered (valid) file (of all valid data) ... // getFileWeatherData // /* My project for my C++ class requires that … -
Replied To a Post in Please sugget how can i make these source code more effecient. Thanks alot.
> But for quick and easy ... beginning student-type numeric input type coding problems ... > I agree. That's why I didn't burn you more harshly. ;) There's a certain … -
Replied To a Post in Please sugget how can i make these source code more effecient. Thanks alot.
@deceptikon, thank you for keeping fresh this C++ (and C) problematic issue. It is good for students to know the content of the above link. However, students may also appreciate … -
Replied To a Post in Exceptions
You also might like to see that using classes some times just adds code bloat. Take a look (no classes) ... // test_invalid_time_simple.cpp // #include <iostream> #include <iomanip> // re. … -
Replied To a Post in Exceptions
You might like to see this edited logic for the 24 hour part ??? Note: if you added min and max values to the int takeIn function ... then you … -
Replied To a Post in Please sugget how can i make these source code more effecient. Thanks alot.
This example of taking in valid numeric input, in an loop, into a STL vector container, and then finding sum, average, min, max, using C++ library functions ... this is … -
Began Watching Please help me make effecient this source code!
Average #include <iostream> #include <cstdlib> using namespace std; bool check(double element[], int count); int main() char redo; do { system ("cls"); double elements = 0, i = 0, j = … -
Replied To a Post in Please help me make effecient this source code!
Please see the comments at the end of your other similar post. Those comments also apply here. Please start fresh with ONE program and indicate where you think it may … -
Began Watching Please sugget how can i make these source code more effecient. Thanks alot.
Average #include <iostream> #include <cstdlib> using namespace std; bool check(double element[], int count); int main() Average #include <iostream> #include <cstdlib> using namespace std; bool check(double element[], int count); int main() … -
Replied To a Post in Please sugget how can i make these source code more effecient. Thanks alot.
Hey ... best to submit one problem at a time. We are not machines. I would suggest you think a lot more about, perhaps, your most pressing problem, and ask … -
Began Watching Exceptions
Hey everyone! Thanks for all the help before and now I have another problem. So I'm doing a clock program with three "invalid" attached files. There are zero errors but … -
Replied To a Post in Exceptions
What are you trying to do? Providing the spec's of the problem you were asked to solve using classes would help us to see what you are supposed to be … -
Began Watching Assignment Program
Programing is my life.... so help me under4stand it. -
Replied To a Post in Assignment Program
Which ... Your life ? Your programming ? If you do not yet know much about programming ... And if programming really is 'your life' ... Then ... there's still, … -
Replied To a Post in need help for finding special NAMES in a url page (homework)
No problem ... :) There are many ways ... Sometimes ... simple is easier to see for students. But yes, I prefer using a format string in many contexts. -
Began Watching C++ FAQ
Write, compile, and execute a C++ program to calculate the sum of the numbers from 1 to 100. The formula for calculating this sum is sum = (n/2)(2*a + (n-1)d), … -
Replied To a Post in C++ FAQ
1 2 3 4 .... n n n-1 n-2 n-3 .... 1 ============================ n+1 n+1 n+1 n+1 ... n+1 So ... 2 * SUM = n*(n+1) Thus SUM = n*(n+1)/2 … -
Replied To a Post in need help for finding special NAMES in a url page (homework)
Take a look: # str.istitle.py # myStrs = [ "Sam S. Smith", "Ann a. anderson", "Anne Anderson" ] mySet = set(myStrs) # pretend this is your big dictionary of names … -
Replied To a Post in need help for finding special NAMES in a url page (homework)
You may have to hunt the web for a big file of names ... When you find suitable ones process and merge them into one big set (of unique names) … -
Began Watching need help for finding special NAMES in a url page (homework)
Hello. I have a homework. I have asked to create a web crawler that be able to enter into a music website and then for the first step, collect the … -
Replied To a Post in need help for finding special NAMES in a url page (homework)
For starters, you might test each word to see if it begins with 'A' ? If it does ... then might look it up in a dictionary of just names … -
Began Watching Determine the even number and sum of all even numbers
Guys I need help. can you help me determine what are the things that i'll used to run my program like this: Enter 5 numbers but refuse to display if … -
Replied To a Post in Determine the even number and sum of all even numbers
But ... do not really need to use an array, if it's ok to process and display the even numbers as they are entered :) @ddanbe ... we both seem … -
Replied To a Post in Need Help fixing an error
But if you are using ... not excessively large, 'pre-fixed max-size receipt tapes' ... on each of your simulated 'cash-registers' ... probably a much better idea than messing about with … -
Began Watching Need Help fixing an error
Here is my code: ` #include <iostream> #include <iomanip> #include <string> using namespace std; class Register { //Private members private: //Creating an array for all the Prices static double Price[]; … -
Replied To a Post in Need Help fixing an error
And also ... for starters ... you need a destructor (to plug your memory leak) ... and probably a copy constructor ... and your code for the overloaded assignment operator … -
Began Watching Insertion Sort Doubly Linked List
Hello, for a school assignment I was supposed to write an insertion sort algorithm for a doubly linked list. As the feedback system of this particular course is rather weak … -
Replied To a Post in Insertion Sort Doubly Linked List
Do you understand how an 'insert-sorted' container is supposed to work, as you add/insert each next element? Have you tested your code out with some random type data input to … -
Began Watching HELP SOS !!! #C++ #Object #String #Function
Why it keeps giving me a zero answer ?!!! even though there IS a text file to search in it !! //a C++ project that reads a text from an … -
Replied To a Post in HELP SOS !!! #C++ #Object #String #Function
If you code as per the following, you can 'see' if there was a problem finding/opening the files ... // fileReadWrite.cpp // #include <iostream> #include <fstream> #include <string> using namespace … -
Began Watching Planning my code?
Can someone please recommend me on a right way of working with codes? how should i plan it? how should i arrange it? every time i start a project i … -
Replied To a Post in Planning my code?
An other way to learn is by observing the coding steps ... and code ... of master coders. Then trying to implement what you have learned to solve similar problems. … -
Began Watching How to make a semestral grade using do...while loop
Good Day Sir, I am practicing on how to program something using do...while loop. I want to make a program that will ask for the Prelim, Midterm, Finals and Semestral … -
Replied To a Post in How to make a semestral grade using do...while loop
Post the code you have tried so far. -
Began Watching Is there anything wrong with my c code?
I'm writing a c code in order to dynamically create a sturcture like this: 1st -> 5 -> 7 -> 2, then 2->5(there is an arrow beneath 2 and link … -
Replied To a Post in Is there anything wrong with my c code?
1stly ... Unless you use a typedef ... you need to use struct node (both words) Take a look here ... http://developers-heaven.net/forum/index.php/topic,2440.0.html -
Began Watching How to count the number of days from January 1, 0000 to any given date
Hello, I need to write a program that calculates how many days from year January 1, 0000 to any specified date including leap years. When I run the program that … -
Replied To a Post in How to count the number of days from January 1, 0000 to any given date
The examples at this next link might give you some ideas to get started ? http://developers-heaven.net/forum/index.php/topic,2615.msg3134.html#msg3134 -
Began Watching Comic Con NY 2014
After a week of Jewish holidays bookending Advertising Week, SMX East, IAB Mixx, and OMMA, I took a break this past weekend to attend Comic Con NY at the Javits … -
Replied To a Post in Comic Con NY 2014
Hey Dani, I didn't realize, until just now, that I had an uncle Jacob Javits? Shalom shalom, David W. Zavitz (Javits) -
Began Watching C programming
Hey all, I want to learn C programming . Can you please guide me? (From where the software to be downloaded, Tutorials etc.) Thanks Akhila -
Replied To a Post in C programming
At some point ... you might like to see these http://developers-heaven.net/forum/index.php/topic,2022.0.html Six Fast Steps to Programming in C http://developers-heaven.net/forum/index.php/topic,2608.0.html C SOME UTILITY functions ... -
Began Watching Old old programmer needs some personal help!
One of my first programs was coded on paper tape. Another was via punched cards. I foresaw amazing stuff, e.g., artificial intelligence, models for weather, space travel, etc., but never …
The End.