49,761 Topics
| |
can yo pls help me the full codes of militlitary time convert to 12 hours time. | |
guys... im on a program now.. i have this prob... that when u inter a number a asterisk would be the out put in a form of a trapezoid... - i got stuck hir guys... #include<iostream> using namespace std; int main(){ int VALUE=0; cout<<"inter VALUE: "; cin>>VALUE; cin.ignore(); for(int i … | |
Hello I believe that VS 97 is a very good tool for programmers and i m looking over it 2years now.I had a copy but unfortunately the cd after some years is unreadable and i cant work.Guys. I need this tool and i can not find it on internet.If any1 … | |
Hello Everyone! This is my first actual post although I've been a member for almost a year. I'm writing a program that will create a random number between 1-1000 and ask the user to guess the random number. I also have the program display an error message to tell the … | |
I'm currently taking a introduction course to C++ and I've been able to do the first 3 assignments without much problems, but this new assignment is kicking my butt. The goal of this program was to make a simple text editing program. I simply open a saved text document and … | |
Greetings all How can i create an executable in run-time? (win32). i need a simple wrapper for different console commands. this is because i must have executable there is no way around it. so what i have come up with is passing the command that i want executed as a … | |
Hi! I am trying to design and build a plugin-system to a project of mine. The basic design is to use DLL's for each plugin. Each plugin have a special function that loads all of its functions as macros to the main engine, which has been passed as a pointer … | |
on line 53 it says menu is undeclared. but if i bought menu first then mcdonalds is undeclared. does anyone know how i can sort this out? ty [CODE] #include <iostream> using namespace std; double money = 50.00; void Mcdonalds() { cout << "Welcome\n"; cout << "How can i help … | |
Hi, I know the return value of generic search algorithm "find()" is of iterator type. Now how can I output the return value as numeric type? For example: [CODE] short myArray[4] = {2,1,3,7}; vector<short>mVec(myArray,myArray+4); vector<short>::iterator found; found = find(mVec.begin(),mVec.end(),2); [/CODE] In this code the variable found will be assigned the … | |
Hi everybody, I am having some problems with a multi-threaded application I am developing. I get segmentation faults in different places, always related to std::string, using g++4.3.2 on Ubuntu 8.10 server. Here is an example: [icode] #0 0xb7e18bb6 in memcpy () from /lib/tls/i686/cmov/libc.so.6 (gdb) up #1 0xa8eb1014 in ?? () … | |
Hi Guys, Need some help....... I want 2 read a huge file which contains binary data. Is it possible for me to make use of hash tables to read the same? if so, how can I do it. If the key value of the hash function is and integer we … | |
Hello everybody, I started c++ half a year ago, with the .cpp programs. Now i want to create a program with the Windows Application forms. But how can i multiply with textboxes? I want something like: textBox1->text = (textBox2->text * 3) But this code gives an error, i need something … | |
3. Create a class by vector with an array of” int” type as its member data (The array created dynamically)find the last largest and avg value of the vector 4. Explain the sequence of steps to be followed in performing the following operations over a binary file catching of empty … | |
| [code=c++] #define MIN_PASS_LENGTH 6 #define MAX_PASS_LENGTH 12 #define NUMBER_OF_PASSWORDS 3 #include<iostream.h> #include<stdlib.h> #include<time.h> #include<conio.h> #include<fstream.h> #include<string.h> //int i; //letters //int j; //numerals char rand_small_letter() { int nHigh = 122; int nLow = 97; int small_letter = ((rand()%(nHigh - nLow + 1)) + nLow); //values from 97 to 122 return (char)(small_letter); … |
I wrote this program back in high school 10 years ago and I found it today. I'm getting back into programming and I'd like to get it working again, some of the headers are deprecated which I tried to fix, and I was using borland c++ and now have Dev … | |
Hello~! ...again.. I got some help from you guys a while ago with this same app because it wouldn't run on winxp. It runs fine now, but my brother is still telling me he cant get it to work right...so rather than go through all the trouble of trouble shooting(he … | |
1. Create a class by name student with the necessary member data provide the facility. A. Create a list of stack B. search a student by reg.no 2. Create a class by name dates A. overload “<” operator to compare two dates B .overload “++” operator to compare date by … | |
Hi, I am now using VS2005 to write a console program. Since the [CODE]int main(int argc, char** argv) [/CODE] function is designed to accept parameters, how can I pass them to the program while debugging in step by step mode?thank u in advance. | |
I'm developing a recursive method for a class which will return a complicated data structure (a list of dictionaries which will contain lists of dictionaries as values). The data structure could be something like that: list<map <string,list<map <string,list< map<string,list<...> > > > How can I refer to this structure while … | |
how to access odbc ms access database by C from msvc++2008? | |
i am doing bscs from GCU lahore PK.i have assigned a project name as MOVIE RENTAL STORE using OOP concepts plz help me to do my project i,ll b thankful to you, umair ahmad | |
i tried to create a program that would get the sum of the squares but i couldn't get the right output. Could u help me debug? and tell which part of my codes where wrong.PLEASE! :S [code=cplusplus] #include<iostream.h> #include<conio.h> #include<math.h> int x,num; int f(int); main () { clrscr(); cout<<"Enter a … | |
Hello, I'm making an application in Visual C++ that hides/shows an application window from taskbar by clicking a button. First problem (googled it) is that I don't know how to retrieve the information about a window state (SW_HIDE,SW_SHOWNORMAL, etc.). Is it hidden, minimized, normal or maximized? I only know how … | |
right now im working on a program that reads a series of numbers (doubles) from the user, then prints the mean and the range. also: • I do not know ahead of time how many numbers will be in the list. • When ctrl-z if pressed, stop asking for user … | |
Today is the first day I have attempted Operator Overloading and am running into a few errors so any assistance would be great! The first one I'm having issues with is here: const MyString& operator=(const char* rightOp) The assignment operator should also be overloaded to allow assignment of a C-style … | |
I have been working on this program for school, it does some things right but with a few things I am struggling. [QUOTE]For this assignment you will be writing a two person chip game. You will start out with a pile of 1000 chips. Each player will have the chance … | |
[code] int number; char letter; cout << "\nEnter a number\n"; cin >> number; cout << "\nEnter a letter\n"; cin >> letter; cout << "\nThanks!"; [/code] Let's say I had 5 of these questions lined up, it seems the user could just type something like "1 a 2 3 4" on … | |
I am trying generate even fibonacii numbers less than four million, but I keep getting negative numbers at some point and eventually it converges to a positive answer, which is obviously wrong. Can anyone please help me out? #include <conio.h> #include <stdio.h> void main (void) { clrscr(); int f1=1; int … | |
How could one share a .exe that loads textures. I am using c++ and openGL. I want to share the .exe that I made using rapidshare. | |
I'm trying to start writing tests for all of my functions as per Test Driven Development. My question is, say I construct a test for "rotate vector". It would be something like this: [code] int TestRotateVector(const Vector &V) { Vector Original(1.0, 2.0); Vector Rotated = Original.Rotate(10); //rotate 10 degrees if(Rotated … |
The End.