49,761 Topics
| |
ive been searching google for any tutorial about loading bitmaps and paint it in a window. so far the tutorials ive read was loading it from your resources. I want to paint a bitmap from where you will choose a file from a file dialog and the you will draw … | |
I want to do the following: [quote] You will create a C++ program that will count the number of operations of two common recursive functions.This operation count will be basically estimate time complexity T(n). You have to find the g(n) to get O(g(n)). The program takes as input n, some … | |
I have a program where I'm supposed to have someone input a word and I have the program leave the first and last letters stay while everything else becomes randomized. I pretty much have the program working, but I don't know how to ignore the first letter. This is all … | |
This is my instructions [ATTACH]17319[/ATTACH] [ATTACH]17320[/ATTACH] and i am using Dev-C++ 4.9.9.2 and i am using the Mingw compiler i am a beginner. and this is my code. [CODE]#include <iostream> #include <iomanip> using namespace std; void everything(); int main() { everything(); system("pause"); return 0; } void everything() { int a,b,k,sum; … | |
hello there, i need to get 7 different values for a resistor from the user, then add them up. how will i go about doing so? do i store each value the user gives me all in different variables? or is there a way to store them into a single … | |
Can anyone post the code to these? 2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters that are composed of asterisks ”*” and spaces ” ” in a 6 × 6 For example, my unique name is: unix-prompt >> ./a.out … | |
2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters that are composed of asterisks ”*” and spaces ” ” in a 6 × 6 For example, my unique name is: unix-prompt >> ./a.out 2.2 Escape this! Write a different program … | |
I am working on a C++ program that wants me to read in 52 unsorted states. All the states have randomly Capitalized letters.The objective is to sort the states in alphabetical order by the last letter of the state. Case sensitivity is the least of my problems but i am … | |
Hi, I know this is asking for much and I'm being lazy but I have an ASCII text file with multiple rows of text. each row contains the name of the city followed by a ">" and then the countries name. I wanted to know if its possible to have … | |
I am using Visual C++ 2003, Previously i am using this to call test.dll stored in the root directory folder name root1 and in the sub folder root2 [code]HINSTANCE result = NULL; result = LoadLibrary(L"..\\root1\\root2\\test.dll");[/code] It work fine in normal OS. When i run in Win XP regional language setting … | |
Hello. I'm currently working on a C++ assignment where I need to calculate a student's GPA from a text file containing 4 grades and the corresponding credit values for the class. I know how to write the program to get the correct GPA, but I am having problems figuring out … | |
I have question, why when I don't put the "inFile.ignore()" line, the program doesnt work. What is the thing that the line ignore? [code=c]while(1){ inFile.getline(name,50); inFile>>ass1>>ass2>>ass3; inFile.ignore(); if(inFile.eof()) break; cout<<name<<" "<<ass1<<" "<<ass2<<" "<<ass3<<endl; }[/code] here is the content of the input file : akmal 3 2 1 akmal hisyam 1 … | |
hello guys...im writing simple TAPI app which, if I call to my landline number, prints the message.If you need variable declarations and initialization, I"ll give, but i know they are fine. This code should work but it does't, everything looks fine here...:confused: [CODE] void WINAPI TapiInitialize() { LPLINEDEVCAPS lineDevCaps = … | |
This program will use arc-consistency to remove the invalid values from the variable domain and generate the permutations for the 8 queen problem. Here is the source code with the make file. chessboard.h [code] #include <iostream> // uses std::cout std::cin #include <stdlib.h> #include <stdio.h> // uses exit(0) and fprintf #include … | |
I need chess game implemented in C++,it should be a 1 player game with AI techniques implemented for the computer. i m willing to pay. <snip,snip,snip> | |
I have to write a C++ program that: Declares and defines a class called “bankAccount | |
how is c++ a graphical user interface programming language, i mean how does all the code fit in to develop window based applications. | |
HOW TO WRITE A PROGRAM IN C to print the following pattern: 3 323 32123 323 3 | |
Hello. Can someone tell me how can i add string to combo box? i tried [CODE]GetDlgItem(IDC_COMBO1)->Items->Add("Text"); [/CODE] but it didn't worked. and everything that i could find on google didn't helped :( so i'm asking you pros ;) | |
Hello, I want to do classic "save as" function, how you know it from all programs, but I have a problem - when I put constant pathname in fopen function , like "file.txt" ,it works. But when I type a variable char[], it does nothing. Then I looked for function … | |
Hi there, I'm an old programmer trying to get back into it and vastly confused. I know or at least knew how to program in C and found it fairly easy, but Windows programming has me stymied. Basically I'm trying to figure out Win32 Api and have started to get … | |
Hi, i accidentally given input as character for a integer variable.....then the program went crazy and just flooded the console..... so, is there any way to handle this exception......and how to achieve that thank you | |
hi, how can i use the result of a function without having it repeated ? like in the code down there i have to use the result of the function [B]get_sides()[/B] in all of the other functions..but the way i coded it down there will make me enter the values … | |
Hi, i want to konw how to create and use thread in c++[vc++ 6.0], what all are the header files needed, can anyone please write a simple code for that...... can anyone please refer to some links where i can get good hold of c++ threads | |
i needed to write a simple program to demonstrate the CRC mechanism in Networks. i needed a string of bools to be XORed with the polynomial. Well, i used <bitset> but that did not help much. So i just used a bool vector. This is how i proceeded. Here, when … | |
Can't get the right output.. Trying to calculate mean, standard deviation, & variance through data structures. [B]Output:[/B][CODE]Mean: -9.25596e+061 Standard Deviation: 2.2836e+046 Variance: 5.21481e+092[/CODE] [B]Code:[/B][code] #include <iostream> #include <stdio.h> #include <math.h> using namespace std; struct StatData { double Data[10]; double mean; double stdDev; double variance; }; int main() { const int … | |
Hi guys, I need to find a fast algorithm to generate all possible sentences from a given words list, e.g: Words : word1 word2 word3 Output : word1 word2 word3 word1 word3 word2 word2 word1 word3 word2 word3 word1 word3 word1 word2 word3 word2 word1 This implementation needs to be … | |
Hi, i have created dll and lib files using vc++ 6.0.. how can i use this files in my program.... i want to know how to link the lib and dll file in which ever program i want using vc++ 6.0 please help..... thank you.... | |
Hiya, I dont know if I am in the correct forum i.e. Networking. I am having problems with Server / Client communication. I send data over to the client and it records and prints out in cout, but what I want to do is print in a file. I used … | |
I'm trying to make my rich text box resize with the window as it is resized. So, if you make the window bigger, the text box will become bigger as well, so that it is always filling the window. Here is my code, but when I resize the window nothing … |
The End.