-
Replied To a Post in Corrections Turbo C++ Conversion
I am sorry to keep bring this up, but you still haven't answered my question about wether you are supposed to be learning C++ or C. It is a very … -
Replied To a Post in Corrections Turbo C++ Conversion
> When I run it the program will repeatively rewrite everything when I type 'y'. Really? Weird. It doesn't do anything of the sort when I run it. Mind you, … -
Began Watching determining whether a string of parentheses is balanced or not
i can't fix my errors. please help me out... here's the ITEMTYPE part of my code: //itemtype.h::::: #ifndef ITEMTYPE_H_INCLUDED #define ITEMTYPE_H_INCLUDED class itemtype public: itemtype(); void print()const; void initialize(int number); … -
Replied To a Post in determining whether a string of parentheses is balanced or not
It shouldn't be necessary to do so, but it might help put the class in context. Posting the error log would probably be more helpful, in this case, especially since … -
Replied To a Post in Corrections Turbo C++ Conversion
Hmmn, I can see the problem there, yes. While I would be glad to explain in detail any unfamiliar library functions or algorithms I used to you, your professor would … -
Replied To a Post in Corrections Turbo C++ Conversion
I just noticed (or rather, figured out why it was happening) a problem with the code as above, so here is a fixed version: #include <stdio.h> #include <stdlib.h> #include <math.h> … -
Replied To a Post in Corrections Turbo C++ Conversion
Let's see how it does using `fgets()` instead, then: #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <ctype.h> #define BUFSIZE 1024 /* function prototypes */ long string2long(char* rep, unsigned … -
Replied To a Post in Corrections Turbo C++ Conversion
First off, as I've told you a few times already, you really want that to be `int main()`. I know that Turbo C++ accepts `void` as the type of `main()`, … -
Replied To a Post in Corrections Turbo C++ Conversion
Wait, what? 101(base 2) **is** 5(base 10). That's correct. 100b = 4 \ 4 + 1 = 5 1b = 1 / -
Replied To a Post in Corrections Turbo C++ Conversion
Take a look at what variables the `Octal2Decimal()` and `Hexa2Decimal()` functions are actually printing before you come to the conclusion that your conversion code is correct. -
Began Watching Help :(
Ok I really need this to fix up. And I've been awake all night just to fix the error. Can you help me with this errors. #1 Binary2Decimal() when I … -
Replied To a Post in Help :(
If you look down the C++ forum page to the [previous thread](http://www.daniweb.com/software-development/cpp/threads/474555/corrections-turbo-c-conversion), you'll see that I gave a detailed answer already. Would you do us all a favor and **not** … -
Replied To a Post in Corrections Turbo C++ Conversion
OK, let's take a closer look at the `Binary2Decimal()` function and see what we find. void Binary2Decimal() { gotoxy(1,13); printf("[BINARY TO DECIMAL CONVERSION]"); long b2,f2=1,d2=0; gotoxy(1,15); printf("Enter a Binary number: … -
Began Watching How to Fix These Errors
I tried fixing these errors but to no avail. Can someone please explain to me what I need to do to fix them? #include <iostream> using namespace std; int main() … -
Replied To a Post in How to Fix These Errors
The primary thing that leaps out at me is that you dropped the left brace on line 5. -
Began Watching How do i go back to a certain line of code?
I have some code and i want to go back into a certain line however i am not sure how i can achive such things. #SnakeFactBook v.1 #Here is the … -
Replied To a Post in How do i go back to a certain line of code?
Woooee's advice is spot on, as far as it goes. However, if you are trying to repeat something without knowing how many times to repeat it, what you would want … -
Gave Reputation to john.kane.100483 in Corrections Turbo C++ Conversion
Ok 4 more correction to go. #1 How can I put this program in a character array? #2 Binary2Decimal when I input a binary number it skip the "Decimal Equivalent … -
Began Watching Corrections Turbo C++ Conversion
Ok this program is almost done. Some correction are still needed. Can anyone here put this in character array. #include<iostream.h> #include<conio.h> #include<stdio.h> char value; char t, u, v; char answer; … -
Replied To a Post in Corrections Turbo C++ Conversion
Unfortunately, you still aren't indenting your code, making it virtually impossible to read the program. Allow me to (once again) run your code through [Astyle](http://astyle.sourceforge.net/) and format it sensibly: #include<iostream.h> … -
Began Watching Finite State Machine (FSM)
Write a program that tests a string is accepted or rejected according to a certain Finite State Machine (FSM). The program must read the FSM before testing the input string. -
Replied To a Post in Finite State Machine (FSM)
As I explained in my previous response, what you are trying to write is a lexical analyzer. I gave links to some helpful posts and resources in that post that … -
Began Watching Calling a Function
OK so I'm almost done with my program. How to put this in function like putting each case like void Binary2Decimal() , void Octal2Decimal() & , void Hexa2Decimal() in "TURBO … -
Replied To a Post in Calling a Function
> My prof said that she will not accept my program because she said that cout,cin & etc... are not allowed use only the older style.. Hold on for a … -
Replied To a Post in Any base to base 10
Please go back and read what I had to say about `int main()` and proper formatting. I know it may seem trivial, but these are important, even in Turbo C++. … -
Began Watching I don't know how to get started with this program
This is the program that I made // Chapter 5, Programming Challenge 8: Math Tutor #include <iostream> #include <iomanip> #include <cstdlib> #include <ctime> using namespace std; int main() { int … -
Replied To a Post in I don't know how to get started with this program
Well, the first part (display user instructions) seems straightforward; simply write a function that displays the instruction message. While you can probably hard-code the instructions and get credit for it, … -
Began Watching about c++
how can we make a background in c++ .. -
Replied To a Post in about c++
**NO.** This code relies on the old Turbo C++ compiler, and isn't even remotely viable with any modern C++ compiler. The real answer is, it depends on the operating system … -
Began Watching c++ help
the "f" for female is not being recognized so it is not outputting what it should and also the count statement is giving out an incorrect format could someone give … -
Replied To a Post in c++ help
The problem seems to be the simplest of all: in the `if()` statement, you compare `sex` to `"F"` (capital F) instead of `"f"` (lowercase f). This can be solved simply … -
Replied To a Post in Any base to base 10
Oh, I see. That puts you in a rather sticky position, as the instructor doubtless is expecting the program to work with the Turbo compiler. I normally would recommend [Code::Blocks](http://codeblocks.org) … -
Began Watching Any base to base 10
Ok so I manage to built the program I want but there are problems. #1 The conversion from octal to decimal is not correct. #2 The conversion from hexadecimal to … -
Replied To a Post in Any base to base 10
While it is unfortunate that it took so long for one of us to get back to you, you have to understand that this can and often does happen on … -
Replied To a Post in Checkbook program
Which compiler are you using, and have you tried compiling the second version of the program without running it at the same time (usually by selecting 'Build' or 'Compile' rather … -
Began Watching Help me
Write A program that reads a statement of c++ langauge and prints a table of tokens and classes (keyword, identifier -
Replied To a Post in Help me
OK, so what you actually need is a *[lexical analyzer](http://en.wikipedia.org/wiki/Lexical_analysis)*, also called a *tokenizer* from it's main mode of operation, which is to break a stream of characters into tokens. … -
Began Watching ASP.NET model-view-controller (MVC)
When using ASP.NET Web Forms to design the GUI , you may either use the drag and drop method or the source code , where you type code using html … -
Replied To a Post in ASP.NET model-view-controller (MVC)
OK, as an aside, what is with these '213xxxxx' usernames? Is this one person creating multiple accounts, or are these student IDs all from a single school, or what? -
Began Watching lambda expressions
What is lambda expressions? -
Replied To a Post in lambda expressions
In essence, a [lambda expression](http://en.wikipedia.org/wiki/Lambda_%28programming%29) is an anonymous function, which can be used in a context where a regular named function could be used, but where the function in question … -
Began Watching Checkbook program
I need some assistance with a program I wrote and had to alter. Here are the initial instructions and what I initially had then my reworking and what I have … -
Replied To a Post in Checkbook program
It would help a lot if you told us what was going wrong; while we can surmise a lot from the code, to be as accurate as possible, we would … -
Began Watching Question about command-line input
I have seen C++ programs that allow you to type a string (in the case I saw it was a file name) after the name of the program, but in … -
Replied To a Post in Question about command-line input
In C/C++, command-line arguments (AKA shell arguments) are passed through optional parameters to the `main()` function. These parameters, by convention named `argc` and `argv`, are an integer count of the … -
Began Watching c+++
Write a program which accepts amount as float and display total number of Notes of $50 , 20, 10, 5, 2, 1, 0.50, 0.20, 0.10, 0.05 For example, when user … -
Replied To a Post in c+++
First off, we don't do other people's homework for them. Second, we *don't* do other people's homework for them. And third, ***we don't do other people's homework for them***. Sensing … -
Replied To a Post in Mips Print Array 5 per line
I do recommend that you go over the new code carefully, and familiarize yourself with what I did and how it works. If you have any questions, especially regarding the … -
Replied To a Post in Mips Print Array 5 per line
OK, I'm going to break the usual rules regarding how much we can do, but I have a reason for doing so. I worked out a solution for the problem, … -
Began Watching 'input'
in my i.t lesson we were intoduced to 'raspberry pi' within 'Python' and for my homework i have to explain what we did in the lesson. It says i have …
The End.