49,757 Topics

Member Avatar for
Member Avatar for margeaux54

There is little mistakes in this program. I couldnot understand. may be you can see. For example ı can not solve exit problem in menu function [CODE] #include <iostream> using namespace std; void encyrpt(void); void decyrpt(void); void menu (void) // this function provide to be reached to menu { char …

Member Avatar for Ancient Dragon
0
121
Member Avatar for bkoper16

this program is supposed to take in sales figures in dollars, convert them into a salary for the salesmen, and then display the number of salaries that fall within certain ranges (200-299 ect.) However i keep getting incorrect results no matter what i enter i keep getting 11 for the …

Member Avatar for template<>
0
210
Member Avatar for xander91

good evening to all, im nuw to this, i see this is for code but where do i ask you something? may i request advice from you, coz i dont know c++ that well or any ideas where i can get info. and last how active is this site, do …

Member Avatar for pseudorandom21
-1
74
Member Avatar for arunp_eagle

Hi ppl! There is a api named NetSharedGetInfo to retrieve the information about any shared resource. Have anyone used this api. I tried using this. iam not sure wat parameters needs to be given to this api. Suggestion wld be useful!

Member Avatar for pseudorandom21
0
82
Member Avatar for gl7

hey, kind of new to c++ started working with functions and am trying to write program using them trying to make hangman game using functions, with my following code i am getting this error message [linked error] undefined reference to 'askGuess()' id returned 1 exit status [build error] [ number5.exe] …

Member Avatar for gl7
0
143
Member Avatar for dspjm
Member Avatar for dspjm
0
1K
Member Avatar for ana_1234

Hello, I am working on an assignment and I am so stuck and I have no clue how to get out. We are giving a maze and we are to find start and finish of the maze. The code is interpreted as giving the "walls" of the cell by looking …

Member Avatar for ana_1234
0
578
Member Avatar for Arief_H.Naif
Member Avatar for Fbody
-2
37
Member Avatar for itsmylife

I have a question here.. i have 2 files with me list of usernames and a list of passwords i need to write a program to check each user name with the list of passwords. Then need to go to a website and see if it logs in. I am …

Member Avatar for Adak
0
76
Member Avatar for ntrncx

i write a program that goes as follows a part of it is: [CODE]#include <iostream> using namespace std; const int size=8; const int plus[]={1,2,3,4,5,6,7}; const int minus[]={-1,-2,-3,-4,-5,-6,-7}; int vertical(int[][size],int&,int&); int horizontal(int[][size],int&,int&); int diagonal(); int main() { int board[size][size]={}; int accesibilityboard[size][size]={}; int currentrow=3; int currentcolumn=4; int counter=0; } int diagonal() { …

Member Avatar for ntrncx
0
108
Member Avatar for akase2010

I truly don't understand what this assignment is asking, and this is it design a simple linked list class with only two member functions and a default constructor: void add(double x); boolean isMember(double x); LinkedList( ); The add function adds a new node containing x to the front (head) of …

Member Avatar for caut_baia
0
147
Member Avatar for Howdydoody

Hey guys i could use some clarification as to how this is done. Most if not all examples i have seen have the class written above the main in the same cpp file. My professor says we should have it in a different file so it can be reused by …

Member Avatar for Howdydoody
0
111
Member Avatar for Karkalash

Hiya I'm relatively new to data structures and using push_back. I'm trying to build a small dictionary program that assumes that there is no words (and definitions) in the dictionary when you first launch it. What I then need to do is ask for a word then definition to start …

Member Avatar for VernonDozier
0
212
Member Avatar for vavazoom

Hey, I am writing a program that takes the size of an nxn matrix [A], randomly creates that matrix, as well as an nx1 matrix [S], multiplies them together to create [A]*[S]=[B]. Then, using Gaussian Elimination, I use matrix [A] and [B] to find [x] such that [A]*[x]=[B]. I can …

Member Avatar for mike_2000_17
0
191
Member Avatar for toolmanx

I was trying to send mouse positions to my status bar in a larger program. I could not get them to write more than one position to the status bar, then it stops changing. To test why, I wrote a small window using one "Do Paint" function first. I still …

Member Avatar for zeeshanciit
0
528
Member Avatar for fish234

I was working on something just to practice building a menu so I can remember it for later. The same error keeps coming up and I'm note sure what's wrong, could someone give me a hand. haha, sorry, I'm new to this. This is the code [CODE]{ #include "stdafx.h" #include …

Member Avatar for fish234
0
135
Member Avatar for ik1610

Hello! I am having a problem with the following line of code: [CODE]int temporary = theMessage.size(); int numberOfColumns; if (temporary%3 == 0) numberOfColumns = temporary/3; if (temporary%3 == 1) numberOfColumns = (temporary + 2)/3; if (temporary%3 == 2) numberOfColumns = (temporary + 1)/3; cout<<numberOfColumns<<endl; int theNumbersOfTheMatrix[3][numberOfColumns]; [/CODE] theMessage is a …

Member Avatar for ik1610
0
103
Member Avatar for stan2000

I'm trying to write a program which allows a person to enter the number of days they have worked. Their hypothetical salary is 0.01$ per day and doubles everyday (0.02$ on the 2nd and 0.04$ on the 3rd day etc...). For each day, the day number, pay for the day, …

Member Avatar for Arbus
0
149
Member Avatar for shekhartanwar

hi everyone:$ , umm it's just that I'm new to programming in C++, can anyone tell me how can I improve my programming skills?

Member Avatar for Moschops
0
37
Member Avatar for johans22

my text file name is doubledata.bin. It is quite a large file, but too large. data in it is like: 12.3453<tab>0.4065<tab>88.3454 etc. I like to read these files as fast as possible into memory arrays. any code to do that?.

Member Avatar for VernonDozier
0
74
Member Avatar for cross258

i posted my program below. i aim making a decrypting file for rot13. or rotation 13 so im using the memory address to change the capital and small 'A' to 'M' into 'N' to 'Z' and vice versa by using their memory location. but i don't know how to put …

Member Avatar for cross258
0
443
Member Avatar for gamer88

Hello! I was wondering if there was a command in C++, specifically visual C++ .net 2003, in which I can take what was partially entered in the console and save it to a variable before the user presses enter. I am creating a mini-irc and I want to store what …

Member Avatar for caut_baia
0
116
Member Avatar for zachcoenen4

I am trying to learn C++ by myself using a book and want to work through everything it says. I am on a program that you have to write kinda like a cash register program that tells you how many 5's, 1's, quarters, dimes, nickles, and pennies you should get …

Member Avatar for WaltP
0
387
Member Avatar for mangualmanuel13

I don't mean to complain, but I have gone to forums, but not this one, and received e-mails, and e-mail and e-mails of useless codes regarding the tittle to my dilemma. Now, I am working on a C++ form, in 2008, where I click on an image and I can …

Member Avatar for jonsca
0
181
Member Avatar for replax

Hello, Currently, I am trying to write a program which should upload a file to an FTP server. As recommended in the QT Docu., I chose to use QNetworkAccessManager's put function instead of QFtp. As far as I know, I should be able to access the FTP Server without using …

0
75
Member Avatar for Karkalash

Hiya I don't know what I'm doing wrong that getline() does not work for me. My program is not finished but this is what I got so far: #include <iostream> #include <vector> #include <string> using namespace std; struct Term { string word; string definition; }; struct Dictionary { vector<Term> term; …

Member Avatar for Karkalash
0
129
Member Avatar for epew23

Hey i am currently really stuck on a school assignment. No rush i have plenty of time, but without a little help i am pretty much lost. The question is as fallows. Design a class named QuadraticEquation for a quadratic equation ax2 + bx + c = 0. (The book …

Member Avatar for jonsca
0
608
Member Avatar for Dundir

I'm working on a problem which calls for masking out certain parts of the digits being read in. My Code is below. I got the problem correct, but I couldn't shake the feeling that there was a better way to deal with the last mask (noted in comments as problematic). …

Member Avatar for Ancient Dragon
0
169
Member Avatar for reemhatim

I'm doing a a program that converts time from 24 hours to 12 hours . I'm doing it using the constructor in class time 12 taking one argument which is of type class time 24 and making the conversion . I've got an error and I don't know where is …

Member Avatar for reemhatim
0
247
Member Avatar for Zvjezdan23

I have many things done so far in my project. However, in my switch statement it does not generate random numbers like it did earlier. You'll see what I mean. Other than that I need help with the scoring part of the assignment. Can anyone please help me? I feel …

Member Avatar for Fbody
0
616

The End.