I don't know.
Type: Posts; User: XodoX
I don't know.
I really need some who can show me how to do this. I'm getting deperate. I just can't get it to work :(
That's the input in the text file and it includes the output (print). The output won't be in...
It's a simple program I think. It just needs to sort the input that is in a txt file.
The input will be this, for instance: This is is an an icorrect sntence.
And the output will be: This...
I obviously did that, but it needs to evaluate the function, do the operation count (T(n)) and worst-case time complexity with O(g(n). I don't get it.
It's a rather simple program, actually.
It's a C++ program that will count the number of operations of two common recursive functions.
This operation count will be basically estimate time...
Like I said in the OP. Like those codes in the input file.
class A {
int a[11],x,y,z;
char *oneString;
public:
A() { oneString= new char[100]; }
˜A() { delete oneString; }
I mean the code in the input file. The code that I posted in the OP. That's the input file. The program takes the input file and then lists whatever is in there. So it needs to have a path to the...
It's just supposed to pull the data from the input file and create an output file. Like a simplified lexical analyzer. I can't find an example online though.
I'm looking for a C++ parser/simplified lexical analyzer that pulls the data from one file and puts it into another txt file. The input files look similar to this one..
class A {
int...
std::set which prevents you from adding duplicates could be used too, right?
Well, I don't know. What if it's not sorted?
I want to use arrays to program a calculator that uses set operatiors. Like:
A= 1,2,3,4 B=1,2,3,4,5
A union B = 1,2,3,4,5
I'm asking the user for the input, but after that I'm stuck. I guess...
Yes, that's what I wanted to do...
At least one helpful comment, thanks. It's working now.
Hello,
I want to calculate the average, median, mode and range of some numbers. It's supposed to read the numbers from a file.
The file got:
int...
oops, my bad! Thanks! It's == and works now. Tells me if it's a number or letter. But I left the bool.
Yeah, probably the letters.
I was gonna use if/else and bool to get the answer if it's a letter or digit.
int main(void)
{
bool n;
Hello,
I need to do 2 things. One program is supposed to check if the entered character is a letter or a digit. Can I use bool to do this? Or is there something better?
I thought I could use the...
I don't get any output at all.
Hello, I've got problems with the following code.
// Headers and Other Technical Items
#include <iostream>
#include <fstream> // For file I/O
#include <iomanip> // For...
I came up with this now..
{
average = 0;
sum = 0;
for (int i = 0; i < array_size; i++)
sum += things[i];
Ok, that will work. So basically the average_array to capture the already calculated sum. I'll try that.
No, it wasn't.
I don't know , I just dont get it. So I just modify it so that I can get the sum?
Thanks. Well, the teacher is kind of strange.
Do you mean this part?
int sum_array(int things[], int array_size)
{
int total = 0; // Accumulator
Hello,
I created the following code:
// Headers and Other Technical Items
#include <iostream>
#include <fstream> // For file I/O