51,592 Topics

Member Avatar for
Member Avatar for nerdygirl118

I am making a wheel of fortune game and have successfully figured out how to change the word that you're trying to guess into astricks *. However, I cannot figure out how to change it back once the user inputs a correct letter. The puzzle comes from the user inputting …

Member Avatar for dmalach
0
217
Member Avatar for Hojjat.Mojallal

Hi this program calculate the differentiation of a polynomial by using a tree structure. It's assumed that the variable is x and valid operations are +, -, * and /. The valid operands are x and digits.The program doesn't check the validity! e.g. x*x*x-2*x+7 (valid) x*x*x-12*x+15 (invalid) But I need …

Member Avatar for Hojjat.Mojallal
0
629
Member Avatar for MDiak47

I have been informally studying programming with C++ for roughly 8 months now. I understand the majority of the language, but I am becoming extremely bored with building trivial programs and running them in console. I am quickly losing interest and would like to know where to move next...I have …

Member Avatar for mike_2000_17
0
163
Member Avatar for KazenoZ

Hello, I'm currently writing a program in which I need to check wether a list is empty or not, though that produces me crush in the program when I operate the empty() function on it. Project.h [CODE]class Project{ public: friend class Map; bool isProjectOpen; list<Map> maps; list<Map>::iterator it; string Name; …

Member Avatar for KazenoZ
0
673
Member Avatar for imobby

Hi, i am working on visual C++ Express Ed and winforms to make a simple Word processor. What can be the basic functionality like spell check etc i have to put in it and algos to follow? is there any help on the Internet that u know can help me.

Member Avatar for jonsca
0
742
Member Avatar for shabbo_03

im doing a college project in c++. it is a token system of bank(line,queue..).it waits for a enter key and then it creates a token with entry time and expected leaving time,cashier to attend to and token no. whenever i compile the program it gives no error but after runing …

Member Avatar for mbulow
0
357
Member Avatar for david09436

Create a program that will calculate the CFRS and the letter grade equivalent of a list students using an array of structures. your inputfile:"students.in" and your outputfile must be:"students.out".im confused in filestreaming. my specifications. Student as the name of my structure. Student_List as my array of structure. my structure named …

Member Avatar for Red Goose
-3
151
Member Avatar for crv_great

hiiiii its 12th science student.IN THE FOLLOWING PROGRAM I REALLY DONT UNDERSTAN THE LINKER ERROR.I HAD ALREADY SPEND 4-5 HOURS IN SOLVING 50IES OF ERROR BUT THIS ERROR I REALLY DON'T ABLE TO UNDERSTAND. SO PLEASE HELP ME OUTTTTTT. AS EARLY AS ANYONE CAN...... [code]#include<string.h> #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdio.h> #include<fstream.h> …

Member Avatar for group256
-1
2K
Member Avatar for fia tariq

plzz help me how to find the largest and 2nd largest number among n values through while loop

Member Avatar for prvnkmr449
-1
84
Member Avatar for RolandTheNerd

Hello, My whole life I've wanted to make a video game. I've been influenced by notable programmers; Shigeru Miamoto and Tetsuya Nomura. I'd like to learn how to do C++ programming so I can make a game. I'm only a freshman in high school, so you can imagine, I don't …

Member Avatar for vinayakgarg
1
199
Member Avatar for koundinya

hello guys i knw this is an old thread but the exact solution isnt given yet.i have the small problem of pipeline error after i installed tcwin45.even though this is an old version it shoudnt give any problems rite?i ve installed it 3 times and then deleted it 3 times …

Member Avatar for koundinya
0
124
Member Avatar for vbx_wx

I am trying to send a structure via tcp/ip,i dont know if i am doing it good,it prints a strange chaarcter in my screen.Here is my code that i am using to send and recv: [code] void Send(const void* buffer, int size) { int n; if((n = ::send(desc, (char*)&buffer, size, …

Member Avatar for gerard4143
0
145
Member Avatar for Crzyrio

Hi As part of an assigment i am needed to write a C++ Program to solve a system of equations using Gaussian elimination with scaled partial pivoting method. Now our prof has told us to simple use the pseudocode found in the book. I did my best to finish it …

Member Avatar for daviddoria
0
3K
Member Avatar for LeMajestique

I am making a little silly game in c++ and I am currently working on a way to generate random monsters for me to fight, however, either my random number generator isn't working or my if else function isn't working and it keeps giving me the same monster(Polythemus) If someone …

Member Avatar for thelamb
0
601
Member Avatar for raisedtozero

make and run a program that will display the output below ##### #### ### ## # it should use forloops,, i cant make one, but the code is long. i cant make it work also, you need to use the concept of rows and columns heres mine,, its epic fail …

Member Avatar for erikandr
0
79
Member Avatar for NathanOliver

Hey All, I just finished my code and it seams to work fine. I'm looking for advice on improving it or making it easier to understand. Its not Fully complete because I only have to set up to take in a number less than 2147483648 because i am using an …

Member Avatar for vijayan121
0
167
Member Avatar for Drazzen

How can I solve this problem. I've tried my very best but I can't #include<iostream.h> #include<iomanip.h> int hours=3, hh, mm; void firstorder(); void firstserve(); int main(){ int time; cout<<"The first customer arrived at "<<firstorder<<endl; cout<<"The first customer was served at "<<firstserve<<endl; return 0; } int firstorder(int){ int mint; hh= mint/ …

Member Avatar for jonsca
0
99
Member Avatar for rcmango

Okay, I was trying to write a program that will take in command line inputs of character or strings, separated by spaces. Ignore spaces, however i am going to want to be able to separate a and b from each other, or c and d from each other. So when …

Member Avatar for rcmango
0
111
Member Avatar for ankur3000

Hey guys, I am a complete beginner to programming. My only background is basic programming in C. I would like to learn more but I don't know where to start, I thought about learning C++ but then i read somewhere that learning obj-C or Java is a better idea. At …

Member Avatar for mike_2000_17
0
242
Member Avatar for kimmyfufu

[code]#include <iostream> #include <string> #include <iomanip> using namespace std; //Function prototypes declared before main function void InputData(string playerNameAr[], int scoreAr[], int &numPlayersRef); void DisplayPlayerData(const string playerNameAr[], const int scoreAr[], int numPlayers); double CalculateAverageScore(const int scoreAr[], int numPlayers); void DisplayBelowAverage(const string playerNameAr[], const int scoreAr[], int numPlayers, double averageScore); // declaring …

Member Avatar for jonsca
0
100
Member Avatar for sara113
Member Avatar for l1nuxuser

hello evrebody; i need some solution to my problem; i wont to have data - base in my progrem based on C++ the user can add and remove from that but i dont know how to save data to local folder in the computer... i find something like this and …

Member Avatar for jonsca
0
90
Member Avatar for MasterGberry

I have a pretty solid background on C++. I am interested in possibly expanding to new languages such as Java. I am not interested in reading another 1000 page book on a language when i read that C++ and Java are somewhat compatible. I also read a lot of the …

Member Avatar for DarkLightning7
0
164
Member Avatar for poloblue

Good Afternoon, I'm having problems with a program that I have to do for school. It deals with pointType class and the main program section. The details of what the program should do are the following: Define and implement a class poinType that implements a point (x,y). The class pointType …

Member Avatar for poloblue
0
720
Member Avatar for lochnessmonster

what's the difference in these 2? class list { class node { // blah }; // blah }; ********************************** class node { // blah }; class list { // blah };

Member Avatar for mrnutty
0
61
Member Avatar for MasterGberry

Ok. So this patch i made has been in beta testing. For some reason my C++ version does not always write the files. but it shows that it patched sucessfully......lists the correct directory where it should be writing the files. They just dont show up. The c# version works though …

Member Avatar for MasterGberry
0
281
Member Avatar for aznlitomik3

Hi, I forgot how to do the decimal precision aka magic formula Like after you run the program it give you 4 decimal places but i only want 2 decimal places Hope someone can help!! Thank You!! [CODE] #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; void …

Member Avatar for VernonDozier
0
225
Member Avatar for vbx_wx

I made a server and i tryed connecting using a telnet saying "Connection refused" . What am I doing wrong ? Thanks in advanced. [code] /* * server2.cc * * Created on: Jan 29, 2011 * Author: astanciu */ #include <iostream> #include <winsock2.h> using namespace std; class Server { WSAData …

0
68
Member Avatar for abdullah0

i want to make a program in which links to different applications in my pc are given and can be opened... for example a program in which output at screen is "which game you want to play? press 1 for freecell and 2 for hearts" and when the user presses …

Member Avatar for Ancient Dragon
0
26
Member Avatar for ntrncx

i am beginner that studying c++ i used to use codeblocks but last months i use netbeans, studio express has bad text editor for beginners:P all this time i am using cygwin(always failed) recently i saw on google that with mingw and msys i can compile release and run my …

Member Avatar for ntrncx
0
173
Member Avatar for vegaseat

Does anybody have a tested function in C or C++ that sends text to the printer in a Windows Console Application? I would be very appreciative! It would be nice, if I could specify the font. Yes, I can google!

Member Avatar for abdullah0
0
221
Member Avatar for bussa.forums

in my module i need to print content of dialog box contains some data iam using fox-toolkit and visual studio. i tried with FXPrintDialog,FXDCPrint using FXPrinter classes but am failed and i got error as FXDCPrint no output device has been conntected please help me thanks in advance

Member Avatar for Ancient Dragon
0
43
Member Avatar for Rishabh876

I made a c++ program but my teacher rejected it because i had used goto function everywhere. she told me that i can use do while instead. so i started replacing goto with do while. after spending so many hours on my desktop when i tried to run it , …

Member Avatar for daviddoria
0
168
Member Avatar for SolidSora

I'm trying to write a fraction class and I want a function to reduce the fraction to lowest terms. The problem I'm having is trying to get the fractions to reduce. I need a way to find a common factor in both numbers. All other functions work the way I …

Member Avatar for vijayan121
0
4K
Member Avatar for ankit.4aug

Please tell me ..what do you mean by following line void(*fnctn)(void(*)(int *,void **),int(*)(void**,int*));

Member Avatar for vijayan121
0
148
Member Avatar for jnick12

I need help with the //Find letterGrade function. The program works perfect with the if/else statements that are commented out, but I want to convert it to a switch statement. I did it, but it keeps saying that the variable 'grade' is being used without being initialized...Please help. [CODE]#include <iostream> …

Member Avatar for alaa sam
0
5K
Member Avatar for mespo365

I'm fairly new to programming, I'm currently learning c++. I have a for loop that checks a gets each element of the string and converts it to an ascii value. I use this to check a password...for example it has a upper case,lower,digits,etc. So in my loop i have like …

Member Avatar for vinayakgarg
0
64
Member Avatar for danibootstrap

Hi, I observed a strange bug in VC6 and Visual Studio compiler. For one particular program I needed to declare a heap as [B]u = new double[width * height][/B]; where width = 640 and height = 480 and initialize all the values to 0. So I did [B]memset(arru,0,640*480[/B]);. But to …

0
93
Member Avatar for LeMajestique

I am having trouble making a menu system for a text based adventure game I am creating. I don't really understand all of the concepts yet but I am trying to go to a new situation by setting a number to be a certain situation and then by picking a …

Member Avatar for vinayakgarg
0
179
Member Avatar for svatstika

Hello everybody! I'm using Visual C++ 2008 and I've done problem "finding hamilton cycle in an undirected graph" after writing a console application. I want improve the program to a window form application and I have 2 missions to complete: 1. How to read an adjacency matrix from a rich …

Member Avatar for jonsca
0
97
Member Avatar for Chris11246

I haven't written any code in a while and I'm trying to refamiliarize myself but I am having trouble. Im trying to make it so that all the values in an array move down one. Im trying to do that by adding 1 to the value of the pointer that …

Member Avatar for Ancient Dragon
0
97
Member Avatar for mespo365

I am trying to get a element of string and cast it as a integer. What I am ultimately doing is in a for loop taking an element out of the string and convering that element to an int. This is in order to get the characters ascii value. thanks

Member Avatar for jonsca
0
173
Member Avatar for alonewolf23

I would like the user to input a sentence that contains quotes around a portion of it and then my program will convert any letters in quotes to upper case. My problem is how do i write the statement to start toupper() one i == " and end the toupper() …

Member Avatar for WaltP
0
274
Member Avatar for thisischris

So I'm working with these strings and I'm stumped at this one part. Here's the instructions: "After removing leading and trailing blank characters (<SPACE> or <TAB>), the string must not be empty." .empty() will obviously be used, but how do I check for the " " or "\t" characters and …

Member Avatar for mrnutty
0
107
Member Avatar for MasterGberry

Haven't worked with classes for a while, so please excuse all these dumb questions :P Still learning. Let me know if you need more info. 1>c:\users\adam\documents\visual studio 2010\projects\help\pusoy\pusoy\pusoy.cpp(24): error C3867: 'Deck::dealCard': function call missing argument list; use '&Deck::dealCard' to create a pointer to member deck[] is a vector of Card …

Member Avatar for MasterGberry
0
190
Member Avatar for MasterGberry

I took my deck of Cards (class Card) and shuffled the. But every time i ran the program it gave me the same shuffled results.... [CODE]void Deck::shuffleDeck() { std::random_shuffle(deck.begin(), deck.end()); }[/CODE]

Member Avatar for erikandr
0
131
Member Avatar for MasterGberry

I am trying to take a std::vector<Card> and organize it by one of the int values stored inside the Card class. How could I go about doing this with iterators and the sort() method? Or is it not possible? Ty :)

Member Avatar for MasterGberry
0
102
Member Avatar for cufisa

Hello there everyone. I am having a bit of trouble with my C programming. I do not know anything about C programming and this is my first semester and already my professor is putting pressure on me. Anyone that can help would be appreciated. So I am supposed to create …

Member Avatar for cufisa
0
1K
Member Avatar for vbx_wx

I made a lot of client server programs using tcp/ip but how do i know what version of socks protocol i used ? I just heard about socks5 and i was confused what kind of version i was using until now . Thanks

0
60
Member Avatar for Zvjezdan23

[CODE]#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; string reverseStr(string& x); int main() { // Array for your words vector<string> words; // Your Words words.push_back("I"); words.push_back("won"); words.push_back("ten"); words.push_back("tickets"); words.push_back("for"); words.push_back("a"); words.push_back("rock"); words.push_back("concert"); words.push_back("in"); words.push_back("the"); words.push_back("park"); words.push_back("for"); words.push_back("this"); words.push_back("Friday"); vector<string>:: iterator myIter; vector<string>:: const_iterator iter; cout << "Sentence …

Member Avatar for Zvjezdan23
0
183

The End.