49,757 Topics

Member Avatar for
Member Avatar for BenjaminH

Hello, I wrote a hangman game but it won't output what the user entered. At the beginning the display array is filled with underscores and as the user enters letters it is supposed to get updated with their input, but it isn't updating. Can someone please tell me what I'm …

Member Avatar for Lerner
0
144
Member Avatar for smmcfarl

Hello! I am trying to make a program that reads in two numbers from a file and turns one into an imaginary number and then does different math functions with them. I am trying to use overloaded functions to do them. I am not getting any errors with what I …

Member Avatar for Lerner
0
172
Member Avatar for ayeshashahid

i have written a program taking marks of 35 students and calculating their average.can somebody please help me find my mistakes.the compiler is giving errors errors:---------------------Configuration: t2 - Win32 Debug-------------------- Compiling... t2.cpp E:\coding\t2\t2.cpp(21) : error C2109: subscript requires array or pointer type E:\coding\t2\t2.cpp(21) : error C2679: binary '>>' : no …

Member Avatar for Moschops
0
145
Member Avatar for PapaGeek

I’m trying to initialize a combo box with the content of an INI file. Each line of the file contains a name for a website and the path to that site, tab delimited. I’m trying to read the file into a list so I can sort it etc. Visual studio …

Member Avatar for PapaGeek
0
190
Member Avatar for arc45

"write a program that reads a list of names and telephone numbers from a text file and inserts them into an AVL tree showing in order and pre order traversal..once the tree has been built,present the user with a menu that allows huim or her to search the list for …

Member Avatar for shinnoon
0
2K
Member Avatar for Muhammad Anas

Hi, I am trying to write a program that will separate the digits of a non-negative integer and will print them each two spaces a apart but I have to avoid using arrays. For example if input is: 12345 then output should be: 1 2 3 4 5 I have …

Member Avatar for Muhammad Anas
0
3K
Member Avatar for SureshAbraham

I have developed some simulations in C++ in the old Borland 3.0 version. They involve only simple mathematics. I need to develop some graphics for them. I need to display different moving images simultaneously. Say, three graphics windows at the same time. I am familiar with the BGI library. However, …

Member Avatar for Dakot
0
285
Member Avatar for nikitadurgude

[CODE]#include <iostream> using namespace std; class bike { public: bike () { cout << "Bike: no parameters\n"; } bike (int a) { cout << "Bike: int parameter\n"; } void color(int a,int b) { cout<<"Inside Bike Color"<<endl; } }; class ducati : public bike { public: ducati (int a) { cout …

Member Avatar for Narue
0
210
Member Avatar for ziggystarman

Hoping someone here on the forum's can put me right on the above matter, after reading some I thought I could achieve the task in the following steps... [B][Visual C++][/B] [1] Convert AxisMediaControl image to system object [2] Convert object to ByteArray [3] Convert ByteArray to CharArray [4] Assign CharArray …

Member Avatar for ziggystarman
0
545
Member Avatar for Panathinaikos22

Can i make an application to start run when windows opens? without put program in start up list. Because computers are freezed and there is no point to put it in start up list, there are 2 HD, main partion is freezed were is and OS, and 2nd is small …

Member Avatar for pseudorandom21
0
124
Member Avatar for IT FRESH

hello... i am new student in IT and i have a problem which make me suffer ... we got exercise to do ... which i have to build a programme that accept the time and acceleration from the user and calculate the velocity ... my problem now is how to …

Member Avatar for cahitburak
0
121
Member Avatar for stereomatching

OS : win7 64bits compiler : visual C++ 2005 boost version : boost_1_44_0 [code] #include <gtest/gtest.h> #include <tchar.h> #include <boost/signal.hpp> #include <boost/bind.hpp> #include <boost/function.hpp> #include <boost/mem_fn.hpp> class Slot : public boost::signals::trackable { public: void Update(int) { ::printf("Signaled!!\n"); } }; int _tmain(int argc, _TCHAR* argv[]) { boost::signal<void (int)> s; Slot *slot …

0
63
Member Avatar for Mopikope

I am having a problem ending a line after a certain amount of characters. Also I would like not have the second occurrence when I print thing out. For instance it would show The first problem Instead of: KTAKSFJKLAHGLASLDKAJGDKJ I prefer : KTAKSFJK LAHGLASL DKAJGDKJ The second problem: KTTT K …

Member Avatar for WaltP
0
102
Member Avatar for mcclainra

I have been trying to figure out a way to make the two compatible but I can't seem to do it, any help? [CODE]#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <cstring> using namespace std; const int max = 100; char decode (char encrypted_string[16], char decrypted[], int key); int …

Member Avatar for mcclainra
0
226
Member Avatar for Vasthor

these one code, from line [63-71] of the original code [CODE] // for adding more students cout << endl << "Want to add more student?(yes/no): "; string add_student; cin >> add_student; if(add_student == "yes") { student_counter = 0; } [/CODE] the program seems "doesn't detect" the cin code above, it …

Member Avatar for Vasthor
0
246
Member Avatar for sujan.dasmahapa

Dear Friends I have two mfc application. One is a dll and the other one is a client exe application. From the exe application I am trying to load the dll and launch the mainwindow of the dll. For that in dll.....I have the view class there in view implementation …

0
72
Member Avatar for Pappu X

Can someone please tell me the order of this merge sort? [CODE]#include<iostream.h> void merge(int[], int,int,int); void merge_sort(int[],int); int min(int x,int y) { if(x<=y) return x; else return y; } void main() { int array[16] = {5,0,12,1,4,3,25,6,8,7,45,9,13,2,17,10}; int i; cout<<"Unsorted : "; for(i=0; i<16; i++) { cout<<array[i]<<" "; } cout<<endl<<endl; merge_sort(array,16); …

Member Avatar for Pappu X
0
503
Member Avatar for Kirbz

I have a Blackjack Assignment I need some help on. The Full requirements, what the .exe should look like, and what I have done so far is in this picasa link: [COLOR="Green"]https://picasaweb.google.com/zaidalmas/November172011?authuser=0&authkey=Gv1sRgCNXrltTFwZnYNQ&feat=directlink[/COLOR] Sorry I couldn't get the insert link to work right. What I have done: I have shuffled the …

Member Avatar for WaltP
0
284
Member Avatar for begyu

Hi all, I need help in the following problem. I have a data file containing 100 columns, with different number of rows. I would like to read for example the columns from 45 to 56 and calculate something on these columns one by one, let's say calulate the mean value …

Member Avatar for WaltP
0
149
Member Avatar for AbEeR Q8

Hello ; I need a help in my home work , I have to write the program that prints the number of clock ticks it took the program to sort the data the main part is already given , I have to wright the functions this is my program :: …

Member Avatar for raptr_dflo
0
122
Member Avatar for rsashwin

I am reading a line through standard input using [CODE] string str; getline(cin,str); [/CODE] now if i want to use the str to tokenize it using strtok , it says str should be char*. What should i do? I did try using gets(where i can use str by defining it …

Member Avatar for Moschops
0
61
Member Avatar for harde

Hi guys, So I write this program so far.. 1 //exercise15.cpp - displays a pattern of asterisks 2 //Created/revised by <harde> 3 4 #include <iostream> 5 using namespace std; 6 7 int main() 8 { 9 for (int outer = 2; outer < 11; outer += 2) 10 { 11 …

0
107
Member Avatar for Dholcroft79

Ok so i am trying to write a/am if statement to set a random X,Y position for a sprite here is what i have (I'm very noobish with codeing) am i going about it the right way here is my function for DRAW [CODE] Sprite_Draw_Frame(explosion, posx,posy, frame, 128, 128, 6); …

Member Avatar for Dholcroft79
0
210
Member Avatar for evilweevil

[B]hey guys: im having a problem with the bisection method using C++ , the code suppose to find the root of this equation "X cube minus 3X plus 1" on [0,1] after 5 iterations and after doing it manually the answer should be x=0.009368 it keeps giving me 0.25 and …

Member Avatar for nchy13
0
2K
Member Avatar for iamthesgt

In writing a CGI script, I have come across several errors. As I went through and fixed the errors, I seemed to get all of the syntax errors but as I completed the last ones, a long list of errors came up that I did not understand. In trying to …

Member Avatar for iamthesgt
0
272
Member Avatar for ben1996123

Hi, I'm making a console application, text based game, and what I need to do is be able to do more than one thing at the same time. For example, I need to be able to make a timer that runs constantly, whilst the game is being played. I also …

Member Avatar for ben1996123
0
114
Member Avatar for roshan_iiita

I am using OpenCV for my program and i want the window always on the top. For that purpose i included "gtk/gtk.h" in my source code and using function: gtk_window_set_keep_above(GTK_WINDOW(cvGetWindowHandle("bfr_del")), TRUE); but it is not working. ( also not showing any error ) Please help me... i need it urgently. …

0
70
Member Avatar for PapaGeek

What project type is best for this application? I have the source for an old SSI emulator for website development. It is written in C using Visual studio 6. I want to convert it to C++ Visual Studio 2008. I started using a Windows Forms Application, but I’m not sure …

Member Avatar for PapaGeek
0
214
Member Avatar for VengefulToast

Hi forum, I just need help on my code. I am trying to find all the Armstrong numbers from 100-999(i.e. when the cubes of three digits added together equal the number - 1^3 + 5^3 + 3^3 = 153.) My code works until it gets to line 93, then it …

Member Avatar for skaa
0
653
Member Avatar for RaoxFaello

I'm new at programming, I was asked to create a program to find the GCD (Greatest common divisor) of two numbers my friend helped me create this program. All i am asking is how does it function?, I know how the whole program works (If... If else, While, Looping, Modulo …

Member Avatar for Schol-R-LEA
0
118

The End.