49,757 Topics
| |
urgent need: write a computer program in c++ that solves a linear simultaneous equation of 10 variable | |
Project C++: A player engine for RPG fighting Hello everyone, I'm beginner programmer and got a task to finish but I'm lost. Please help me to start the project: An engine is needed to create a player and non-playable character objects. Players will require an inventory of Weapons, Armor, and … | |
i like c++, Is C++ enough to bring me a job or should i study something else? | |
NEED THE CODE FOR THIS: The University wants to make a basic graphical display to show how many people received different grades for a piece of work on a module. You are required to write a program in C++ that achieves this. The program is in a number of parts. … | |
I have developed a player v/s player game for tic tac toe..but can't understand the logic for AI ..can someone please include the AI segment in my code because i so much need it for my school project #include<iostream.h> #include<conio.h> #include<string.h> char grid [3][3]; void display_grid() { for(int i=0;i<3;i++) { … | |
[B]Intro[/B] This tutorial provides a brief introduction to the random number functions that come as part of the C++ standard library, namely rand() and srand(). [b]rand() and RAND_MAX [/b] The C++ standard library includes a pseudo random number generator for generating random numbers. In order to use it we need … | |
Hey, i was just mucking around and improving my code etc and made a calculator, it's not the best calculator in the world, it only can handle 1 or 2 numbers but i think it's good my self :). | |
define an array with 12 month/rows and 31 days/columns for a year's temperature data in a main function. One subtask is to write a function and call it from main reading a text file with mean temperature data of one year and store read data into this array. For example, … | |
convert from: loops properly convert to: loops back to from (should just loop back to convert to:) need some guidance #include<iostream> using namespace std; int main() { int num; char ch='y'; int amount; int choice1,choice2; while(ch=='y'||ch=='Y') { do { system("cls"); cout<<"\t\t|DLSL CURRENCY EXCHANGE PROJECT |"<<endl; cout<<"convert currency from: "; cin>>choice1; … | |
Hello, Please, i dont know why my implementation is failing the testDemo Fucntion.. Below is the full code. it is Failing operator < .... testLessThan interface: #ifndef DATE_H_ #define DATE_H_ #include<iostream> using namespace std; class Date; ostream &operator<<(ostream&, const Date&); istream &operator>>(istream&, Date&); class Date { private: int month; int … | |
how to work algorithm of question and answer in c++ | |
#include<iostream> #include<fstream> #include<string> #include<windows.h> using namespace std; void mainMenu(); void viewtable(); int main() { mainMenu(); return 0; } void mainMenu() { int num; char ch='y'; while(ch=='y'||ch=='Y') { do { system("cls"); if(cin.fail()) { cout<<"Invalid Input..."<<endl; cin.clear(); cin.ignore(500,'\n'); } cout<<"\t\t|DLSL CURRENCY EXCHANGE PROJECT |"<<endl; cout<<"\n\n"; cout<<"1-View Latest Global Currency Exchange Rate\n"; cout<<"2-Update … | |
How to do p.o.s system that need enter a switch statement on c++ | |
please help me, create an algorithm that can be used to spell out a positive number worth less than 1,000,000 and create a c ++ program for the algorithm | |
Hi, I have been given a project to finish in school in 3 phases, the thing is I am not that good when it comes to programing. The project was to develope a tic tac toe game as following: **Phase 1: Write a program that will first ask the user … | |
I need to convert hours into weeks, days, and hours. My professor was hinting that there might be a way to do this using the modulus operator but I can't seem to think of a way that its possible. Can anyone help? thanks! | |
Hi, I'm new on this forum, but a friend directed me here to seek further assistance with a program I am trying to create. I have to create a program that can manage 10 bank accounts, one of which uses appropriate type definition to store the name, account number, balance … | |
I'm having a problem with the program i did. The problem is ; It says that the conversion ( for the grade part , the ones with '+' and '-') may lose it's significant digit.. Does it mean that i can't use the plus symbol or the minus symbol ?? … | |
Why doesn't the code (2) below produce the same output as the code (1)? Let's say you entered "4" as input: (1) int x; cout << "enter integer: "; cin >> x; cout << x++; cout << ++x; cout << x; The output of the above is "**466**" (as expected). … | |
Write function quality points() that inputs astudant s average and return 4 studant s average is 85 100 ,3 if the average is 75 85 2 if the average is 7565,1 if the average is 65 50,0 if the average is lower than 50, the program prints "excellent" if the … | |
A children's game of 'count out' is played as followed. '40' children are arranged in a circle, a sentence containing of 'm' words is used to eliminate '1' child at a time until '1' child is left. Starting at child '1' the children are counted from '1' to 'm' and … | |
THIS SOURCE HAS printf STATEMENT WHICH IS TO BE REPLACED WITH cout STATEMENT. PLEASE HELP ME....... :) #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<time.h> int a[9][9],b[9][9],r[60][2]; int row, col, icount, mode; char solh; void main() { void readvalues(void), display(void),generate(void); int solve(),checkmat(), checkrow(), checkcolumn(),check(),isfixed(); int i,j,error; char c; clrscr(); prinf("\n\t\t\t SUDOKU GAME by:\n\n\t\t\t \n\t\t\t … | |
Is there a function in c# that returns x times of given char or string. Or I must code it? Thank you Saanvi sharma | |
import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; public class MatrixPath { static List<String[]> obstacles = new ArrayList<String[]>(); static String[] size = new String[2]; static String[] startingPoint = new String[2]; static String[] endPoint = new String[2]; static int sizeOfRow = 0,sizeOfCol = 0; char one = ' '; … | |
I am trying to create a header file that contains several global variables. At the moment, the Globals header file looks like this: This is Globals.h #ifndef GLOBALS_INCLUDED #define GLOBALS_INCLUDED #include <string> std::string DRIVE="HELLO!!!!!"; #endif To go along with this, I have a cpp and h file the contain a … | |
G'day everyone! I'm fairly new to C++, so bear with me if this is painfully obvious. I'm trying to get a user to guess a string, which is just a vector containing random capital letters. That random letters part works great, however I can't figure out how to get my … | |
I want to my program to prompt user to input a number with three or more integers I need the program to output a space between each numebr example: cin>>3334; i want the output to show 3 3 3 4 each with a space and then i also need to … | |
Write a C++ program that takes in text from the user and prints the total Number of spaces used in the text. Kindly, use #include<iostream> and #include<conio.h> only. while loop is more preferable than for or do-while. |
The End.