You are entering a character after having just entered a number.
cin.ignore(20,'\n'); should work.
You ignore 20 non newline characters or the newline character (whichever comes first) in the...
Type: Posts; User: m&m
You are entering a character after having just entered a number.
cin.ignore(20,'\n'); should work.
You ignore 20 non newline characters or the newline character (whichever comes first) in the...
Hi,
I am to write a program which should add and subtract any two polynomials of up to degree 4. I am also supposed to multiply two quadratic polynomials.
Two questions:
1. How to print out...
someone who's just not grateful for the help he gets, even in a little forum like this. How do we avoid people like this?
to compare something you need at least 2 things to compare. Hence too few arguments.
I see there's an object oriented version of C? Where'd that come from and what benefits does it have over C++??
http://www.planetpdf.com/codecuts/pdfs/ooc.pdf
I rewrote the program, sort of got it to do what I want. Any tips on how to make it better??
#include<stdio.h>
#include<string.h>
int funcAdd(char*, char*);
int StringToInt(char*);
i'm just trying to get it to work. Of course, all the sums should be valid if you entered in valid integers, so that means somewhere my test program is not written right somewhere... but where?
Hi,
I wrote program that can add two integers from command prompt using argv. I tried to write a test program like below that would automatically test all the possible pairs of integers (from 0...
Thank you very much Claudiu,
I removed the * from
j = isAllDigits(*input);
and all is well :cool:
Hi,
I attempt writing a program to add two integers as shown below but I MS Visual C++ express 2008 complains to me:
1>adding.obj : error LNK2019: unresolved external symbol "int __cdecl...