49,761 Topics
| |
Hello, I am making a tictactoe project for my 1st year college and I am wondering how can I use 1d array for tictactoe? for example) is it like int row1[3] ={0,1,2,} int row2[3] ={3,4,5} int row3[3]={6,7,8} is it like this? | |
Hello, I've been asked to create a tool using 3rd party API. The API requires to send the user details in encrypted format. The problem here, they didn't mention what kind of encryption we should do. They just provided a two C++ functions to encrypt the data. I'm a PHP … | |
I am trying to work the next and previous button to read or navigate throughrecords, please help me to correct this, I'm stuck here: Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click Dim k As Integer Dim i As Integer k = 1 i = k + 1 … | |
Hi all, first thread in here. I usually don't open my executables with any sort of editor, but for the sake of curiosity I've tried opening one. And what I've found is not that funny: I've found myself able to edit every kind of string. Of course you have not … | |
void assign(size_type n, **el const T& el = T()**) This function is a member function of the STL list class and I do not understand the bolded part. I understand the const T& el is a reference to a constant parameter which means I cannot change the value/content of the … | |
I have to write a hangman game in Cpp which choose random words from txt file using binary search tree. Here is the code - compilation is successful, but its not working properly, its crashing. Exception - Segmentation fault: 11 Row - if (el.length() <= p->n.length()) Can someone help me? … | |
How can I return to the main menu in this simple C++ program? Thanks in advance. #include <iostream> using namespace std; int main() cout << "Main Menu" << endl; cout << "What would you like to read about?" << endl; cout << "1. Programming Paradigms" << endl; cout << "2. … | |
#include<iostream> #include<conio.h> #include<string.h> #include<iomanip> #include<iostream> #include<fstream> #include<Windows.h> using namespace std; class book { char book_number[30]; char book_name[50]; char author_name[20]; public: void create_book() { cout<<"\nEnter The Book Number: "; cin>>book_number; cout<<"\nEnter The Name of The Book: "; cin.ignore(); cin.getline(book_name,50); cout<<"\nEnter The Author's Name: "; cin.ignore(); cin.getline(author_name,50); cout<<"\t\t\n\nBook Created Successfully..."; } void … | |
#include <iostream> using namespace std; struct node { node * right, *left; int info; bool lthread,rthread; }; class tree { private: node *temp,*current; public: node *root,*Dummy; void insert(node*,int); void inorder(node*) ; node* next_node(node* ); tree() { temp=root=current=NULL; Dummy=new node; Dummy->left=root; Dummy->right=Dummy; Dummy->rthread= Dummy->lthread=false; } } ; void tree::insert (node *temp,int … | |
Hello , first of all I need to make clear that although I understand , and have done projects modifying code that is already there (and created my own minions) , in the core of C and C++ I wouldn't consider to know those a bit, I have just a … | |
Hello, I'm capturing frame from cameras devices using V4L, but now I have to capture from IP Cameras, and I don't know how to start it. Please, can anybody tell me how can I do it, some API or something like that?! Thanks!! | |
| I honestly have no clue how to go about this. Need some assistance on the following questions: 1. Modify the program to subtract (num1 – num2). If num2 is greater than num1, swap the values of the variables using a variable named temp, using the partial code below. if (num2 … |
The program seems to be building fine however I can only get it to return "Your tax amount is: 0.00". I've stared at the thing for hours and cann't for the life of me find my problem/problems. Any suggestions are extremely appreciated. /* * File: main.cpp * Author: Callie Tester … | |
/***************************************************\ * This program imagery dice rolling * * Write by : saeid asaadian * * Create date : 11 - 14 - 2015 * * Version : 1.0 * \***************************************************/ #include <iostream> #include "conio.h" #include <ctime> #include <cstdlib> #define random(x)(rand()%x) #define randomize()(srand(time(0))) using namespace std; int main() { cout … | |
For some time I have been using a utility called [forcebindip](http://old.r1ch.net/stuff/forcebindip/) It's purpose is to start an application and force it to use a specific network adapter. So if you wanted to start IE on an adapter that is not the default, you can start it with this commandline utility … | |
This project is based on the banking system, UTT Insurance Limited. Each month the company calculates commission for its employee. UTT Insurance Limited has 5 employees and their names are Denver, Garry, Cindy, Samdaye and Nalinee. Each employee has their respective sales for the month which is recorded in an … | |
I had a function I used a while back to test the pixel colors in a given screen rect, it was something like this pseudo code. for (int y = t; y <= b; y++){ for (int x = l; x <= r; x++){ color = GetPixel(hdc_, x, y) & … | |
Enter a string: [I]house[/I] (a)esuoH (b)ESUOH (c)esuoh (d)EhuoS (Last and 2nd letter changed positions) - I'm done with (b) and (c), and I don't know how to execute the remaining 2. Any suggestions? Here's my code: [code=cplusplus] #include <iostream> #include <string> #include <locale> using namespace std; int main () { … | |
Hello All, I am having trouble looping through a 2D array in C++ (should be very easy, but I am just starting C++). At the current moment I have this class file #include "Cube.h" #include <freeglut.h> #include <stdio.h> Cube::Cube(int cx, int cy, int cz , int cubeWidth) { int p[][3] … | |
Is there a way to catch a "program.exe stopped working" Windows error? I am not sure what to look for, or even where to look, in my code. I have the code repeat a rather complicated algorithm using different data several times. It runs fine for 27 iterations and then … | |
hi guys . i run this code but when i input the password it dosent show star against password . whats the problem ? #include <iostream> #include "conio.h" using namespace std; int main() { const int pass = 6004; char ch = 0; int ans = 0; cout << "Please … | |
please help me write a program that lets the user enter 5 integers then outputs the folllowing a. whether the integer inputted is odd or even b. determines the largest and smallest number inputted c. sum all odd integer entries d. sum all even integer entries here is the partial … | |
1.Write a C++ function that intakes 2 arguments: a character and an integer and prints the character given number of times.If ,however, the integer is missing the function prints the character twice. | |
I am having trouble figuring out an efficient way to perform the checks for how a winner is determined in a 3D tic tac toe program (that is 3x3x3). Winners can be three spaces in any vertical, horizontal, or diagonal, including those between the 3 "boards." There are over 50 … | |
I have to create a random matrix m*n where m and n are user inputs. Now i have to fill the matrix with random nos. Finally I must have a matrix where each value is either 0 , 1 , a fraction no between 0 and 1, and also sum … | |
how to do this? write a c++ program that given the name of a text file reads that file and counts the number occurrences of each alphabetic letter in the text. treat upper and lower case instances of a letter as the same letter. hint: look up tolower()---testing the case … | |
Can anyone please tell me what is the problem in my code: void Laptop::show() { Computer::show(); cout<<"weight is="<<weight<<endl; cout<<"height is ="<<height<<endl; cout<<"length is ="<<length<<endl; cout<<"width is ="<<width<<endl; } I am unable to call Computer::show(); function in Laptop::show(); function.Compiler says to use . or -> operator i am unable to understand. … | |
| Exercise Three: In this exercise, you will create a program that gets two numbers from the user and checks to make sure the first number is less than the second number. It should then display the sum of the even numbers between, and including, the two numbers entered by the … |
I am trying to create a method entitled rolledOneOnlyOnce that takes in two integers as parameters and returns a Boolean. This method must be public and static. In this method, the integer parameters represent the values currently on each of the Game’s die (die1,die2 respectively). Here, you will want to … | |
This is a program for Encryption and Decryption This program uses the Simple Data Encryption Standard (SDES) Algorithm. This Algo takes 8-bits of plaintext at a time and produces 8-bits of ciphertext. It uses 10-bits of key for Encryption and Decryption. |
The End.