51,593 Topics

Member Avatar for
Member Avatar for honeythigh

hello, i am a newbie who doesn't have any programming experience. i heard that python is great to start with, but i prefer to begin with c++ because it's known as the best for game programming. 1) is it okay to learn c++ for a newbie? 2) is c++ really …

Member Avatar for honeythigh
0
411
Member Avatar for francisp94

I'm kind of new to C++ and this forum so forgive me if i look dumb. :icon_cheesygrin: So my program is basically knowing what category is the book inside the "input.txt" using the Dewey Decimal System and displays it in "output.txt It's working fine at the moment. But now it …

Member Avatar for francisp94
0
137
Member Avatar for vjackcon
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
123
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
212
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
83
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
148
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
599
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
79
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
109
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
152
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
113
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
222
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
194
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
541
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
145
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
107
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
154
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
77
Member Avatar for evilmarksman

im really stuck with this program as i was sick when this unit was covered and havent a clue on how to write it *crys* and i dont get it done iv been told i cant do the course for next year dispite passing everything else. level 1 1. get …

Member Avatar for zachattack05
0
102
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
465
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
118
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
391
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
184
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
78
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
132
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
662
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
170
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
251
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
625
Member Avatar for plang007

I have seemed to get the first function tagReader to work, but can't get the others to work. The other functions are bolded. [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; // function prototypes void tagReader ( ifstream& inFile, int&count); void getEmployee ( string& who, double& rate, …

Member Avatar for plang007
-1
293
Member Avatar for Irina77

It looks as an MDI application (I can open multiple documents within a window). However I cannot get the handles of the opened documents (MDI children?). I tried with FindWindowsEx(..) and EnumChildWindows(..) and could not find any children. Then I tried with Spy++ and I got that the handle of …

Member Avatar for Irina77
0
110
Member Avatar for aeinstein

Hi All, Just starting my online C programming class and my textbook states "In a computer language, a token is the smallest unit of the language that has a unique meaning. Thus, the reserved words, programmer-created identifiers, and all special mathematical symbols, such as + and -, are considered tokens …

Member Avatar for aeinstein
0
191
Member Avatar for gl7

hello i am trying to write a program that allows user to make a list using vectors and iterators i am able to add a title, list items, remove all, but were my trouble is when i want to remove just one from the list i am not sure how …

Member Avatar for gl7
0
155
Member Avatar for gl7

new to c++, working with vectors my question is can a string in a vector hold for example a string like " super mario bros" ( with the spaces) to continue i am trying to to make a list that people can add to , and if user where to …

Member Avatar for gl7
0
305
Member Avatar for Howdydoody

Basically the user puts in a linear list like "1234" and a permutation such as "2431". My program works on the example above but my instructor pointed out that the program gives the wrong answer for the entry "1234" and "3241". I put in an extra check which should fix …

Member Avatar for Howdydoody
0
696
Member Avatar for rogba

How do I make this program work promptly. For some reasonafter it tells me to input the 10 digits, it just closes out anddoesnt run to give me an output. Why does the program does notcontinue to run, and also my teacher specified that it should printout each element in …

Member Avatar for Ezzaral
-1
613
Member Avatar for BobTheLob

Hey, so i've looked around online for a bit, and after finding similar, but not exact (as in it doesn't help me), i'm gonna post my problem here :P. I'm working on a class to handle Complex numbers. This is going to require a lot of operator overloads and the …

Member Avatar for BobTheLob
0
256
Member Avatar for caltech

My assignment is to create a program computing all kinds of employee data. Just beginning, trying to put together the basis for the rest of it, here's my code: [CODE]#include <iostream> #include <cmath> #include <iomanip> #include <fstream> using namespace std; int GrossPay(int,int); double Tax(int); int main () { ifstream empdata; …

Member Avatar for caltech
0
196
Member Avatar for thisischris

So I'm trying to overload the extraction operator, but I keep getting an ambiguous overload error. Here's the extraction that I'm using: [CODE] bool cc = false; cout << CC; [/CODE] And here's the overload function. [CODE] ostream& operator<< (ostream &out, bool &C1){ if(C1) out << "A"; if(!C1) out << …

Member Avatar for caut_baia
0
216
Member Avatar for SWEngineer

Hello, I have installed the [I]latest [/I]versions of [B]OpenCV [/B]and [B]Eclipse CDT[/B], but not able to make OpenCV to be used within Eclipse CDT. Any ideas on how can I do that? Thanks a lot.

Member Avatar for SWEngineer
0
170
Member Avatar for abcdabid

Hi all I am trying to create ClistCtrl with check boxes and different columns in it. BUT [CODE] ListCtrl m_listBox; int i; CString strTemp; m_listBox.Create(WS_CHILD|WS_VISIBLE|LBS_STANDARD|WS_HSCROLL, CRect(10,10,200,200),this, 111); m_listBox.InsertColumn(0, _T("Column 1") , LVCFMT_LEFT, 50, 0); m_listBox.InsertColumn(1, _T("Column 2") , LVCFMT_CENTER, 100, 1); m_listBox.InsertColumn(2, _T("Column 3") , LVCFMT_RIGHT, 100, 2); m_listBox.SetExtendedStyle(m_listBox.GetExtendedStyle()|LVS_EX_CHECKBOXES | …

Member Avatar for abcdabid
0
344
Member Avatar for cppgangster

hi, how to declare static data memeber of a class and how to define it? [CODE] class Hop { protected: static struct NStrct{ int nCount; } } [/CODE] how to implement it? for example if the static member is "static const count", you would declare the static member in implementation …

Member Avatar for cppgangster
0
175
Member Avatar for nabajyotip

hi i have a .so file written in c and i am trying to use it in a c++ program but when i try to compile the c++ code it gives me undefined reference to function getNearestAP() which is a part of my .so file.To add to this i tried …

Member Avatar for nabajyotip
0
66
Member Avatar for asymptotes14

ok i have this code working -but i have few more questions guys, -i wanted to put error trapping in the seatRes() function but have no idea how, -i also wanted to make a function that will be able to cancel a reserve seat, and change it to another seat …

Member Avatar for daviddoria
0
158
Member Avatar for eline83

If I have an array of entries 5, 10, and 20. How many heaps are there for each? Since there are two sorting algorithms, bottom-up and top-down, Are there 2 heaps for each entries? Help me guys :D

Member Avatar for Ancient Dragon
0
110

The End.