49,757 Topics
| |
Hi. how do you make a registration system using turbo C++? like for example: when i run the program i will register my username and password and my information(user and pass) will be saved. So that when i log in. i will just input my user and pass, and i … | |
> I want to create a program that will calculate the day easter will be on. The user will type in a year and then the program should calculate the day easter will be on. I'm having trouble understanding the if/else and how i can use that with the code … | |
i really need your help and really fast. i've been working on this project where i am supposed to create a simulation of conway's game of life. A cell can only be in one of two states: alive or dead. There are two kinds of cells: ConwayCells and FredkinCells. Live … | |
Hey Guys! I have to read data from a text file, load it into an array and then bubble sort it! Here is my code: #include <iostream> #include <string> #include <fstream> using namespace std; void Bubble_Sort(string arr[], int length); int main() { int length; length=10,000; ifstream MyFile; ofstream out; string … | |
Hey guys, this is my solution to a simple problem and I was looking for some feedback on my code. Please post any criticism you may have about it. //Test project for string to binary conversion// #include <iostream> #include <string> using namespace std; void binConvert(string ConvertMe){ int ArraySize = ConvertMe.length(); … | |
Factorials get large very rapidly. The factorial of 13 is !13 = 1*2*3*4*5*6*7*8*9*10*11*12*13 = 6227020800. This number already exceeds the unsigned long integer, and gets into the real money as the politicians say! This program uses an array of characters to store the factorial as a numeric string. Go ahead, … | |
i am getting result of average in int instead of float, tell me where i have made mistake. this is the code. #include<iostream> using namespace std; void getData (int a[], int s); int numbersSum (int a[], int s); float average (int sum, int size); int main() { int size=0; int … | |
Hello, I'm currently trying to figure out how I could go about taking a getline putting the one line into an array and then putting the first value aka array[o] into a command variable and then all the next values on the line into seperate variables of integer for key … | |
how to test if a num is a square root? ex: 9 is square root 3 is not square root ///////////////////////////////////////////// //do not worry about sytax. int x = 0; //always start at 0 int y = 101010; //is this a square root? square(x, y){ if((x*x) >= y){ //not a … | |
I am doing a school project which is an airplane collision detection system. Can anyone show me a few examples or pseudocode of implementation of closest pair algorithm O(n^2), O(n log^2 n), O(n log n)? | |
if(company[i][j] < 0) { loss = loss++; } else //Im trying to Get the number of losses and not the actual input numbers"for example loike 1 loss, 2 loss etc | |
Hi I got an assignment from my instructor with this exact instruction: "Your main function should call the function int getUserOption() *to display the option menu to the user*. The function should **return an int value** indicating the option selected by the user, and the main function should use this … | |
I need help with this two questions, its not hard for experts I guess, here it is: Determine the time of executing the following algorithm fragment: a) if (x == 0) then for i = 1 to n do a[i] = i; b) i = 1; repeat a[i] = b[i] … | |
**Ok the problem is this. I have the groups I want added to the administrator, and remote desktop users group on the local machine, and all that works fine. If you hit windowsKey+pause , or right click on "My Computer" and go to advanced settings, remote tab. At the top … | |
hello everyone! i have a quiz about 2D Arrays. and i don't know how the questions might be, can you help me :) thank you. PS:please correct my grammar mistakes if you see any, i'm here to learn. thank you | |
Hey everyone. I am working on learning how to make some different controls with win32 and at the moment I amt trying to make a combobox with small images next to each option. However when I run my code the options are there but the images are missing. Can anyone … | |
Hey guys, I've been working on a little project of mine, and part of it requires sorting. I'm using bubble sort and before I put the algorithm in the code, the program ran fine. void ranking(){ int count = getcount("all"); // get total members and save value to count int* … | |
I am trying to create a simple transparent window where I can draw with Direct2D. So far what I have done: 1. Created window 2. Set style to **WS_EX_LAYERED** 3. Set alpha color key as #FFF 4. Draw using Windows Graphics a white rectangle 5. Now window is transparent with … | |
Please help me to perform this code! I'm beginner and want to know how it's look like! thank you To create abstract data type (structure) - vector that comprises a pointer to the target and the number of elements. To define initialization functions, the removal of a vector, set / … | |
I'm a bit lost. I am trying to take an input file and use the data inside as a command as well as the data. So my input file would look like this: *B 127.2 Hi 183.2 Someone 23.8 Lost* Where "B" would call the specific function it is attached … | |
Hey guys! I wan't to write a facial recognition software in C++ My platform is on a MAC. Please Suggest some good examples Thank you.. | |
Ok, so, I've been scrounging around the internet looking for a decent C++ Keylogger that is able to be hidden (Not showing a console window) and have been very unsuccessful, I need help building one or finding one that works PROPERLY. I use Codeblocks compiler, similar to Dev-Cpp. Any help … | |
| CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on … |
for those people who are good in making a visual studio C++ program.. I need some help for my project about creating a program that will convert dollar value into peso and vice versa. | |
Hi I need help to draw a circle using c++. I have never used any programming before and have to do computer science to become a Maths Teacher. My first task is to write a program to draw a circle with the user inputing two x,y coordinates and the centre … | |
hi everyone! I want to get the output of my c++ application from my jaca applacations o i use a file abs.bat to get it done i used this code in .bat: start readxmlresou.exe that commande line opens readxmlresou.exe that is in my desktop and execute it, now i want … | |
In the two for loops below, I want the checksum variable to hold the same value for both even though one loop starts at row 12 and another at row 0. Any ideas how I can combine these loops so that I don't have to iterate the same buffer twice? … | |
#include "stdafx.h" #include<iostream> #include<conio.h> #include<ctime> using namespace std; int *p[10][20];// int _tmain(int argc, _TCHAR* argv[]) { cout<<sizeof(*p)<<endl; getch(); return 0; } output: 80 but i cannot understand how it work. | |
Whenever I try to run this code in turbo c++ 4.5 I recieve an error "General Protection Exception List.c 60 List(2) 0x24DF:0x0157 processor Fault" whereas when the same Program is run in Turbo c++ 3 Dos version It Compiles and Runs Propely without any error. Please Help. #include <stdio.h> #include … | |
Hey guys, as the title says, this is my first encryption program. Being extremely simple, I was just looking for advice on ways I could improve it. I just recently got back into programming(I tried to learn before but unfortunately lost interest while I was still learning the basics) and … |
The End.