49,756 Topics
![]() | |
I am having some trouble with this program .. if input is abaabcdbab output should read abcd.... program is supposed to delete the repeated characters and output only one of each character but it is not working .... and ideas would be welcome //Reads the letters in an array and … | |
Hello I have made a simple win32 program that displays a window that has a button & a text area. When I click the button, my program grabs the text from the text area & displays the grabbed text in a MessageBox. [B]My Problem:[/B] When my program grabs the text … | |
Beginner's question : How is c different from c++? what are the differences? Which one shoul i go for , if i know basic oops (just basics)? **plz provide some genuine answers rather than simply "google"ing ..... I have searched a bit and not yet satisfied.** | |
please help me to create a program about THE DECLARATION OF TWO VARIABLES CALLED COUNT AND DISTANCE. | |
| |
I am proceeding with parallel processing using GPU, while installing CUDA, I did build the dll files in CMAKE to have GPU support. I did include all the CUDA files and now when I am trying to rebuild the following solution: #include <iostream> #include <stdio.h> #include "C:\Users\admin\Documents\opencv\build\include\opencv2\opencv.hpp" #include "C:\Users\admin\Documents\opencv\build\include\opencv2\gpu\gpu.hpp" using … | |
welcome everybody, i am able read my file by asking the filename from user but i am facing a little problem,When i type a name of file which doesnot exist,compiler also shows it with some zeroes, this is my program, please help me,having problem in case 2... #include <fstream> #include … | |
Define a structure Ticket that holds data items of a carnival which includes: name of the carnival, total amount of tickets, price per ticket, total tickets sold and total sales. The total sale is based on the price per ticket and total tickets sold. Input the data into structure type … | |
![]() | How to write a program using nested for loop to display the following output: 0 * * 0 1 2 * * * * 0 1 2 3 4 * * * * * * * * * * |
can i change the HBITMAP structure for be transparent? because the gif's files are show me a black background color. | |
i need a program that saves the record of three students in one subject then saves the file. again calling this file to calculate the total of the projects,assignments, final exams and finally do grade for three of them. at the end the students record should be puttedin menu of … | |
Is it possible to solve this problem in c++? Write a program that counts the numbers from 3 to 117. But for multiples of three add 3 instead of 1 and for the multiples of five add 5 instead of 1. For numbers which are multiples of both three and … | |
Is it possible to use fclose() once for 2 file pointers. Somewhat like this : fclose(in,out); please help | |
When you want to remove extraneous characters from an input stream in C++, it's usually because you mixed formatted and unformatted input methods. The formatted method would leave a newline in the stream and the unformatted method would consume it and terminate successfully, but fail completely to do what you … | |
Recently appeared on my desktop when i start my PC the following error: there was a problem starting C:\PROGRA~3\9EEDE77.ccp the specified module couldn't be found does anyone know what it is?..... i click ok and then i work with no obvious issues thank you | |
i have these code for show popupmenus: case WM_USER + 1: { if(lParam==WM_RBUTTONUP) { POINT pCursor; GetCursorPos(&pCursor); HMENU test=GetSubMenu(GetMenu(HandleWindow),0); SetForegroundWindow(HandleWindow); TrackPopupMenu(test, TPM_LEFTBUTTON | TPM_RIGHTALIGN, pCursor.x, pCursor.y, 0, HandleWindow, NULL); PostMessage(HandleWindow, WM_NULL, 0, 0); } } break; the menu is showed normaly, but why the click message isn't working? heres the … | |
I have this code which works fine but I cant comprehend the meaning of cin.get(ch) in the for loop. I tested the program after removing it and the first input comes fine but as soon as loop runs for the second time, program does not wait for the user to … | |
when do: operator HBITMAP() { HBITMAP hbitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size SelectObject(hdcimage, hbitmap);//add the bitmap to memory DC MessageBox(NULL,to_string(GetLastError()).c_str(),"error",MB_OK); return hbitmap; } the hdcimage is copyied to hbitmap, right? | |
Good Day guys, I wanted to make a multiplication table but it seems not that easy for a newbie like me. Mind taking your time and see what I am missing in my code? It would be a great help. Here's the code: #include<iostream> #include<conio.h> using namespace std; void initArray(int … | |
``Bookkeeping You work for a company which mainly trades with 3 other companies. You record your balance in a file (you can still use cin or scanf to read or if you want you can read from "input.txt" file) with the following convention: Debit of Company A Credit of Company … | |
I wonder why this program does not do any changes to the text file that I am trying to modify. Scenario: My program uses the Fstream header file, I declared infile as IFSTREAM and outfile as OFSTREAM. I simply want to transfer data from infile to outfile. The data is … | |
What operation does this format specifier "\a" really perform | |
guys help me out i need programs in c++ on library management, like a program to manage book issue and a program to manage book deposits.. but they should be of basic level, with headerfiles like iostream,conio,string,stdio and stdlib u can use for,while and d while loops ☺ thanks please … | |
i want to insert at avl tree and search where can i get avl tree code from ? to study | |
I want to copy all the files from one directory to another using the fread() and fwrite()-statements. Some of these files are rather large in size, and that's why I want to calculate who long the transfer will take. (Later I will use this information to show a progress bar … | |
I want to convert a code from C to C++ , but some statements are very difficult to me , and I have not enough time to make the whole code in C++ from beginning, So anyone who can help me in this regard please comment me then I will … | |
I am using scientific linux. In the directory user/project/Build , after I ran 'make' to compile and link all the cpp files,I had no problems. But then, when I went to directory user/run/run.sh , which runs the project binary in user/project/Build/bin/project , I get a segmentation fault error. In the … |
The End.