49,757 Topics

Member Avatar for
Member Avatar for n4j

Hello ,i have problem with code bellow. every data i enter it show me the weight '0'! Can you tell me how can i solve this problem? you should enter number of nods and edges and weight of each edge. [CODE] #include <stdio.h> #include <conio.h> #include <iostream> #include <Windows.h> using …

Member Avatar for n4j
0
256
Member Avatar for im abcd

So i wanted to build a program in which scientific sums are solved along with the steps .I tried but i failed . Here is the code ~ [CODE]#include <iostream> #include <cstdlib> #include <windows.h> #include <conio.h> using namespace std; int main(){ int reply; int u ,v ,t; int a = …

Member Avatar for im abcd
0
264
Member Avatar for ddm

I am trying to load the numbers to a text file based on user option when he or she types in number through my program. I'm just not sure how to go about it I have not yet learned this. I know I need to use #include <fstream>

Member Avatar for Ancient Dragon
0
66
Member Avatar for pjh-10

need help for this small Q here, just hoping someone could write out a full c++ programme for the problem, with comments wherever nessecary, thanks! Write a function to evaluate eX , using a series approximation (see below). Compare the output of your function with the library function exp(x). How …

Member Avatar for pjh-10
0
92
Member Avatar for badboy11

Need help with implementing a pure abstract class via inheritance, using namespace to wrap all my classes to avoid conflict with others. I have been able to build and run the code successfully if I remove namespace wrapper from my abstract class and all classes that inherit from my pure …

Member Avatar for badboy11
0
253
Member Avatar for Jay22

Hi, This my first time asking for help for my C++ programming class but recently my teacher gave us an assignment that got me so confused. I don't understand what to do. My assignment is due Wed, Feb 8, 2012 and my C++ programming book is expected to arrive Friday. …

Member Avatar for Jay22
0
96
Member Avatar for lxXTaCoXxl

I have a homework assignment due this week and am fairly new to C++. Don't have a book so I can't really go on anything other than the video material and power point slides my teacher provides. I have 98% of the assignment done, however I'm encountering logic problems. I'm …

Member Avatar for lxXTaCoXxl
0
103
Member Avatar for Gonzo14

I'm trying to preform a loop, using a combination of a if/else and while loops. I set a boolean "repeat1" to true, to enter the while loop. Then when I went the user to pick to repeat or move on, they enter a Y or N, if Y, keep repeat1=true, …

Member Avatar for Gonzo14
0
161
Member Avatar for PixelatedKarma

Hey guys and gals not quite sure if this is where I should put this, I'm running into a really weird problem that I have yet to encounter...atleast until now. I am using Microsoft Visual C++ and playing with a little toy project using windows forms. Anyways I have an …

Member Avatar for PixelatedKarma
0
1K
Member Avatar for annitaz

I need to write a program in QT4 that converts the value entered by the user to Celsius or to Fahrenheit The temperatue.cpp: I need to write a program that converts celcius to fahrenheit and vice versa the temperature.cpp is: #include "temperature.h" //constructor Temperature::Temperature() { //{initializes and places widgets using …

Member Avatar for deceptikon
0
267
Member Avatar for vindom

Hi every1! Thats my code that used to work before I've added some attributes to my items. [CODE]void manager::EditStockItem() { ListStock(); { string z; bool found; cout<< endl<<"<===================================================>"<<endl<<endl; cout << "Enter ID of the Stock Item you want to edit" << endl<<endl; cin>>z; found = false; vector <Item*>::iterator iter = …

Member Avatar for vindom
0
249
Member Avatar for tanvirraj91

hi this is my first thread i am learning c++. it is my first language that i am learning. it seems difficult because it is my first programming language. i follow the book tittle "PROGRAMMING WITH C++" by "D RAVICHANDRAN" . please suggest me how i learn language very easily

Member Avatar for jwenting
0
132
Member Avatar for sathya88

difference between setdialogitemtext and update data??? in mFC VC++ application; both way we changing item values.. in some app one working another not working.. ex modal dialog update data not working.. any body explain???

Member Avatar for thines01
0
185
Member Avatar for MasterGberry

Title may be a bit off, but I am having issues trying to form this last function. I created a simple sorting algorithm for a list of ints I have for a project, now the ints are from the min to max. I know the size and have a pointer …

Member Avatar for mrnutty
0
197
Member Avatar for ddm

Write a program to accomplish the following tasks: 1. Generate arbitrary number of random integer numbers between [0-100] 2. Save or load the numbers from/to a text file based on user option 3. Search the generated list for an arbitrary number entered by a user 4. Use Linear and Binary …

Member Avatar for WaltP
0
691
Member Avatar for vic s

hi, my name is vic...i got one problem cannot fix....output for the number of times each of the tasks has been invoked...i run 3 times each of the tasks but the output always is this program has run 1 times..... #include<stdio.h> #include<stdlib.h> void doTaskA(){ printf("Start of Task A\n\n"); int input_1, …

Member Avatar for vic s
0
185
Member Avatar for Rimojenkins

Hello. I am working on a data structures program that should be quite easy, but after programming in assembly language using mips, I forgot a little bit of C++ and can't remember how to do this. I've used my googlefu for at least 2 hours and still have this problem. …

Member Avatar for Rimojenkins
0
174
Member Avatar for inspire_all

[CODE]#include<iostream.h> #include<conio.h> struct marks { int a:3; int b:3; int c:2; }; int main() { clrscr(); marks m={2,12,5}; cout<<m.a<<m.b<<m.c; getch(); return(0); }[/CODE] o/p is 2-41 i got how 2 and 1 came but didnt get how -4 came. according to me it should have been binary for 12=1100 b can …

Member Avatar for MandrewP
0
119
Member Avatar for Behi Jon

Hi, I have many versions of Visual C++ Redistributable installed on my windows. I was wondering if I want to remove old versions and keep the last one, any problems will happen or not. (sorry for my bad English) thanks in advance...

Member Avatar for khajvah
0
59
Member Avatar for SaimaAsif

Hi, I have a program which is almost working now further implementation wants a records to store different entities and to create their relationship. I don't want to create the new forms what would be the best and easiest way of doing this. Any help would be highly appreciated. Best …

Member Avatar for SaimaAsif
0
143
Member Avatar for kmlila

#include<stdio.h> #include<stdlib.h> void main() { double count = 0; int input = 0; int sum = 0; float average=0; while ( count < 20) { printf("Please enter integer number : "); scanf_s("%d" , &input); sum = sum + input; count = count++; } average = sum / count; printf("The total …

Member Avatar for kmlila
0
130
Member Avatar for DaniFollower

help me with this please Write a program that thoroughly tests the robustness of a bank account class, which must have the following attributes: • Account Number • Account Name • Balance You must produce the account class with its associated attributes, constructors, destructor, accessors and mutators. You could start …

Member Avatar for DaniFollower
0
92
Member Avatar for znerihc

So I am making this game kinda like super text twist. I was wondering if there are functions in c++ that lets you know if the guess word is a subset of the scrambled word. Of course, the number of characters would have to match up. Example word || scambled …

Member Avatar for ravenous
0
120
Member Avatar for inspire_all

i am a c++ beginner and i did not get the concept of virtual functions in polymorphism i am not getting the following lines [QUOTE]virtual function has an important advantage over simple overloading .if a particular member function is not defined for any derived class but is called through derived …

Member Avatar for inspire_all
0
137
Member Avatar for кодирование

How would I go about attaching a stub to my payload, which shall control the execution of the payload. I have looked into file mapping [url]http://msdn.microsoft.com/en-us/library/windows/desktop/aa366556%28v=vs.85%29.aspx[/url], but I am not 100% certain this is the right way to do that? Thank you.

0
85
Member Avatar for danymota19

hi i need help!! i need a program where you enter a string and it has to sort the string using insertion sort showing the words in descendent order

Member Avatar for Lerner
0
1K
Member Avatar for darshilpatel34

Declare a structure that contains: student Id, first name, last name, and five test scores. Also declare an array of 10 student structures. Prompt the user and read the student data from the keyboard and store the information in the array. After each student ask the user if there is …

Member Avatar for WaltP
0
158
Member Avatar for CristalEnt

Hello, my problem is, i´ve created a windows program that plays a sound with playsound function from mmsystem.h and then starts a timer that works with getsystemtime and the _systemtime variables. First, the sound is started with the playsoundfuction, and inmediatly after, the getsystemtime stores the current time in a …

0
40
Member Avatar for faintdeath

The purpose of the program is to create an account where you can deposit, withdraw, and check your balance. I have to use class and put it into a project with a .cpp and .h file. When i compile this it works almost perfect, but the balance always starts at …

Member Avatar for faintdeath
0
2K
Member Avatar for Zssffssz

Just want to see if there is a thing to turn oh "Test" to binary/base 2 stuff. This: [CODE]muffins = 12+16%2[/CODE] I think is sortof what I'm looking for but it chops of whatever's bigger than 2.

0
113

The End.