wow just reread it..:eek:.."You must write the code that actually does the conversion
and not use special formatting in printf."
***Beep!!! :mad:
I guess I won't be using the short cut at all...
Type: Posts; User: Cess
wow just reread it..:eek:.."You must write the code that actually does the conversion
and not use special formatting in printf."
***Beep!!! :mad:
I guess I won't be using the short cut at all...
he wants us to do it manually for this assment, thanks though... cuz that does help with my next assessment since he doesn't state in that one that we don't have to use a for loop so I'm using it in...
just figured it out I think.........
for (i=0; i < 8 ; i++)
{
hexStr[i] = '0';
}
hexStr[8]=0;
for (i=1; i < 8 ; i++)
{
Ok I"m new too but hopefully this helps...I found your code kind confusing but maybe with some work we can get it to work. 1st I would pay more attention to your brackets.... you just seem to place...
I'm trying to make a for loop for hex... I had the code below but I would figure it would be less confusing with a for loop but I"m having trouble geeing it to work right
hexStr[i] = '0';
...
ok I got it to work better but it is acting funny with 0 0 1 when it should say "Sorry the roots are not real!!" anyone know why it does that and how I can fix that?
#include <stdio.h>
#include...
ok been working on it and now I just can't get it to give the correct roots.... can anyone help me?
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <cmath>
this is my 1st attempt with pointers and I can't get this program to tell if there not real or to produce roots. Any help would be great... cuz I know its not 0.000 0.000 thanks
#include...
what does str[i] = str[i] - 'a' + 'A'; mean in the code below
#include <iostream>
using namespace std;
int main()
{
cout << "Enter a character string: ";
Ok still going over the C++ tutorial on lesson 3
#include <iostream>
using namespace std; // So the program can see cout and endl
int main() { // The loop goes while x < 10, and x...
Oh ok ya so even though "that OR will be evaluated after AND. " you have to still follow order of operations 1st! ok that makes sense. thank you!
(0||1) = true
!(0||1) =false
1 && 0 = false
!...
3. Evaluate !(1 && !(0 || 1)).
A. True
I don't understand why this is true......can someone please break it down and explain it to me? thanks
ok another program I was working on......:confused:
#include <iostream>
/* Write a program that will calculate the average of n data points which are entered by the
user and print out the...
thank you again, whats a bit wise operator?
ok I'm tryin to practice before doing homework...cuz I still don't get it and I was trying to do a simple program but I can't seem to fix it....:o:confused:
#include <iostream>
using...
thanks, this is very helpful! I don't understand all of it yet, but I hope to learn to soon. thanks
>ch -u "simpleFilt.cpp"
ERROR: maybe missing ';' before '='
ERROR: with unnecessary identifier 'i' in casting operator
ERROR: incompatible types for casting operation, casting void to int...
my professor gave us an example program for a filter.. but I can't get it to work...
This is my 1st time using C++ and before we where learning C... so I can't easily see why it doesn't work.......
I really should post the 1st code, and not try and mess with it cuz I only seem to make it worst.
this is what I had after he informed me of what to do, before I started to mess with it and screw it...
I know this isn't right... but I'm a little confused by what you said so if you can guide me on my errors it would be great. Its always says zero no matter what value I give it... This is what I...
I tried different things.. so I returned that to what the professor put originally .... I know that won't work...
ok fix that and now it ends if you enter more then 20 values.
However I am still having trouble with the variance... it always shows 0 that would be great...I'm trying to figure it out using stuff...
ha ! yes!! thank you!
ok now I'm going to work on the rest of it.
thank you again
ok thanks but ya its doing this still
>ch -u "professior given"
Enter the number of points: 2
Enter a value: 2
Enter a value: 4
Average = 3.000000
Biggest = 0.000000
ok thanks but I can't seem to get that to work still gives me zero.....:mad:
/* Melissa Schwager Homework 4
Write a program that will accept the number of points
and then read in the points...