• Member Avatar for Maritimo
    Maritimo

    Stopped Watching Could someone please help me with this?

    #include <cstdlib> #include <iostream> #include <string.h> #include <cstdlib> using namespace std; int main(int argc, char *argv[]) { int airp[13][6], row[2]; string t; char airc[13][6], s; for(int i = 0; i …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching Output numbers from 1 to 12 and write a message beside a number?

    Here is what I have so far: #include <iostream> using namespace std; int main() { int i; for (i = 1; i <= 12; i++) { cout << i << …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching heap short and heap tree about help me pls

    The program, which you will write, will be a console application of C++ and will read the file.txt file while separating the hidden countries and cities when it starts to …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in C beginner book for Python programmers

    See also what we said in "C or C++" discussion about learning C before C++.
  • Member Avatar for Maritimo
    Maritimo

    Began Watching passing floats and reference in C

    why this code not work ?? # include <stdio.h> void get_values(float *r, float *v); float do_calculations(float resistance, float voltage ) ; void display_answer(float current); main() { float resistor; float volts; …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in passing floats and reference in C

    On line 18, change `get_values(*r, *v);` with `get_values(&resistor, &volts);` Also you can change line 39 from `scanf("%f", &*r);` to `scanf("%f", r);` and line 43 from `scanf("%f", &*v);` to `scanf("%f", v);` …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching C beginner book for Python programmers

    What's a good book to learn C if you already know Python and are comfortable with computer science terminology? I'd like a book that is downloadable as a .pdf free …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in C beginner book for Python programmers

    Sorry but I can't tell you a book like that. > Also, is there an advantage to learning C before you learn C++? No, there isn't. As a matter of …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching C++ Problem

    How to solve this problem? I'm getting tired thinking abou this. Help me. Write a C++ program to help the master reporter of a traffic centre to analyse the amount …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in C++ Problem

    We don't do homework.
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in How do you handle the slow execution speed of STL during development?

    Realy nice. I think that the final answer to the very initial question could be: To achieve fast operations of STL libraries during development, you can compile different parts of …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching Queue in a shallow form Please write a better code

    PLease write a better code which is rather advance form using #include<queue> && #include<list> #include<iostream> #include<conio.h> #include <iomanip.h> using namespace std; const int size=20; // Patient Class class Patient { …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in Queue in a shallow form Please write a better code

    Do you want that someone make your homework?
  • Member Avatar for Maritimo
    Maritimo

    Began Watching tree

    hi guys Iwant a programm to creat tree and calculate the sum ant count it and max and min
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in tree

    map from std C++ lib. Look at google for others.
  • Member Avatar for Maritimo
    Maritimo

    Gave Reputation to mike_2000_17 in C++ on its way out, Welcome to D

    I agree that D might turn out to be another "Esperanto" programming language. D seems to have tried to satisfy everyone, and therefore, pleases no one. I remember how Andrei …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching i need a help with my C++ project

    Create a two & three -Dimensional Shapes Mini-system that consists of 6 shapes, Square, Rectangle, Triangle, Circle, Cube and Sphere and then calculate area, perimeter, volume , or draw the …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching Thesis

    i need a topic proposal for my thesis.. Please give any suggestion
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching Occuring symbol per line

    I want to get the occurence of the symbol ';' for each line of this C program. I type the name of the file Source.c and try to count the …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching function

    create a c++ program that has 3 functions with return type void first function is called Sum the second function is called Information and the third is called Calculation. a) …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching Othello Console Game - Checking Diagonals Help

    Hello fellow coders, I am currently taking a C++ class and have a final project due very soon. We are recreating the game Othello/Reversi using the console. So far I …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching BlackJack 2.0

    //BlackJack // Plays a simple version of the casino style game of blackjack; 1 - 7 players #include <iostream> #include <string> #include <vector> #include <algorithm> #include <ctime> using namespace std; …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching Why editing hexadecimal "code" affect programs and certification so much?

    Recently I opened game with "hex editor". You know, it's kind of program for newbies that makes it able to read program in hexadecimal code and make it able to …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching Can't find error problem - error: expected expression before ‘=’ token

    Hi, I wrote the following program: #include <stdio.h> #include <stdlib.h> #define TRUE = 1; #define FALSE = 0; static int *arr; static int size=0; void createSet() { arr= (int *)malloc(sizeof(int)); …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching C++ Reading Files & Ram Usage

    I've been having a hard time for quite a while now trying to read files. These files include English text, pictures music and so on. After hurting in the jungles …
  • Member Avatar for Maritimo
    Maritimo

    Stopped Watching Proper grasp of arrays in memory

    This is the first time I have felt a smidgen of fear when learning C++. I am doing an exercise in *Accelerated C++* and the fear is that I'm not …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in How do you handle the slow execution speed of STL during development?

    Dear Mike, your answer is tricky. You said a lot of things that are totally true but it is not what I am proposing. > Assuming a situation where you …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching C++ on its way out, Welcome to D

    If you are a programmer than you probably know or at least know of C++ well now a company called Digital Mars is developing the D programming lanugage. [I] "D …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in C++ on its way out, Welcome to D

    D is something like to try to create a car that can fly like an airplane and transport like a jumbo but with the facility to dive under the sea. …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching C++ Reading Files & Ram Usage

    I've been having a hard time for quite a while now trying to read files. These files include English text, pictures music and so on. After hurting in the jungles …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in C++ Reading Files & Ram Usage

    Your problem can be fixed just adding two parenthesis. The idea is to put your str string into a scope `{/*...*/}` and, at the end of the scope, your str …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching Random data generator

    How to make a random data generator in c++?
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in Random data generator

    If you don't want to programm your own random number generator but instead want to use something done, C++11 have a complete random number library defined in <random>. There, the …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in Proper grasp of arrays in memory

    > 2) Are there any memory-specific issues that the below code will encounter? Yes, your first call to `push_back` will fail, for example, because `iterator first` do not point to …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching Proper grasp of arrays in memory

    This is the first time I have felt a smidgen of fear when learning C++. I am doing an exercise in *Accelerated C++* and the fear is that I'm not …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in Proper grasp of arrays in memory

    > 1) Is this statement correct: In memory, elements of an array are stored "against" each other (I think more precisely, contigious space is allocated for them?) and a pointer …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in How do you handle the slow execution speed of STL during development?

    Sorry, I don't agree with mike. It is perfectly posible to create a library to work with `std::deque<foo>&` compiled with -O3 and work with other code compiled with -Og. You …
  • Member Avatar for Maritimo
    Maritimo

    Gave Reputation to RikTelner in Why editing hexadecimal "code" affect programs and certification so much?

    @Taymin Yes, I also mentioned checksums idea in my main post. I think you should read it. @gusano79 It's not like the program didn't work before. I just modified ONE …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching Othello Console Game - Checking Diagonals Help

    Hello fellow coders, I am currently taking a C++ class and have a final project due very soon. We are recreating the game Othello/Reversi using the console. So far I …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in Othello Console Game - Checking Diagonals Help

    First I recommend making your board two rows bigger and two columns wider so you will not change your code when you are at the border. You must 'mark' the …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching i need a help with my C++ project

    Create a two & three -Dimensional Shapes Mini-system that consists of 6 shapes, Square, Rectangle, Triangle, Circle, Cube and Sphere and then calculate area, perimeter, volume , or draw the …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in i need a help with my C++ project

    Just to start: class Shape2D { public: double area() = 0; }; class Paralelogram : public Shape2D { public: double perimeter() = 0; }; class Circles : public Shape2D { …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching function

    create a c++ program that has 3 functions with return type void first function is called Sum the second function is called Information and the third is called Calculation. a) …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in function

    Well, my fee is $1100 USD but it don't have a time limit.
  • Member Avatar for Maritimo
    Maritimo

    Gave Reputation to RikTelner in Why editing hexadecimal "code" affect programs and certification so much?

    @Taymin Yes, I also mentioned checksums idea in my main post. I think you should read it. @gusano79 It's not like the program didn't work before. I just modified ONE …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching How do you handle the slow execution speed of STL during development?

    If I (have to) use C/C++, I'm mostly working on time-critical or real-time applications. Examples are OpenGL texture Streaming (Example: Streaming Satalite Data on planet surface in realtime: https://www.youtube.com/watch?v=ws2ra5MvDi4) or …
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in How do you handle the slow execution speed of STL during development?

    Probably you don't need to go with the debuger to all of your functions. In that case, I also sujest you to compile some files with -O3 (where you are …
  • Member Avatar for Maritimo
    Maritimo

    Began Watching Thesis

    i need a topic proposal for my thesis.. Please give any suggestion
  • Member Avatar for Maritimo
    Maritimo

    Replied To a Post in Thesis

    Give more information, for example, your thesis will be in computer science?
  • Member Avatar for Maritimo
    Maritimo

    Began Watching Occuring symbol per line

    I want to get the occurence of the symbol ';' for each line of this C program. I type the name of the file Source.c and try to count the …

The End.