-
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 … -
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 << … -
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 … -
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++. -
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; … -
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);` … -
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 … -
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 … -
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 … -
Replied To a Post in C++ Problem
We don't do homework. -
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 … -
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 { … -
Replied To a Post in Queue in a shallow form Please write a better code
Do you want that someone make your homework? -
Began Watching tree
hi guys Iwant a programm to creat tree and calculate the sum ant count it and max and min -
Replied To a Post in tree
map from std C++ lib. Look at google for others. -
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 … -
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 … -
Stopped Watching Thesis
i need a topic proposal for my thesis.. Please give any suggestion -
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 … -
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) … -
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 … -
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; … -
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 … -
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)); … -
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 … -
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 … -
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 … -
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 … -
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. … -
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 … -
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 … -
Began Watching Random data generator
How to make a random data generator in c++? -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 { … -
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) … -
Replied To a Post in function
Well, my fee is $1100 USD but it don't have a time limit. -
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 … -
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 … -
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 … -
Began Watching Thesis
i need a topic proposal for my thesis.. Please give any suggestion -
Replied To a Post in Thesis
Give more information, for example, your thesis will be in computer science? -
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.