49,761 Topics
| |
Hi Dw I'm new in C++ and I'm trying to develop an interactive app. I want for instance to run the app and have options printed then I choose one option then the app load relevant screen. Suppose it an ATM app where you chose what transaction you want to … | |
Hi, I'm new here :) the problem is if i increment one member, for eg --------------------------------------- struct day { int hour[40]; int min[40]; int mins[40]; int rec; int totmins; int totsal; char status; int temp; }; struct month { struct day *da;}; struct year { struct month *mn;}; struct roll … | |
Hello guys, I have a problem with Win32 C++ GUI. I'm creating a program and as one of the steps, I want to: 1. Let the user type somthing in the textbox, 2. Show it in another box/area, 3. Clear the typed text from the textbox. It would be something … | |
help me please to answer this simple coding...i'm very weak in coding...pleasee,tomorrow my lecturer want to see my work.... :( help me frienddsssssssss..............help meee | |
| I am writing to a file using a pointer variable that points to my File object, which includes the method used to write to my text file. When I try to delete the memory my program crashes... The error does not occur when I comment out the "delete file;" line. … |
if a function recives 3 pass-by-value parameters, how many actual parameters should be in call statement? | |
Here is the file.The idea is to create phone book, and retrieve items from menu. The error i have with ofstream method. And in generlal is structure/layout of program correct? | |
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 … |
The End.