49,757 Topics

Member Avatar for
Member Avatar for johnnyturbo3

Hi, I'm currently using Eclipse for a C++ project. I've used Netbeans and MS Visual Studio before and these IDEs conveniently store Header and Source files in 'virtual' separate folders I.E. in the project folder on the HDD, they're not physically stored in separate folders. However, since moving to Eclipse …

0
77
Member Avatar for effizy

Hello all, I am completely new to c++ and have no idea what am doing or should be doing but am ready to learn. My first problem is to write a code "to calculate average score of uncertain numbers of student and the output should be (number of students,total points …

Member Avatar for bleedi
0
112
Member Avatar for saanda

Hi! Please, I really need help with a problem. I need to read numbers (float type) from a file. Numbers are arranged in rows, I don't know how many in each row, there may be a large number of numbers (milions). How can I read each row of numbers, for …

Member Avatar for mtbs1826
0
20K
Member Avatar for halofan91

Hello, new here, I am having trouble with a part of my C++ assignment I am doing for university. The assignment is about writing a structure for a bank account and then subsequently enter values for the account's number, balance, interest rate, term of holding and deposit/withdrawal amounts. The part …

Member Avatar for halofan91
0
159
Member Avatar for mns_2010

Here is a client code for socket programming: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #define PORT "3490" // the port client will be connecting to #define MAXDATASIZE 100 // max number of bytes we can get …

Member Avatar for mns_2010
0
158
Member Avatar for geek1

data compression in c++. this is a text compression eg: gggghhnnnmmmmm would give us: g4h2n3m4 thank you

Member Avatar for Aranarth
0
88
Member Avatar for yapkm01

I am newbie to C++ and pretty confused about initialization of local variables for built-in and class types. Here's a snippet of the code: 1 #include <iostream> 2 using namespace std; 3 4 class A { 5 6 public : 7 A() : x(9) {}; 8 int x; 9 10 …

Member Avatar for arkoenig
0
990
Member Avatar for daneuchar

This was asked in a interview by Cognizant Technologies Print the name in center of the screen and then make the letter drop one by one out of the screen how to solve this ? ex. Every thing must be in the center of the screen Daniel then 'l' must …

Member Avatar for Ancient Dragon
0
96
Member Avatar for potato4610

 DetermineElapsedTime has only two parameters - both pointers to const MyTime.  DetermineElapsedTime must not modify the contents of either structure.  DetermineElapsedTime must not declare any pointers other than its two parameters.  DetermineElapsedTime must return a pointer to a MyTime structure containing the elapsed time.  Use …

Member Avatar for potato4610
0
173
Member Avatar for marvolo1300

Hi i encountered a problem while compiler this [CODE] if (operation != '+' || '-' || '*' || '/' ) { cout << " Incorrect operation" <<endl ; system ("calculator.exe") ; } [/CODE] I am trying to use system() to launch calculator.exe. I have used this method before, here's the …

Member Avatar for Ancient Dragon
0
103
Member Avatar for laughnan

I send out multiple types of variables (i.e. 2 char arrays, 1 int, 1 double, and two more char arrays). But when I read then back at the beginning of the program (building a LLL) I get multiple declarations of the same variables and then when I display the LLL …

Member Avatar for Kanoisa
0
4K
Member Avatar for nancy11

Hi Guys, I have a problem in my code that I don't know where it is. I submitted 400 jobs to cluster and after a while I got signal seven error. All the log files shows segmentation fault error. So I fixed the seed and used the same seed that …

Member Avatar for Narue
0
89
Member Avatar for mahsa.ehsani

i wrote the code of tic tac but it has an error: fatal error C1004: unexpected end-of-file found please help me

Member Avatar for NicAx64
-1
165
Member Avatar for NicAx64

hi all, I'm new to the linux programming first of all. I just wrote this program. [code] #include <fcntl.h> #include <stdio.h> #include <iostream> #include <string> using namespace std ; int main(int argc,char **argv) { /* open the file */ string _path_name = "./file"; string _return ; int fd=open(_path_name.c_str() ,O_RDONLY); /* …

Member Avatar for mike_2000_17
0
145
Member Avatar for blaisemcrowly

I have a problem that i have tried my best to solve.. but its not working well in my program i take both integer and character inputs. [B]when typing fast i noticed that, when a user accidentally enters a character instead of integer or integer instead of character the program …

Member Avatar for MooGeek
0
2K
Member Avatar for willgr

I have developed a C++ CGI which runs fine on Apache on Win32. I would like to deploy the program onto linux. My plan is to install Wubi (i.e. Ubuntu) and compile the CGI there so that it will work on the linux server. But before I do, I need …

Member Avatar for willgr
0
234
Member Avatar for ganesh_IT

Hi guys i have a new kind of error , i never seen before . Error Message is[CODE] Cannot update Program database "e:\ganesh_projects\Framework\Framework\debug\vc90.pdp . [/CODE] I am a fresher so any one tell what the problem is

Member Avatar for Fbody
0
80
Member Avatar for timb89

i am trying to insert a 2 integer values into the linked list, but the program keeps crashing after it gets to inserting into a linked list. [CODE] struct termNode { int coeff; int exp; termNode * link; }; void insertHead(int c, int e, termNode * & P) { termNode …

Member Avatar for Kanoisa
0
98
Member Avatar for gerard4143

Please check the line(s) of code after the comments '//this is the line of code in question... '. I want to know if this is the proper way to use the std::ostream operator<< in multi-inheritance? Basically I want the derived object(dog) to call the base object's std::ostream operators without hard-coding …

Member Avatar for gerard4143
0
1K
Member Avatar for Gait

Where can i download the best tech videos and ebooks free?The resources need to cover several aspects of technology ranging form networks,hardware,programming,databases etc.

0
49
Member Avatar for timb89

I am looking to allow the user to submit a polynomial such as +3x^6 +2x^2 +9x^0 into a set of variables which would be sent to a linked list. What is the best way to separate the variables to allow them to be looked at individually. So that: C E …

Member Avatar for timb89
0
87
Member Avatar for Bigbrain99

Is there any recommended books, websites or practices that i can do to improve my c++? I decide to become a great programmer in the future!

Member Avatar for Duki
0
152
Member Avatar for zhuimeng

I want new a array,such as double *dou=new double[600*600*900] but in the case of "WIN32",vs compliler likely could't support new a array exceed 2G if I want to new the array above, how to do?

Member Avatar for zhuimeng
0
165
Member Avatar for Bigbrain99

I 'm not quite sure if i did the right way but i just couldn't get the right value for my codes....can anyone figure out the problem? [CODE]for(int x = 0; x<myvector.size();x++) { if(number.compare(0,2,myvector[x],0,2)==0) //compare number(user's input) to the line read from getline { checknumber = true; cout<<"passing compare++"<<endl;//if same …

Member Avatar for Bigbrain99
0
83
Member Avatar for woody1144

Hi everyone, I'm new here but have found it super useful to search the forums when encountering problems so I have been in the background. I am however really stuck with bitsets and have not been able to find a relevant post here or on the internet. My issues is …

Member Avatar for woody1144
0
217
Member Avatar for kazkikay12

i want to make a program that used to enter 7-digit number and determine the largest , smallest and the median and average of the seven number and as for know i tink i got it but there something wrong again in my program can you chek it out and …

Member Avatar for kazkikay12
0
135
Member Avatar for sbrohee

Hi everybody, In standard C++, two pair objects (pair <int, int>) are equal when the first and the second member of the pair are equal. Would it be possible to redifine the pair so that to pairs would be equal when only the second terms are equal? Thanks a lot …

Member Avatar for sbrohee
0
206
Member Avatar for raghamayee

HI every one, I need to do a course project for software architecture which should be implementable and is compulsoraily an ieee or acm paper. The areas given for us are: agile s/w developement,extreme programming,cloud computing,web services,generic programming,testing... can u guys suggest any thing in it

Member Avatar for raghamayee
0
100
Member Avatar for brazentongue

how can I input a console-entered string into multiple structure variables? I have the following structure: [code=c]struct MyTime {int hours, minutes, seconds;};[/code] and need to prompt a user to enter a time in format hours:minutes:seconds and then store that time into the structure directly i.e. I can't input a string …

Member Avatar for brazentongue
0
154
Member Avatar for tennis

[CODE]// pointers to base class #include <iostream> using namespace std; class CPolygon { protected: int width, height; public: void set_values (int a, int b) { width=a; height=b; } }; class CRectangle: public CPolygon { public: int area () { return (width * height); } }; class CTriangle: public CPolygon { …

Member Avatar for sfuo
0
122

The End.