I am currently working on Turbo c++ to be precise on c language - turbo-c++

This is my program code:
and the desired output is this (copied from https://www.javatpoint.com/c-gets-puts):
and the output I am receiving is this
I would be very pleased if anybody can highlight my mistake.
Program Used: Turbo c++

Change printf("You entered %c", s); to printf("You entered %s", s);
Read this page and see why it needs to be %s and not %c.
Good luck with your learning.
Btw, when you have a (larger) program which is working with no errors, you can post it on our Code Review site, and experienced coders will help you to improve it.
Also, I loved Turbo C++, probably before you were born ;-) but, please visit Software Recommendations and ask us to recommend a good development environment for you. It is very important that you get a good IDE, with an in-built debugger - the debugger is your best friend. Turbo C has one, it's just that the whole thing is ... almost as old as me :-/ Nothing wrong with it. It works. But other (free) stuff can make your life much, much easier, and will also get you more support and not so many use Turbo C nowadays.

Related

Is it possible to compile R scripts into a binary?

I've done some research online but I haven't been able to come up with any answer. I know this has been asked at least thrice, as I've viewed those posts, linked here:
First Question
Second Question
Third Question
However, it's been 5, 7, and 9 years since those questions have been asked, and technology is obviously rapidly evolving :) I don't know much about R, and I haven't worked with it for a long time, and so I ask those of you who know better and have more experience if you know of anything that would be useful to me.
If there's nothing that exists now, how hard would it be to create? The reason I ask is that the company I work for would like to obfuscate the proprietary code before it goes out. I would have the full 40 hours a week to work on creating it, and so time and/or difficulty isn't a major concern.
Thanks!
Found this: I'm not sure about the security, but this is definitely a deterrent and would take (I think) some fairly concentrated effort to crack. There is a byte code compiler for R based on the paper linked below. There is a method in library(compiler), which comes standard with R, that allows you to compile an R script to byte code. In the same library, you can load in the source files and use them as you'd like.
A Byte Code Compiler for R

Matlab like debugging tool for Julia

I am writing a big project in Julia at the moment and the only option that I found to debug this code is Debug.jl. It is sooo(!) overwhelming to debug this code without a debugger like the one MATLAB has.
Are there any such debugging tools? I could adopt them even if they are in alpha stage.
Anyone has timeline estimates as to when they are planned to appear?
There is work in progress by Keno Fischer (one of the core Julia developers) on a debugger called Gallium.jl.
This is a very complicated piece of work, due to the nature of Julia as a JIT-compiled language; for example, as one piece, it will include a C++ REPL! As I understand it, there are still some technical issues that prevent it being used, but it will hopefully be available for general consumption "soon".
See this video for a demo, and this discussion on the julia-dev mailing list for the latest news.

Help with audio visualizer

Im new to this website, and mostly to any type of programming. Recently Im trying to learn C++(Game Programming), and my father wants me to make him a web-based application, that flashes the window wether there is any sound playing(I believe it's called an audio visualization), I talked to my brother, and he said that I should do an external application in C++ or Java. He lend me a book about GUI with QT, but the problem is I don't know how or where to start with, Im installing the QT, although I dont know how to add a library to Microsoft Visual C++(I tried but I had some problems, hopefully qt will do everything automatically), but I wanted to know if anyone has any advice,suggestion or any help to give me. Im pretty much a beginner, this will be my 1st application ever made(with C++ at least) and Im really scared. Thank you for the time wasted reading this, I know I wrote a lot, but I wanted to be the more descriptive I could.
Thank you beforehand.
This might be a bit late, but they are right.
Though, if you really want to, I would look into FMOD.
Here's an example using FMOD & OpenGL.
http://segfaultlabs.com/devlogs/sound-equalizer-with-fmod-and-opengl
If that's what you're looking for, if not, email me I am sure I could help you out!

Having another programmer take over an existing project

This question is not coming from a programmer. (obviously) I currently have a programmer making a website for me and I am realizing that he isn't going to completely work out.
He has already done quite a bit of work and the site is almost there but I need someone who is better to take it the rest of way. The site has been done in asp.net and I am wondering how hard it would be for a more experienced programmer to take over and finish the work he has already done?
In general, is it hard for an asp.net programmer to come in towards the end of a project and fix what needs to be fixed?
There is five different pages on the site with two overlays for a signup and sign in. (Five pages with many different versions) There is a database and client-side scripting. AJAX was also used. It's a site somewhat similar to SO only not quite as complex and about something completly different. I would say think of something that falls somewhere between Stackoverflow and Craig's List. Thats all I can say now as I don't know the technical words.
You'll probably find that the new programmer will want to rewrite most of the code from scratch. If you are on a tight deadline or tight budget and can't accept a complete rewrite then you will need to hire someone that is not just good at writing good code, but good at reading, refactoring and improving bad code. It is two completely different skillsets and the second is much rarer. Depending on the quality of the existing code (and I'm assuming here that it is not good), your new programmer may end up rewriting much of the existing codebase just to understand what is going on.
Depends on how good the previous programmer was and on the complexity of the project. It might be anything between trivial (well commented source, some high-level docs, unit tests, modular or simple project), to "this crap needs a complete rewrite" (no docs, custom "let's try this" solutions, etc.). If you're not a developer it might be really hard to tell. And other people won't be able to answer without more details.
I'm no asp.net expert, but I suspect the ease with which the replacement will be able to finish the project will depend mostly on just how bad a job the first programmer actaully did. Bad code is painful to fix in any language. :)
A good idea will be to have them work together,for say, a week or two. This will help the new programmer get some much needed training about your current system.
You may find that although the site is almost complete, the successor will have to spend more time than anticipated when performing alterations, as this person will have the mental model of the software that the current developer has. Hence the need to next developer to "re-write" the code base.
If you can, you'll want to ensure that the code base that you have built is maintainable. That is, the solution is built in such a way that it can support alterations easily. As Mark Byers suggested, you'll want to get someone who can not only program but can also re-work your existing code with the goal being that someone else will inevitably implement future changes. If the software is something that you need to keep working for an extended period you'll want to make the investment in making sure that it new functionality can be added easily.
Remember this experience described at The Daily WTF. Take appropriate precautions.
Generally if the site is set up in some sort of standard fashion then another programmer should be able to pick it up easily. if the existing programmer did things to obscure the code then it will be hard for another programmer to pick it up. Basically the question is how readable is the code?
If the current programmer is unwilling to communicate the true status of the project in a professional, non-technical manner, then give him an ultimatum - your way or the highway. Odds are he will be more forthcoming if he knows you mean business. Make sure you have a copy of the latest code before broaching the subject.
It sounds like you are going to end up hiring someone else anyway, especially if you're asking these kinds of questions at this stage, so you might as well go for broke.
As Mark Byers said, it takes a seasoned developer to take someone else's code and resist the urge to "pretty it up" in order to bring the project to a working conclusion!

Anyone doing anything yet with Adobe's Project Alchemy?

Making another appearance this year at MAX was Alchemy, Adobe's C/C++-to-AVM2-bytecode compiler. It seems like really interesting stuff -- I haven't yet had time to really dig in and try it out myself, but I can definitely imagine putting it to good use. Wondering whether any of you've had a chance to have a look at it yet, and if so, what kinds of things you've tried, how they've gone, what your opinions are, and the like. Thanks!
I have played a bit with Alchemy; tried to port swfmill to AS3.
My project stalled because I would really need a good compression library...after all I cannot drag a library along with my C code ;)
Also, I found out that it is, at this stage, more reliable to read your files from Flex then pass their content to the C code than trying to read them in your C code itself.
I have an example of how I do this on my blog.

Resources