49,761 Topics

Member Avatar for
Member Avatar for Covinus

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 …

Member Avatar for alexchen
0
93
Member Avatar for XodoX

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 …

Member Avatar for XodoX
0
144
Member Avatar for mchin131

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 …

Member Avatar for VernonDozier
0
3K
Member Avatar for TinhornAdeniyi

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; …

Member Avatar for mitrmkar
0
218
Member Avatar for cogitoergosum18

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 …

Member Avatar for mrnutty
0
198
Member Avatar for humantaco

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 …

Member Avatar for Fbody
0
151
Member Avatar for humantaco

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 …

Member Avatar for Fbody
0
158
Member Avatar for Kromletch

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 …

Member Avatar for Fbody
0
269
Member Avatar for Barca

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 …

Member Avatar for Barca
0
156
Member Avatar for patrick772goh

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 …

Member Avatar for Mr.What
0
389
Member Avatar for NathanMc

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 …

Member Avatar for NathanMc
0
309
Member Avatar for akmalhisyam

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 …

Member Avatar for akmalhisyam
0
3K
Member Avatar for muze

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 = …

0
80
Member Avatar for NicAx64

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 …

Member Avatar for Ancient Dragon
0
648
Member Avatar for Taimur.Ace

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>

Member Avatar for NicAx64
-2
355
Member Avatar for bobjohnson

I have to write a C++ program that: Declares and defines a class called “bankAccount

Member Avatar for roshaero
0
230
Member Avatar for Sarama2030

how is c++ a graphical user interface programming language, i mean how does all the code fit in to develop window based applications.

Member Avatar for Stefano Mtangoo
0
140
Member Avatar for GURTEJ UBHI

HOW TO WRITE A PROGRAM IN C to print the following pattern: 3 323 32123 323 3

Member Avatar for Ancient Dragon
-3
75
Member Avatar for fire_

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 ;)

Member Avatar for Ancient Dragon
0
113
Member Avatar for broli100

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 …

Member Avatar for broli100
0
222
Member Avatar for bigcat1969

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 …

Member Avatar for William Hemsworth
1
2K
Member Avatar for neoraghav

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

Member Avatar for neoraghav
0
150
Member Avatar for xsnake7

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 …

Member Avatar for xsnake7
0
243
Member Avatar for neoraghav

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

Member Avatar for Ancient Dragon
0
280
Member Avatar for myk45

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 …

Member Avatar for myk45
0
135
Member Avatar for jtylerboy222

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 …

Member Avatar for burcin erek
0
170
Member Avatar for ubahn

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 …

Member Avatar for elsiekins
0
37
Member Avatar for neoraghav

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....

Member Avatar for neoraghav
0
199
Member Avatar for ragoo

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 …

Member Avatar for Ancient Dragon
0
70
Member Avatar for moteutsch

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 …

Member Avatar for Milton Neal
0
122

The End.