49,761 Topics

Member Avatar for
Member Avatar for Labdabeta

I was working on a project when I thought that maybe a ::. operator would look funny in some code. Just for fun I typed that into the global scope area like this: [CODE]::. int main() { //etc...[/CODE] and my code completion software said too many results to display. My …

Member Avatar for Labdabeta
0
195
Member Avatar for xnycdplx

Hi I'm trying to read in actors from a file that I got off IMDB and I wanted it to be searchable to whenever the user enters an actors name, the program would output the movies the actor has starred or been associated with. I've gotten the search function to …

Member Avatar for Lerner
0
816
Member Avatar for zekstein

I need a sample code to retrieve the source code of a page . Ex : I have [url]www.blahblahblah.tld/file.ext?id=blah[/url] I want to retrieve in a char the source code of that site. Thanks

Member Avatar for thines01
0
407
Member Avatar for badboy11

Looking for an equivalent container class that matches to C#'s Arraylist collections class. Is there anything that comes close to a container that can provide index based enumeration as well as hold multiple data types. I am trying to create an vector that can hold multiple data types. For example: …

Member Avatar for badboy11
0
992
Member Avatar for n4j

Hello every one! i write an implementation for kruskal's algorithm but i think it doesn't work properly! The final tree has loop! this is my problem. Can you tell me how i can solve this problem? here is the code: [CODE] #include <stdio.h> #include <conio.h> #include <iostream> using namespace std; …

Member Avatar for n4j
0
309
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
694
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
144
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

The End.