49,757 Topics

Member Avatar for
Member Avatar for alhawsa

exerted by the rider’s foot yet not exceed the stress placed on the crank arm’s sprocket attachment, is provided by this formua: r^3 = d*p/s*π r is the radius of the cylindrical rod in inches. d is the length of the crank arm in inches. P is the weight placed …

Member Avatar for Stuugie
-3
176
Member Avatar for Learner010

evenafter learning functions , i see a lot new things everyday in functions. its great because it gives the opportunity to learn new things. today , i see a function which have const keyword with function , like this : void fun_name() const{ } i couldn't understand it . would …

Member Avatar for Learner010
0
183
Member Avatar for jabujoukha
Member Avatar for aaron.richards.9404
Member Avatar for ram_7

Hi Team, i have done how to store values from database to Hashtable collection and then able to retrive the hastable data as per specific key from the hashtable. please help me how to do in c++ for the same. please let know which collection is used in c++ and …

Member Avatar for Ancient Dragon
0
101
Member Avatar for mixelplik

I'm playing with all the cstring and string functions, getting familliar with how they work. Below I have a function call to strcata, and all I'm doing is declaring a string within the function, I'm not even using it with anything other than cout. Everytime I run the code it …

Member Avatar for DeanMSands3
0
192
Member Avatar for Labdabeta

Hello, I wrote a library for arbitrary precision arithmetic recently and spent a long time implementing efficient multiplication algorithms. Now I am looking to see if it is possible for me to optimize anywhere else. One place that I thought should be more optimizeable is my division algorithm. Right now …

Member Avatar for mike_2000_17
0
1K
Member Avatar for richkardmunga.hounarable

i just want to enter the world of programming but i didn't know from what i'm starting i took a short look in C also C++ and Java,i just want to get into this nice world

Member Avatar for rubberman
0
92
Member Avatar for Suzie999

I am wrapping the Windows API CreateProcess. Here is my code. int __stdcall _Execute(LPTSTR program, LPTSTR workingdir, WORD show){ // Check if program has content if (!program || !*program){ MessageBox(NULL, L"You must provide path to executable", L"Error", MB_OK); return 0; } // Create buffers and copy program param to szCmd …

Member Avatar for Suzie999
0
320
Member Avatar for awais ch

How i take a full expration from user as input in c++ programme like (2+7 or 7*8 )

Member Avatar for Banfa
0
51
Member Avatar for glao

I want to pass an array from one cpp file to another. first: void wrapper(float **A,int N){ N=2; printf("Allocating Matrices\n"); *A = (float*)malloc(N*N*sizeof(float)); for(int i = 0; i < N; ++i){ for (int j=0;j<N;j++){ *A[j+i*N] = i; } } for(int i = 0; i < N; ++i) { for (int …

Member Avatar for glao
0
234
Member Avatar for Febel

I need a help in coding this program... write a C++ program to read a set of n numbers where n is defined by the user and print the contents of array in the reverse order using class template, numbers should include int and double data types... please reply soon....

Member Avatar for rubberman
0
184
Member Avatar for ganesh.naphade

Hi, I am new to microsoft visual c++(2008).I am unable to install or configure GraphicMagic as [steps](http://www.graphicsmagick.org/INSTALL-windows.html) given are confusing.Any help is appreciated.

Member Avatar for Ancient Dragon
0
140
Member Avatar for PulsarScript

Hi to all,i have to make project with the classes.Can anyone suggest the topic for the project?Or show the idea.Thank you.

Member Avatar for rubberman
0
108
Member Avatar for StarBreezed

I'm writing a program that works with two sets of numbers put into arrays. The program uses overloaded + and - operators. Array one = 2 7 4 2 9 7 Array two = 2 9 8 9 1 10 12 The output should be: For +, New Array = …

Member Avatar for Ancient Dragon
0
344
Member Avatar for Elixir42

Dear Kind DaniWebbers, I am trying to overload the fstream operators (ofstream/ifstream), so that I can save a class to a 'Binary' file and also display it with cout. But the ways in which each need to be implemented is different. Please can you show me how to define different …

Member Avatar for vijayan121
0
4K
Member Avatar for carmen.golz.9

Is this a real code in Dev c ++ I never seen this before example cout<< Concert4 Program Answers.\n\n"; Thanks Carmen

Member Avatar for deceptikon
0
187
Member Avatar for nicholasamh

Hi, I am using Visual studio 2008, C++ MFC to do my programming for serial communication. I am having problem with my source code wehn i complied it. I have link the serial.cpp and serial.h file to my main program. In my main program, i just type Serial.Open(); to test …

Member Avatar for baghere66
0
476
Member Avatar for malik.epperson

I need help with a homework assignment. I am to create a doubly linked list that reads the numbers from file and then compare the time it takes to sort the numbers using three different sorting algorithms. Here is the code that I have. The algorithms are not working(insertion sort …

Member Avatar for malik.epperson
0
1K
Member Avatar for wildplace

i need to create a project that able to run both under linux and windows(visual studio)... i pretty much finish all coding and able to run both windows and linux in separate files the problem i deal with is the header file which visual studio required #include "StdAfx.h" and not …

Member Avatar for deceptikon
0
2K
Member Avatar for TheFearful

So, I was given this specification for a quicksort algorithm and I have no idea where to start. Create a template version of the QuickSort algorithm that will work with any data type. Demonstrate the template with a drive function. If it was to do a quicksort, I could easily …

Member Avatar for TheFearful
0
212
Member Avatar for Damian_2

Okay so I have a class `Student`, which takes a number and a vector as a parameter for the constructor. Everything works well, until I output the values of the vector for every instance. The problem is that the same vector is being shared with EVERY instance I create, but …

Member Avatar for rubberman
0
428
Member Avatar for champmanking

Hi, all. Before I begin I am new to C++. Ok. I'm trying to create a simple 2D game in C++ using SDL, however I have hit upon a small problem. When I try to close the game window nothing happens. I think it's because when I create a new …

Member Avatar for champmanking
0
712
Member Avatar for hetem

Hi, please help me writing Internet traffic simulation and modelling in c++. i dont now how start . if anyone now tutorial, or link please pos here. Thanks

Member Avatar for phorce
0
65
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
383
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
776
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

The End.