49,761 Topics
| |
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 … | |
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 … | |
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 | |
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: … | |
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; … | |
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 … | |
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 = … | |
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> | |
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 … | |
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 … | |
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. … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 = … | |
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 | |
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??? | |
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 … | |
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 … | |
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, … | |
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. … | |
[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 … | |
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... | |
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 … | |
#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 … | |
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 … | |
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 … | |
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 … | |
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. |
The End.