49,766 Topics

Member Avatar for
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
233
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
210
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
214
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
358
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
442
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
405
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
367
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
850
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
238
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
291
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
Member Avatar for burningkrome

I'm a developer lead and I'm trying to get actual statistics on how many developers are comfortable in multiple C-like languages. I'm specifically interested in the crossover amongst C, C#, C++, and Objective-C. This is a legitimate quesiton, not a spam. Instead of asking everyone to post a comment...I've created …

Member Avatar for rproffitt
0
238
Member Avatar for Kelly_6

2) Write a program that computes the average of all even numbers in the range 3 to 111, inclusive. Use a counting loop. Display the average in a suitable format

Member Avatar for happygeek
-3
179
Member Avatar for sam_21

Write a program in C++ to prepare a frequency distribution table of the percentage marks in Computer studies of sixty students, to be taken as inputs, into the following categories Category Marks(%) Fail 0-34 Pass 35-59 Good 60-79 Very Good 80 and above

Member Avatar for happygeek
-2
429
Member Avatar for Sid_3

#include<iostream> #include<iomanip> #include<string> #include<cctype> #include<stdlib.h> using namespace std; struct Product { string PLU_Code; string Fruit_name; int SalesType; double UnitPrice; double InventoryLevel; }; const int SIZE = 100; int populateInventory(Product *[], int); bool validatePLU(const string &); int main() { /* (Normal way of allocating ) Product *NumArray; NumArray = new Product[SIZE]; …

Member Avatar for ddanbe
0
521
Member Avatar for spiriad

Hi, I am trying to make small game , but I am confronting with a problem. I have a function that should add a new button to my form when it's called. The problem is that I don't know how to create a new object (a button, a shape or …

Member Avatar for Itamir
1
3K
Member Avatar for Nathan_6

Hi, everyone. I want to create a RISK-style game in C++ with decent graphics, of course. I would like to create a map with countries as buttons [I know that this is possible in java through extensions but I want to do this in c++] Could anyone please help me …

Member Avatar for Nathan_6
0
198
Member Avatar for _1_13

We wish to write a program countletter.cpp that takes a filename and a single character on the command line and prints the number of occurrences of that character in the file

Member Avatar for rproffitt
0
97
Member Avatar for Vikram Sehgal

can someone please explain me this piece of code //say getdetail() is a function declared above a.getdetail(); f.write((char *) & a,sizeof(a));

Member Avatar for Vikram Sehgal
0
341
Member Avatar for vishal_13

In this code if we enter the prime numbers like 3,5 or 7 the output is wrong.and if we input 3,11or 17.. output is correct why????

Member Avatar for rubberman
0
56
Member Avatar for _1_5

Hi i'm make an Inventory System for my personal game project with C++ Composite pattern. What I'm going to do is set a limit so player unable add item once hit the specific limit. but here my problem : 1. Did i set the limit & add item function correctly? …

Member Avatar for rubberman
0
364
Member Avatar for priyanka.choudhary.90038

Hi All, I would like to know how to implement reflection is c++ as this feature it is not supported by c++. (1)Base *base_ptr= new derived1(); (2)Base *base_ptr= new derived2(); (3)Base *base_ptr= new derived3(); can those derived object ype can be assigned through vector or string? I.e string list []={"derived1","derived2","derived3"}; …

Member Avatar for rubberman
0
183
Member Avatar for nivedita5

I am working with a code which stores the information of customers in a file called customer_details.txt then asks the user to enter a name and then searches for the name in customer_details.txt, if the name is found, the entire details of the user is displayed on the output screen. …

Member Avatar for 2teez
0
3K
Member Avatar for Zlatan25
Member Avatar for Reverend Jim
-1
115
Member Avatar for meron seyoum

hi,i'm beginner for programming and i don't know how to use pointer in a c++ programming.

Member Avatar for rubberman
0
319
Member Avatar for Nathan_6

Hi everyone. I am makng a RISK game and I am working on a territory class here, and I got a strange message that my google searches have not shed any light on. My code is below. First, my header file: // Class represents each individual territory on the map …

Member Avatar for rubberman
0
533
Member Avatar for Nathan_6

Hi everyone. I am trying to develop a class for a RISK boardgame, and I used UNIT_COLOR and UNIT_TYPE enums to represent the different types of pieces. These enumerations are defined as public in my class but are causing complete havoc in my code because with the C++11 "class enum," …

Member Avatar for AssertNull
0
2K
Member Avatar for chrisschristou

hello friends. i have i simple c/c++ function that return the min of the array to the main function, in the body of the function i'm using an iterative loop so i would like to do it recursivly and i don't know from where to start! all reply are usefull …

Member Avatar for AssertNull
0
543

The End.