49,761 Topics

Member Avatar for
Member Avatar for bustamorg

Hey I am inputting this string into a this function " A toyota's a toyota". The code should count the frequency of the word and letter count and display it. The issue I am having is that is does not count them all, it misses the last word counts. Here …

Member Avatar for rubberman
0
233
Member Avatar for fahadmunir32

what difficulties most of the beginners in c++ programming student face i guess logic building ** i have a blog about c++ programming for beginners on which i try to things the as simple as i can so every beginner can understand the logic of program. Because once they are …

Member Avatar for rubberman
0
516
Member Avatar for king13

A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $.50 per hour for each hour [I]or part thereof[/I] in excess of three hours. The maximum charge for any given 24-hour period is $10. Assume that no car parks for …

Member Avatar for radhakrishnan.akshai.3
0
24K
Member Avatar for chubbyy.putto

can anyone tell what did i wrong on this random number? http://pastebin.com/M3J9u5sR

Member Avatar for DavidB
0
152
Member Avatar for DavidB

I am trying to use Visual Studio's debugging features more effectively; I certainly do not know all its ins and outs. At the moment, I would like to quickly see the values of an array. See the attached screenshot of the Watch Window. The variable **k** is a global array …

Member Avatar for DavidB
0
974
Member Avatar for acmarshall

I am doing a programming assignment. This program asks you to collect statistics on precipitation and temperatures from the four quarters of a year and print the calculated results. It is an exercise in using enumerated types and arrays. The measurements are entered at the end of every quarter. Major …

Member Avatar for acmarshall
0
170
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
178
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
185
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
236
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
142
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
109
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
189
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
510
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
433
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
730
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

The End.