49,756 Topics

Member Avatar for
Member Avatar for Steven_14

It's been a few years since I last dabbled in C++ and then it was only learning the console stuff but by no means was I a master of it. I'm comfortable with VBA, MS Access and SQL. I'm wanting to delve into the GUI world of C++ with a …

Member Avatar for Steven_14
0
354
Member Avatar for Ed Genes

//*************************************************************** // HEADER FILE USED IN PROJECT //**************************************************************** #include<iostream> #include<fstream> #include<cctype> #include<iomanip> using namespace std; //*************************************************************** // CLASS USED IN PROJECT //**************************************************************** class account { int acno; char name[50]; int deposit; char type; public: void create_account(); //function to get data from user void show_account() const; //function to show data on …

Member Avatar for rproffitt
-1
162
Member Avatar for ice_3

Code: do{ cout<<"No. of random numbers (-10-10): "<<endl; cin>>howmany; if(howmany<1 || howmany >50) cout<<"INVALID INPUT"<<endl; }while (howmany<1 || howmany>50); cout<<endl<<endl <<"The "<<howmany<<" random numbers from 1-50 are :"<<endl; srand(time(0)); for (ctr=0,negativectr=0,positivectr=0; ctr<howmany; ctr++) { randnum[ctr]= rand() % 50-1; cout<<randnum[ctr]<<"\t"; if (randnum[ctr] % 2 ==0) { positive[positivectr]=randnum [ctr]; positivectr++; } else …

Member Avatar for AssertNull
0
318
Member Avatar for Chris_38

Can someone give me some programming ideas to keep my knowledge up-to-date? I received a masters degree in computer science back in December and been job searching since then. I want to tell an employer something.

Member Avatar for rproffitt
0
286
Member Avatar for Wilda_1

I am writing a code which prompt user to enter her mobile number and in result..I code to display it's user SIM network according to some principles which I code but I don't understand whats wrong with my code.. It saves data in a text file... // here is my …

Member Avatar for rproffitt
0
304
Member Avatar for Lp_baez

when the console displays the "StudentAns" I get weird characters instead of the actual answer. ///////////////////////////////////////////////////////////// this is the files CorrectAnswers.txt A D B C A A D B D C A D B A C C D B C A StudentAnswers.txt A D B C A A D B …

Member Avatar for AssertNull
0
349
Member Avatar for Kersten

Hello, this question is related to an older post of mine ([Click Here](https://www.daniweb.com/programming/software-development/threads/505499/getopenfilename-freezes-at-second-execution)). In this question i stated that my program freezes at the execution of GetOpenFileName. After struggeling a while with that problem and doing other more important stuff first, i came back to the original problem and found …

0
218
Member Avatar for Esmatullah
Member Avatar for rubberman
0
322
Member Avatar for Daniel_59

I currently have a problem where the program when it is running will also choose one word and one letter in the word file. For example, in the word file the program only chooses the 2nd word "Dependent" The only letter that is considered correct is "d" My code is …

Member Avatar for AssertNull
0
373
Member Avatar for Tom_15

Hi: I wasn't able to find the exact solution to my problem on Daniweb, although there are several posts regarding the game of life. This situation came the closest: http://www.daniweb.com/software-development/cpp/threads/242338 My situation is a bit different because I HAVE to use a combination of functions and a class in the …

Member Avatar for Reverend Jim
0
2K
Member Avatar for Sid_3

whenever I enter 0 in the string value to quit the loop it does not work PLEASE HELP ME!! #include<iostream> #include<string> #include<fstream> #include<cctype> #include<stdlib.h> using namespace std; struct Student { string netID; string firstName; string lastName; int maxCourses; int numCoursesEnrolled; }; const int SIZE = 100; int readStudentData(string, Student *[], …

Member Avatar for rubberman
0
305
Member Avatar for Benny Adams
Member Avatar for Wilda_1

For over the few months I've being trying to display LIST the of IPV4 Adresses in C++ programming , but unfotunately when I am going to compile the code it done properly but it shows nothing to me and error message generate please fix this problem you genius guy's... #include …

Member Avatar for Wilda_1
0
456
Member Avatar for tonykjose

I have got a small problem with this program. It takes a user's input of numbers and sorts them by merge sort in increasing order using linked lists. Unfortunately, a segmentation fault appears immediately after I input the numbers. Probably something to do with the merge sort function. Help! [code] …

Member Avatar for rcgldr
0
360
Member Avatar for Tom_15

I need help getting my neighborcount function to work correctly, as follows neighborCount:Given two arguments that indicate the row and column of a particular cell in the matrix, this function returns the number of neighbors that have the value "true". Most positions in the grid have 8 neighbors like the …

Member Avatar for Tom_15
0
549
Member Avatar for Suzie999

Here is example class, the commented code in constructor works as well as the initializer. My question is, what is the correct way? class NClass { public: int _pid; std::wstring _name; NClass(int pid, wchar_t * name) : _name(name) { //_name = name; } void Print() { std::wcout << _name; std::getchar(); …

Member Avatar for Suzie999
0
3K
Member Avatar for Tom_15

I need help inserting the assert function within my code, and creating the neighborcount function as listed below, heres the guidelines: default constructor: initialize all of the array elements to false get: return the current contents of a single array element. Use arguments to indicate the row and column of …

Member Avatar for Tom_15
0
691
Member Avatar for One-up

I have a tough time trying to break what's in here: #include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; int main () { float grade; string name; cout << " Please input your name: " << endl; getline(cin,name); cout << " Please input your grade: " << endl; cin …

Member Avatar for rubberman
0
232
Member Avatar for Shuaibu_1

Am a master of engineering student i need to use LTE-SIM soft ware for my dessertstion ,please how can i go about it,thanks

Member Avatar for rproffitt
-2
209
Member Avatar for Mr.M

Hi, I get "first-chance exception at 0x1000161f in myapp.exe: 0c0000005: Access violation reading location 0x00000000." If i execute the WFSOpen command. To be able to receive the error pointing to the correct error value I've done this: LPHSERVICE lphService; lphService = 0; // I put 0 because the EXIT_SUCCESS is …

Member Avatar for Mr.M
0
2K
Member Avatar for Arshad Syabrin

Given a positive decimal number, we can convert the equivalent numbers in binary; in octal and in hexadecimal. Due to the hexadecimal numbers, it is better to use character arrays to store the various conversions. We propose the following structure to store the information of a number: Working on a …

Member Avatar for rubberman
1
209
Member Avatar for will_9

hi guys thanks for viewing and helping me out!! here are the example what the things will looks like Enter problems per set: 3 Set #1 ---------- What is the maximum number for this set? 100 45 + 21 = 66 correct 0 + 100 = 100 correct 54 + …

Member Avatar for rubberman
0
355
Member Avatar for pramod_8

#include<iostream> using namespace std; int main() { int a,d; cout<<"Enter a integer to check it is prime or not :"; cin>>a; d=2; while(a%d!=0) { d++; } if(a==d) { cout<<"\n the given number id prime "; } else cout<<"\n the given number is not a prime number ;" return 0; }

Member Avatar for AssertNull
0
436
Member Avatar for will_9

hi, guys i'm in colleage trying to do some homework with cs10 and got stuck with this combination of functions please help me out!!!! T^T spent 8hours today still couldn't figure it out #include<iostream> using namespace std; void getProbsPerSet(); void doOneset(char Func); void doOneproblem(int &Answer); void getMaxnumber(int &MAX); void printHeader(int …

Member Avatar for rubberman
0
395
Member Avatar for AssertNull

Okay, I am trying to learn Windows programming and there are all sorts of new data types that I am running into and need to learn. I'm trying to understand the point of it all and failing. If there is no point and it's just Microsoft making things difficult for …

Member Avatar for rproffitt
0
361
Member Avatar for Cave_1

The example in this post is from** C++ Primer Plus (6th Edition)** by *Stephen Prata* **My question:** Why cin.ignore( ) is not used in his example? Shouldn't we discard the buffer with a line similliar to this: `std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');` Example from the book: int fill_array(double ar[], int limit) { using …

Member Avatar for Cave_1
0
849
Member Avatar for AssertNull

OK, I programmed a few DLLs using Linux years back. My memory (and my memory could be faulty), was that I had the program decide which dll to load based on user input. So I had two dlls, each with a `string encrypt(string, string)`function. The user was asked to specify …

Member Avatar for AssertNull
0
234
Member Avatar for heroares

(create a c program which reads a sequence of daily temperatures for one month, stores them into an array temp and finds the average temperature with a function average.) ı dont know Dev c++ . how i made this? please help me.

Member Avatar for Destaw_1
0
287
Member Avatar for Moeen_2

Hello I'm interested in CPA Certification and need Free and paid web based tutorials,Study Guides .Please reply with accurate instructions and materials.

Member Avatar for rproffitt
0
140
Member Avatar for nitin1

Hi, I have one function (in a library I can't change the code) which takes a key and returns a Object. This code is written in java. I am calling this function from cpp code. I am accepting the result as jobject. 1. Added key as "key1" & value as …

Member Avatar for JamesCherrill
0
2K

The End.