49,761 Topics

Member Avatar for
Member Avatar for Curious Gorge

Just out of curiosity I was wondering how library developers created their own string classes. I am sort of a novice with programming but I tried creating my own string class to prove that I could do it. What I wasn't able to solve was how to create an array …

Member Avatar for Curious Gorge
0
216
Member Avatar for Vasthor

http://s11.postimg.org/kxl3cemw3/error.png this is the least error that I can get from multiple time of debugging. [TheCodeFile](http://www.fast-files.com/getfile.aspx?file=70535) StrBlob.h has needed to use something from StrBlobPtr.h and StrBlobPtr.h needed to use something from StrBlob.h I did tried to #include each file on each other respectively, but ofcourse that would be a data …

Member Avatar for Vasthor
0
385
Member Avatar for mixelplik

I'm tryin to search an array of structures for name. I'm comparing a char[] to a struct member with is a char[] my struct struct NBA_Team { char* name; char conference[8]; char division[10]; unsigned short wins = 0; unsigned short losses = 0; float pct; }; My search code void …

Member Avatar for rubberman
0
175
Member Avatar for Brennan_1

I need help with my coding I need to be able to take in at most 300 integers(0 to 100) and then fin the count of zeros and evens. After this i need to add all of the integers up and get the average. Find the maximum and minimum values …

Member Avatar for iamthwee
0
778
Member Avatar for larry burns

I'm interested in improving my programming skills so I can get a programming job. I majored in a STEM subject as an undergrad (not CS) and used C++ for a research project. I'll have to look thru my harddrive to see if I still have the code for that, as …

Member Avatar for Moschops
0
146
Member Avatar for cadam940

There is a famous recursive relation to find Stirling numbers of the first kind, i.e. C(n,k)=C(n−1,k−1)+(n−1)C(n−1,k) This is a solution to the following problem: Given a set of N distinct numbers, how many different permutations of the set exist such that there are exactly K left-to-right maxima? This was not …

Member Avatar for rubberman
0
371
Member Avatar for narvey ann
Member Avatar for rubberman
-1
237
Member Avatar for Purav_1

* * * * * * * * * * * * Can anyone write a program to print this type of pattern?

Member Avatar for rubberman
0
91
Member Avatar for Labdabeta

Hello, I have a particular set up of cast operators and constructors which is leading to a compile-time ambiguity error. I am wondering if somebody can explain why this is happening and what can be done to fix it. For example, here we have 2 classes: class A { int …

Member Avatar for Labdabeta
0
312
Member Avatar for chubbyy.putto

cout << "Enter size of array: " << endl; cin >> size; cout << "Enter elements: "; for(i=0;i<size;i++) { cin >> array[i]; }

Member Avatar for Learner010
1
160
Member Avatar for sohail.butt.144
Member Avatar for rubberman
0
104
Member Avatar for Ericus7

A PROGRAM IN WHICH WILL DECLARA VARIABLE WHICH HOLD A HOURLY WAGE AND NUMBERS OF HOURS WORKS.PROMPT THE USER TO ENTER VALUE FOR HOURLY RATE AND HOURLY WORKED.COMPUTE AND DISPLACE GROSS,WHICH IS CALCULATED AS HOURS MULTIPLY BY RATE FOR THE FRIST FORTHY HOURS,PLUS HOURS MULTIPLY BY 1.5 MULTIPLY BY THE …

Member Avatar for Ancient Dragon
0
113
Member Avatar for chubbyy.putto

for (int index = 0; index < 200; index++) { if(find_array[index] < minimums[0]) { minimums[0] = find_array[index]; //Lowest number cout <<"The index is " << index << endl; // trying to find an index } } for (int index = 0; index < 200; index++) { if(find_array[index] < minimums[1] && …

Member Avatar for chubbyy.putto
1
105
Member Avatar for blazemadej

Having issues making a menu that will subtotal and then display a grand total. My professor is no help. It would be awesome if anyone can point me in the right direction. Because i have no idea why its not working. The program works fine until I get to the …

Member Avatar for blazemadej
0
834
Member Avatar for baid.arham619
Member Avatar for Emma_3

Everything works fine, but the outputted numbers are supposed to be asterisks instead of digits. Ideas? #include <iostream> using std::cout; using std::cin; int main () { int number = 0; char star = '*', stars = '*'; cout << "Please enter a base number to create the triangle: "; cin …

Member Avatar for samson.dadson.3
0
253
Member Avatar for Damian_2

Okay so inside my ArcherArmor.cpp, I'm trying to figure out why the map initializer list isn't working, but for some reason I keep getting "Error C2593: 'operator =' is ambiguous". Here is my code: I also have a class which ArcherArmor is derived from, that has a struct called `Armor`, …

Member Avatar for Damian_2
0
744
Member Avatar for Prashant_3

i wanted to show the magic of a digit nine to my friensd in c so any one plz help me

Member Avatar for android9000
0
108
Member Avatar for nikkoderic.aranas

How do I use other libraries in C++? Specifically using the PDCurses library in the latest version of Visual Studio Express? What's the general way to set a libray up, how to use it? Thank you for your time and patience.

Member Avatar for Ancient Dragon
0
730
Member Avatar for martin3885

Hi, i'am a c# developer but I don't have much experience with c++. I'am curious if it is possible and how to add drad & drop functionality to a window of an external application. From my application I start an external application. I want to be able to drag an …

Member Avatar for rubberman
0
239
Member Avatar for singularity~

I am learning how to program with MPI and I can't seem to find an example anywhere about scattering two different arrays. Can someone point me in the right direction? I'll post some of my code below, that way you'll have an idea about what I'm trying to do. Thanks! …

Member Avatar for rubberman
0
195
Member Avatar for Iurie

HI ALL, I am trying to sketch the beging of function and the end, #include<ctype.h> #include<graphics.h> #include<conio.h> #include<math.h> #include<dos.h> #include<stdio.h> #include<stdlib.h> int xmax =1024;// getmaxx(); int ymax =760;// getmaxy(); float r,h;//??? int i; void grafica(){ //int gd=DETECT, gm; //initgraph(&gd, &gm, "..\bgi" ); initwindow(xmax,ymax, " Miscare "); setcolor(15); } float f(float …

Member Avatar for Iurie
0
221
Member Avatar for tawanda_1

HI GUYS I HAVE 2 WEEKS INTO THIS SUBJECT C++ AND OUR LECTURER HAS SINCE GIVEN US AN ASSIGNMENT.ONE OF THE QUESTION STATES; CONVERT THE FOLLOWING ALGEBRAIC EXPRESSIONS TO C++ a) M= A+B+C+D+E/5 B)Y=MX+B C)Z=PR+Q+W/X-Y D)Y=X(SQUARED)/B(SQUARED) E)Y=AX(SQUARED)+BX+C F)3(a+17) g)x+2=28 h) 50 n+5 =10 i)7x(squared)+4x-10 j)A IS NOT EQUAL TO B

Member Avatar for ann.mughal.5
0
301
Member Avatar for ifeanyiben
Member Avatar for pdk123

Hi, In the legacy implementation, there is a Queue (which stored the PDUs) which need to be retransmitted. The queue has been implementated as stl map (c++). So the last element in the Queue may not be the largest SN, as per transmit window. Is there any easy way to …

Member Avatar for rubberman
0
191
Member Avatar for Shinedevil

This is something that I made a while back during thanksgiving 2007. If you want to add on to it you can, it's not very well made as in the organization sucks. But it is pretty cool in the fact that you can navigate your acii environ with color and …

Member Avatar for mrpi64
0
2K
Member Avatar for ifeanyiben
Member Avatar for mixelplik

I'm practicing my parsing, and I'm writing a program with an overloaded function that counts the words in a user entered cstring and regular string. Suprisingly the cstring was easy peasey but the string object is has me a stumped. I don't think my cstring was the most efficient solution, …

Member Avatar for mixelplik
0
324
Member Avatar for mixelplik

This code is supposed to randomly assign numbers to an array of structs, but isn't working at all. I have no clue why, everything looks fine to me, can some one take a look and tell me why it's crapping out on me? #include <iostream> #include <cmath> #include <cstdlib> #include …

Member Avatar for mixelplik
0
98
Member Avatar for brandon66

Hello everyone im not very good with using pointers, maybe just need more explanation of using them/how i would change my code. Well i have to update this program i have to read in item number cost and qusantity from a file instead of getting it from the user. the …

Member Avatar for brandon66
0
274

The End.