- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 4
24 Posted Topics
If I have the following code, let's say the Parent class has the complexity of O(n^2) according to methods included in the Parent. So if I want to calculate the complexity of inherited class (Child class), does it take the Parent class complexity and its own complexity? something like that … | |
I installed windows 10 and it works good , then I installed kali-linux and that problem apears. when i open my computer it goes directly to windows not to dual boot (bootloader) to choose between the windows and kali .. I tried the live USB solution but nothing happen.. it … | |
I tried to draw that shape but it doesnt work in right way .. any help? example for size = 3 print: * * *** * * #include<iostream> #include<cmath> using namespace std; int main() { int N, t,col,row; cin >> t; for (int i =0; i < t; i++) { … | |
I make a program to simulate the Shortest Job First algorithm in CPU scheduling .. this function will calculate the start , end, turn,and wait time for each proccess according to Non-preemptive way .. the 1st condition gonna check for the 1st arrival time or the smallest burst time .. … | |
I tried here in this code to insert struct information then assign to vector and get the smallest age .. i want to do that with vector to learn more about it .. can anyone help me to fix it .. and explain to me what's wrong in my thought … | |
I decided to learn how to program with Ada language .. if any one can advise me which compiler that I have to use ?? there are many of them .. but i havn't any knowledge about | |
this code is correct expect that part which calculate the waiting time .. it should be 0 in first process but in output it equals the burst time of 1st process. how can i fix it ? #include <iostream> #include<iomanip> #include<queue> using namespace std; int main(){ queue<int> sc; float tat … | |
i know it's too much long but i really need some help to fix the program errors , am stuck within whole code lines and ma mind went confused .. it's airport simulation program the airport has one runway .. one plane can land and one plane can fly but … | |
i tried to figure out the wrong here but i donnu why it ignore the part of string converting .. b2 is always equal to 0 in the output .. here is my code #include<iostream> #include<string> #include<sstream> #include<bitset> using namespace std; void encrypt(long num); int main() { int N, M; … | |
I need some help in that program to read 2 numbers and print sum of them the program will be tested on one or more test cases. The first line of the input will be a single integer T, the number of test cases (1 ≤ T ≤ 100). Followed by … | |
I want to write a function that displays the frequency of occurrence of an element entered by the user in a stored array. The array always has the following elements: 4, 2, 7, 10, 9, 7, 6, 10, -8, 7, 9. well i wrote this one but i have a … | |
Re: do u mean that ??? #include<iostream> #include<iomanip> #include<cstdlib> //contains function prototype for rand using namespace std; int main() { //example for loop 20 times for(int count=0;count<20;count++){ cout<<setw(10)<<1+rand() %6; if(count%5==0) cout<<endl; } return 0; } ![]() | |
say we have array[6] .. i want to ask user to enter 6 values to the array and if there is any repeated value the program will cout them .. which operation that i can use ? i thought about switch statement or if else condition and i have to … | |
Re: #include<iostream> using namespace std; double power(int x,int n) { int power=1; for(int count=1;count<=n;count++) power=power*x; return power; } int main() { int a; int b; cout<<"enter the base :"; cin>>a; cout<<"enter the exp :"; cin>>b; cout<<a<<"^"<<b<<"="<<power(a,b) return 0; } | |
..am using manjaro linux and i have a problem with audio system that videos are playing without any sounds ..what should i do in this case ??? | |
how do i write function that accepts unlimited arguments? i know in java we write it in this way `funcName(int ...)` ..so what's the way to write it in C++ | |
how can i make swapping for 2 variables in more than 2 ways ?? | |
what's the wrong with this code ?? ..it doesn't make the prossecc just typing the marks then nothing !! //program to get degrees of ten students in exam and compute the average exam degree of them #include<iostream> using namespace std; int main() { int mark,i; int average,sum=0; cout<<"enter 10 marks … | |
In the following code : what's the difference between int and int& ? and what does it mean ?? i got something that n2 and n3 are changed only but not n1 and n4 !! is that related to (int& ) ?? #include <iostream> using namespace std; void change(int,int&,int&,int) int … | |
i try to setup my usb modem on linux/manjaro ..but i caaant !! i inseret the usb then extract linux file ..then go to the terminal to run the installation file .. install.sh but it failed at least ..so how can i make the modem run on manjaro ?? | |
#include <iostream> #include <conio> void main () { cout<<"rose mary"; getch(); } | |
well .. i found out that python is easy language prog. for beginner like me .. but at 1rst am looking for some advices from proff. programers and i found some videos by Dr.Andrew N.Harrington from chicago on http://anh.cs.luc.edu/python/hands-on/ .. | |
can any one help me ??.. i need a link for C++ compiler and translator and C++ program ... or any sites to download it | |
i will start studying programming with C++ prog. language .. which programs should I use ?? please I need some help |
The End.