49,757 Topics

Member Avatar for
Member Avatar for misstj555

Hello. I am taking a "Data Structures" class. I have to create a code that will print the following "Output": 8 6 4 2 0 6 4 2 0 4 2 0 2 0 0 I tried doing this code three different ways. Here is the first way. I did …

Member Avatar for misstj555
0
1K
Member Avatar for k_12

Hi im new to programming and i need a bot that autofills a website because i constantly advertise a website on different websites and i basically copy and paste repeatedly for like 5 to 8 hours a day but my friend said i might be able to make a bot …

Member Avatar for rproffitt
0
143
Member Avatar for Sappie

HI, I'm just new to c (programming in general), and I am wondering why getche() echoes every character that I type but not 'Enter' key. Isn't 'Enter' key a character? And also, why does getchar() **-which requires to press enter after typing a character-** echo the 'Enter' along with the …

Member Avatar for DGPickett
0
445
Member Avatar for MosaicFuneral

Haven't programmed in a long time. Last project was a GCODE pathway generator I wrote several years back. My compiler is obviously several years out of date. Uses time(), itoa(), rand(). Current standard compliant compilers should have <chrono>, <thread>, <random>, and to_string() in suppliment to those more deprecated functions. This …

Member Avatar for DGPickett
2
3K
Member Avatar for MoneshP5

hey i have been given a project need help in coding it **Project Problem:** A company wants you to create a program to manage records and do analysis regarding projects. The company stores all information in a file as follows:  The PROJECT file contains project characteristics such as the …

Member Avatar for MosaicFuneral
0
483
Member Avatar for Prakhar_2

Hey I'm trying to make a sudoku solver. Im stuck at printing the sudoku elements using outtextxy. My command line is : for(i=0;i<w;i++) { for(j=0;j<w;j++) { if(A[i][j]==0) outtextxy(25+40*j,55+10*i," "); else outtextxy(25+40*j,65+10*i,A[i][j]); // outtextxy(25+40*j,55+40*i,"1"); } } where A[][]is the array in which sudoku is stored and the blanks are inputed as …

Member Avatar for rproffitt
0
248
Member Avatar for Mahi_6

I need an answer for this question ( write 2 program that takes grade as input and display the range of marks use the select case and if() A. 90 to 100 B+ 80 to 89 B. 70 to 79 C 60 to 69 D 50 to 50 F. F

Member Avatar for John_165
0
435
Member Avatar for Mian_7

#include<iostream.h> #include<conio.h> class Saltax { float x,t; public: Saltax() { t=x=0; } void get(); void perform(); }; void Saltax::get() { cout<<"Enter the salary:"; cin>>x; return x; } void Saltax::perform() { if(x<=1000) t=0; else if(x>1000&&x<=2000) { t=x*5/100; } else if(x>2000&&x<=3000) { t=(x*4/100); } else t=(x*3/100); return t; } void main() { …

Member Avatar for John_165
0
175
Member Avatar for rigz

Can anyone help me with this: I made a program where the user will choose a product from a menu and i want after the products that the user chosen will be output also below where there is like a "receipt-like" or a summary of what the user bought. I …

Member Avatar for Sunny_17
0
11K
Member Avatar for shroudead

I have an assignment to create a card game that compares to dealt cards between players to see who has the highest valued card. It must first be determined by the cards value, then only if it is tied, the suits value. The code below is what I have so …

0
301
Member Avatar for nimeshghelani

hello, i recently joined the USACO's training gateway [url]http://ace.delos.com/usacogate[/url] I made the first problem([URL="http://ace.delos.com/usacoprob2?a=n4y3olVXOJ9&S=ride"]http://ace.delos.com/usacoprob2?a=n4y3olVXOJ9&S=ride[/URL]) and it ran successfully in my dev-cpp compiler. but the online grader threw some runtime error. it was like [COLOR="Red"]Compiling... Compile: OK Executing... > Run 1: Execution error: Your program (`ride') exited with signal #6 (abort()). …

Member Avatar for STEAMForward
0
421
Member Avatar for Dawit_4

The reverse program shown in the slides of chapter 13-1 (also present in the book) reads from a file/command line using system calls and outputs the lines in reverse order on the terminal. The last line is swapped with the first line , the second last is swaped with the …

Member Avatar for rproffitt
0
353
Member Avatar for Joseph_44

How can I write a C++ program that lists all students whose CUMMULATIVE SCORE is K or higher?

Member Avatar for rproffitt
0
256
Member Avatar for Marco_10

I have a 2D array of characters (m x n) and i am trying to find all possible pattern that have a fixed length (example 5 characters) I have no clue how to start this if anyone could point me in the right direction that would be great!

Member Avatar for JamesCherrill
0
358
Member Avatar for Mostafa_19

#include "StdAfx.h" #include "CanonCamera.h" int CanonCamera::numOfCameras = 0; CanonCamera::CanonCamera(void) { liveView = false; camID = numOfCameras; numOfCameras++; windowName = "Camera "; windowName += '1' + camID; windowName += " Window"; EdsCameraListRef cameraList = NULL; EdsGetCameraList(&cameraList); EdsUInt32 camCount = 0; EdsGetChildCount(cameraList, &camCount); if(camCount==0) { std::cout<<"No Camera Found"<<". Press Any Key to …

Member Avatar for Mostafa_19
0
297
Member Avatar for abdallah mohamad

hello everybody who can help with this task Now I will talk little about monoalpahapit cipher This is cipher is based on substitution the characters with another characters So in the encrypt.java file it counts how many the characters appeared in the cipher text , so in the picture that …

1
469
Member Avatar for kinzaajmal

![getline_error.PNG](/attachments/large/4/e8952660a152c2d6d38a928db76a92cc.PNG)

Member Avatar for Dani
0
732
Member Avatar for anis_1

Hi i'm Anis. I want to ask how i can attach image from database in FPDF?

0
289
Member Avatar for Retrojay17

Using loops, write a C# program that asks the user to enter repeatedly an integer number, it stops when the user enters -1, then the program should display how many numbers were entered, their the sum and their average.

Member Avatar for rproffitt
0
363
Member Avatar for A'mirul

Hi guys, I need help in doing what this code do but in Linux. Basically its a code to create keystroke about 5 seconds after the code is running. Below are the code in c++. Thanks on advance. int main() { // This structure will be used to create the …

Member Avatar for rproffitt
0
386
Member Avatar for Rushabh Verma

Hi I have XML something like this : <component AttributeA="1"> <Node1 AttributeB="AAAA" Name="John" /> </component> in powershell I can load and read through xml like this : [xml] $xmlDocument = Get-Content (#path to xml file) Write-Host $xmlDocument.componet.AttributeA Write-HOst $xmlDocument.componet.Node1.AttributeB Write-HOst $xmlDocument.componet.Node1.Name that gives me the fallow output : 1 AAAA …

Member Avatar for JamesCherrill
0
424
Member Avatar for Rushabh Verma

Hi I have XML something like this : <component AttributeA="1"> <Node1 AttributeB="AAAA" Name="John" /> </component> in powershell I can load and read through xml like this : [xml] $xmlDocument = Get-Content (#path to xml file) Write-Host $xmlDocument.componet.AttributeA Write-HOst $xmlDocument.componet.Node1.AttributeB Write-HOst $xmlDocument.componet.Node1.Name that gives me the fallow output : 1 AAAA …

0
217
Member Avatar for amvx86

Hey everyone, I'm looking to add a block / function within a C++ application that will search for open windows. For instance, wordpad and notepad. If either are open perform an action. I'm doing this within win32 API but my question is this. If I create something as such, this …

Member Avatar for rproffitt
0
606
Member Avatar for Yakob Tamrat
Member Avatar for Reverend Jim
0
386
Member Avatar for Mr.Beast

Create a new file with the following code in main(): a for loop that prints the numbers 75 to 125 a for loop that prints the numbers 50 to 30, in reverse order a while loop that prints the numbers from 66 to 111 a while loop that prints the …

Member Avatar for plenty.groover
-1
344
Member Avatar for Dee_2_dee

#include<iostream> using namespace std; int main () { int arr[14], n, i, sum = 0; cout << "Enter the size of the array : "; cin >> n; cout << "\nEnter the elements of the array : "; for (i = 0; i < n; i++) cin >> arr[i]; for …

Member Avatar for rproffitt
0
1K
Member Avatar for plump23$

The library optimezedr should determine if a collection of books is in ascending or desending order.Your solution must read books from a text file and produce 2 additional text files one in ascending order and one in Descending order. then your solution will indicate if your original text file in …

Member Avatar for chuckc
0
558
Member Avatar for evilguyme

so far i have this code.. [CODE]#include "stdafx.h" #include <iostream> #include <windows.h> #include <string> using namespace std; int main () { const int r1 = 175; const int g1 = 163; const int b1 = 134; HWND hwnd = FindWindow(NULL,"Test - Microsoft Visual Studio"); SetForegroundWindow(hwnd); HDC hdc = GetDC(hwnd); POINT …

Member Avatar for toneewa
0
7K
Member Avatar for Urfa2

Input: grid[][] = {"axmy", "bgdf", "xeet", "raks"}; Output: Yes a x m y b g d f x e e t r a k s Input: grid[][] = {"axmy", "brdf", "xeet", "rass"}; Output : No The general idea of what output should be. I have already coded the grid: # …

Member Avatar for Urfa_2
0
537
Member Avatar for Urfa2

Need help modifying this code to add to my code. My code creates a grid but does not check if a word exists or not yet. Also, it should be user interface, user types in word, and computer outputs yes or no. // C++ program to check if the word …

Member Avatar for JamesCherrill
0
386

The End.