Member Avatar
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 + …
by will_9 in Software Development ()
c++
Member Avatar
#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; }
by pramod_8 in Programming ()
c++
Member Avatar
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 …
by Mr.M 32 in Software Development ()
Member Avatar
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 …
by will_9 in Programming ()
c c++
Member Avatar
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 …
by AssertNull 194 in Software Development ()
Member Avatar
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 …
by Cave_1 in Programming ()
c++
Member Avatar
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 …
by AssertNull 194 in Software Development ()
Member Avatar
(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.
by heroares in Software Development ()
c++
Member Avatar
Hello I'm interested in CPA Certification and need Free and paid web based tutorials,Study Guides .Please reply with accurate instructions and materials.
by Moeen_2 in Software Development ()
c++
Member Avatar
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 …
by nitin1 15 in Software Development ()
Member Avatar
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 …
by burningkrome in Programming ()
c c# c++
Member Avatar
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
by sam_21 -6 in Computer Science ()
Member Avatar
#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]; …
by Sid_3 in Software Development ()
c++
Member Avatar
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 …
by spiriad in Software Development ()
c++
Member Avatar
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
by _1_13 in Programming ()
c c++
Member Avatar
can someone please explain me this piece of code //say getdetail() is a function declared above a.getdetail(); f.write((char *) & a,sizeof(a));
by Vikram Sehgal in Programming ()
c++
Member Avatar
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????
by vishal_13 in Programming ()
c++
Member Avatar
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"}; …
by priyanka.choudhary.90038 in Software Development ()
c++
Member Avatar
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. …
by nivedita5 in Software Development ()
Member Avatar
Can anyone provide me C++ implementation of Adaptive Huffman Coding ?
by Zlatan25 -3 in Computer Science ()
Member Avatar
hi,i'm beginner for programming and i don't know how to use pointer in a c++ programming.
by meron seyoum in Programming ()
Member Avatar
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 …
by Nathan_6 in Software Development ()
Member Avatar
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," …
by Nathan_6 in Software Development ()
Member Avatar
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 …
by chrisschristou in Programming ()
Member Avatar
//There is a problem in int main when scanning in the constructors into the pointer array ( found around line 843) //(sorts by the value generated in calcStockIndex — a method within the stock class) #include <iostream> #include <fstream> #include<cmath> using namespace std; /* Purpose: To store all information that …
by Builder_1 -6 in Software Development ()
Member Avatar
Hi All, In below code when class a object is assigned to class b by returning object through factory method i observed assignment is not happening properly and after assignment still class b's object points to NULL object only. *cobj=rhs;//it gives NULL object However below statement works perfectly when b …
by can-mohan in Software Development ()
Member Avatar
I tried to draw that shape but it doesnt work in right way .. any help? example for size = 3 print: * * *** * * #include<iostream> #include<cmath> using namespace std; int main() { int N, t,col,row; cin >> t; for (int i =0; i < t; i++) { …
by rose_2 in Programming ()
c++
Member Avatar
write a c++ program that asks user to insert 2 numbers
by amanueal in Programming ()
Member Avatar
Hi All, After compiling below code , I am getting below error. error: cannot convert a* to b* in assignment. it seems to be assignment doesn't work with pointers . Can anybody throw some light on this? i tried to use unique_ptr by transfering the ownership from a to b …
by can-mohan in Software Development ()
Member Avatar
We follow debugging with writing debug logs in the file to find any bugs in vc++ and visual studio. Is there any other better way doing the same. Thanking in advance
by Sarankulu in Software Development ()
c++