Hi, thanks for reading my message. I've changed my code a bit and I get it to compile but the math is wrong.
#include <iostream>
using std::cout;
using std::endl;
#include "Complex.h"
Type: Posts; User: deedlit
Hi, thanks for reading my message. I've changed my code a bit and I get it to compile but the math is wrong.
#include <iostream>
using std::cout;
using std::endl;
#include "Complex.h"
Wow, I am slow....hahah I didn't even catch that.
Thanks!
Thank you very much! that took care of two of three of the errors. But why won't it let me have the int after a .h file?
Hello,
when i try to compile this program (it has three parts) I receive an error message that confuses me. Below are the code and error message.
#include <iostream>
using std::cout;...
Do you know how to check for invalid input? I tried to make another while loop but it wouldn't run properly
Thanks for your reply. The guy who was tutoring me told me that I was wrong when I had endl; in my pseudocode. I guess I should not listen to him next time and find a new tutor.
Do you know of any...
Hello! Yes this is for homework, but I only have a few teeny questions. Why, when I compile my program, does it give me three errors about end1 not being in iostream?? I know it is end(one) and not...
Thank you for your help! You are by far the most helpful person on this board! if i am not mistaken you have helped me before and I really do appreciate it :)
I wasn't sure if I had to or not so I left it, but when I did, the same errors came up. Yes I was trying to cast them because if I didn't then a different error saying that illegal type for the case...
Hey there. I have been having trouble compiling this Ritchie program on polish notation after i tried adding a mod case to it. it says I am missing a semicolon but I dont understand why. Also, for...
Thanks again.
Is it possible to add something to this program to make it so the latter half, the odd numbers, are also in the same order they began in at the end of the array?
Ex:
before: 1428754744
after:...
Geez, now I feel stupid
:o
Thank you very much for your help.
What kind of function is comp? It says something about a redeclaration of comp as int at line 5 as an error??
#include <stdio.h>
#include <stdlib.h>
#define DIM 10
int comp(void *, void...
Thanks for the link, it helped explain the qsort function.
I am still a little confused about the pointers though. When I typed in the code, it said that I had a redeclaration of 'comp'...
I'm new to the qsort function also. Is it just a shortcut that I probably haven't read about in my intro book yet?
Also, my book has void main() everywhere and I noticed you had
int comp...
Thanks for replying everyone.
I probably had a typo; I didn't copy and paste but retyped.
Thanks for the help, I understand more now.
I was wondering if I am on the right track with this one.
I have to sort even and odd input numbers of an array, placing the even numbers at the front of the array, and the odd at the end.
...
Thanks very much. I see now what you mean, I have crazy syntax everywhere.
:)
Hey thanks for replying so quickly!
I understand what you mean by recording the location, I just can't figure out how (that's how pathetically new I am to this language).
So after I have...
Hi! I am currently working on a small exercise in C that I am kinda stuck on.
It says: Write a program that reads a sequence of 8 integer numbers into an integer array, finds the minimal value in...