49,761 Topics

Member Avatar for
Member Avatar for studyemail

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?

Member Avatar for invisal
0
2K
Member Avatar for v1shwa

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 …

0
119
Member Avatar for Tiffany888

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 …

Member Avatar for rproffitt
0
250
Member Avatar for .It.

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 …

Member Avatar for overwraith
0
5K
Member Avatar for Amr.Mohammad87

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 …

0
92
Member Avatar for Dimitar_1

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? …

Member Avatar for tinstaafl
0
192
Member Avatar for MilitantAT

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. …

Member Avatar for rproffitt
0
1K
Member Avatar for Hamza_9

#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 …

Member Avatar for overwraith
0
343
Member Avatar for san467

#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 …

0
101
Member Avatar for jkon

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 …

Member Avatar for jkon
0
279
Member Avatar for GnnG

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!!

Member Avatar for sarathbandaru
0
2K
Member Avatar for nana_1

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 …

Member Avatar for nana_1
0
658
Member Avatar for Callie C.

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 …

Member Avatar for ddanbe
0
198
Member Avatar for Saeid_1

/***************************************************\ * 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 …

Member Avatar for vasanth19
0
225
Member Avatar for Suzie999

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 …

Member Avatar for Kanoisa
0
411
Member Avatar for diane110

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 …

Member Avatar for David W
0
303
Member Avatar for Suzie999

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) & …

Member Avatar for Suzie999
0
1K
Member Avatar for violet101

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 () { …

Member Avatar for larz_1
0
599
Member Avatar for sirlink99

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] …

Member Avatar for David W
0
468
Member Avatar for tgreiner

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 …

Member Avatar for tgreiner
0
328
Member Avatar for Saeid_1

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 …

Member Avatar for rproffitt
0
212
Member Avatar for progteacher2

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 …

Member Avatar for Taywin
0
111
Member Avatar for karthik16

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.

Member Avatar for Nick Evan
0
227
Member Avatar for Hoofy

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 …

Member Avatar for Jamie_9
0
1K
Member Avatar for san_man

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 …

Member Avatar for ddanbe
-2
313
Member Avatar for norEdz

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 …

Member Avatar for David W
0
11K
Member Avatar for me vicky

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. …

Member Avatar for David W
0
361
Member Avatar for nana_1

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 …

Member Avatar for nana_1
-1
276
Member Avatar for libreriaeben

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 …

Member Avatar for JamesCherrill
0
147
Member Avatar for Luckychap

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.

Member Avatar for overwraith
1
13K

The End.