Thx man. I missed an easy one :(
Type: Posts; User: exus69
Thx man. I missed an easy one :(
Hello everyone,
This program is used to calculate the discount on a given number given its discount rate.
#include <stdio.h>
int main ()
Thx memcpy, I asked in a hurry, should have gone through the code
properly...
Hello everyone,
Am trying to solve the following problem:
Create a counting program that counts backward from 100 to 0
in increments of 10.
I fail to understand why this code executes a blank...
ardavirus, thanks alot for explaining the "under the hood" part.
Adak and CommonTater, I fully agree with your views and full respect
to both of u'll. I AM lazy in real life and I DESERVED the...
Hello ardavirus,
You answered my question even before I was writing my question!!!
But dont you think, technically, the following code does the same thing what u've mentioned:
for (r = 0,...
Hello Adak,
I agree its my mistake. I should have gone through that link thoroughly instead of asking here again. But I wanna know whats the technical difference in my approach
for (r = 0, c =...
Hello Adak,
I did ask you(or anyone) who could show me practical code what you actually mean.
Am a real noob only dependant on this forum to get help on C but instead of showing
the code ur...
Ok lets consider a very simple code of a multi dimensional array.
#include <stdio.h>
int main ()
{
Hi Adak,
It'll be great if you or anyone can give me an example of the same with respect to the above program.
Thanks Salem. Now am getting the result 10000100021473157120 after making
the following changes to the code. I dont think this is right.
#include <stdio.h>
int main ()
The result that am getting on executing the code(with or without the inner braces) is 2293440!! Now it has confused me even more. I tried it the following way:
#include <stdio.h>
int main ()...
Hello everyone,
Am learning C programming from "Programming In C" by "Stephen Kochan". The following para has been copied from the book straightaway coz I want you guys to explain me the part in...
Thanks grumpy that solved the problem and you explained the "under the hood" part very well :)
Solution: ratingcounter[11] instead of ratingcounter[i]
Hello everyone,
This is a program which asks the user 10 times to give a rating to a television show on a scale of 1 to 10(inclusive). Am posting the before and after code. There is no problem...
Thanks guys that was quick and informative :)
Hello everyone,
IDE is Code::Blocks 10.05
When I compile the following
#include <stdio.h>
That worked. Thanks alot:)
Removing cin.get () does not help. In fact the screen vanishes if I type something as input and press enter.
Hi everyone,
Following is the C++ code that am stuck with at runtime:
#include <iostream>
#include <string>
Ok so finally my problem is solved and these are the two changes that
I made to the existing code :
1) Added using "namespace std ;" (excluding " ") below #include <iostream>
2) Removed endl...
After adding "using namespace std ;" (excluding " ") below #include <iostream>
am getting new errors as follows:
error: no match for 'operator >>' in ...
Impressive?? I dont know my C++ course starts with classes and objects :)
and that exact program works fine on gpp compiler but its giving errors
on Dev C++ and Code::Blocks compiler :(
My tutor...
Hello everyone,
Am writing my first C++ program and I've hit the first roadblock as well lol
Heres the code:
#include <iostream>
Oh, how come the author has asked an Array question when Arrays start from chapter 7!!! Thats strange....Nevertheless I would highly recommend this book for learning C from scratch... Thanks alot for...