49,761 Topics
| |
I'm missing some key basic concepts here that I thought I understood with functions, pass by value, pass by reference. I tried deleting most of my parameters, to no avail, I took out my multiple returns, and fooled around with pass by reference.....I keep getting an address for my min_payment … | |
Let's say I'm sure that one of my base classes will never be instantiated, so I decide to make it abstract. But at the same time all of its functions have definitions because they're common to all derived classes (e.g. Physics() will be the same regardless). So I know that … | |
Is there a simple way for writing ActiveX components with minGW ? (ie without using activeX or ATL) ? I have to write an activeX but a don't want a buy a visual studio licence just for this <:) | |
This first function works, but I have to give the user a monthly payment of either "The minimum payment is the total amount due if that is 10 or less; otherwise, it is 10 or 10% of the total amount owed, whichever is larger." My rate_maker function doesn't pass the … | |
hey all i want to write a program to generate a random number from 0 to 100 but i don't know how to make the number be between 0 and 100 only another thing that when i write the following code the computer always choose the same random number which … | |
Hey guys Im writing a app to upload files to my webserver so when i save a file locally it will upload when i open the app. Ive searched the internet for uploading libraries but none of them seem to work can someone shed a little light on this for … | |
Hi I use the Mozilla Firefox web browser and I keep getting pop-ups that open in IE(Internet Explorer) I want to write a program that hides in the background and closes iexplorer.exe whenever the process tries to run. Is this possible, and if so can someone help me because I … | |
Hi i want to use create file to get a handle on my USB device so that i can stream from it. However i am having problems. To me i appear to have the syntax correct but i get errors returned in the form of "Undefinded symbol HANDLE" "statement is … | |
Hi, I've recently started learning C++ using 'C++ Demystified' and I'm trying to make this function work. I've done the pointers chapter and I saw a little function that uses <cctype>, and I'm trying to get it to work. Heres the code: [CODE=c++]#include <iostream> #include <cctype> using namespace std; bool … | |
iam trying to write a C++ program for the MAC and IP addresses,,,but i need help on what exactly the program will do regarding those two addresses..if any body has a code which can help. thanks | |
I can delete shapes as it's very simple, but deleting shapes that belong to a certain parent I cannot do. For example, deleting all TShape elements that share the parent "group". I'm unsure of how to do this, can anyone lead me in the right direction? or tell me its … | |
Hi, There is a coldfusion webservice that I want to call in C# and/or C++. Is anybody know how to do that? Because I can call my commun web service I created manually in asp but not the one we fornished me in coldfusion. thanks | |
hi I just want 2 know how you can display the first word from a list of words from a text file you have to see that word then it dissapears and you have to type that word than you go to the second word, it shows the word after … | |
I am very new to C++ and am wondering what the difference between the two bits of code below is,in terms of what it's really doing and if I should be using one, rather than the other. They both compile fine with no error messages, and have seen examples of … | |
hello , I want to know what is the difference between passing by value and reference , and if you can put an example with simple out put . | |
PLEASE GIVE ME ANY [B]C++ PROJECT FOR CLASS 11[/B], WHICH [B]SHOULD INCLUDE[/B] IOSTREAM, CONIO, STDIO, STRING, PROCESS, STDLIB. GRAFICS ARE [B]NOT ALLOWED [/B]IN THE PROJECT. IT'S URGENT PLEASE SEND ME AT [email]email removed[/email] OR POST HERE. PLESAE GIVE ME !! I WILL BE WAITING... | |
I'm hoping to create a program that allows a user to enter several points, their coordinates and their masses and then calculates, over a period of time, each points' new coordinates due to gravity. I've started a code to calculate position, and I'm trying to understand why DEV C++ keeps … | |
I cant get sleep(5) to work is there a special include i have to load? | |
I am trying to write a program that goes system("dir"); the copies the results onto a text file. However I dont know how to get the results of system("dir"); to the text file. I am very new to c++ so any help would be appreciated. | |
Hello everyone. Happy New Year. I've been going over last semester's book and have found that I've already allowed the basics to run away! We ended with classes, so I've gone back to just doing exercises with basic functions and I keep getting a linker on this one.: Takes input … | |
Hi again, Is it possible when throwing a custom exception to pause the program instead of just exiting? I have a throw customexception("error msg") in my main and I want to print the error msg and then press return to exit or something like that. Thanks | |
i need borlandc++ software .can any one help me please i need it for free | |
Hi, i am trying to copy raw data from one volume to some destination. for that i used CreateFile() Win32API,ReadFile and WriteFile() API's. But it might be inconsistent.I want to copy consistent data.So i wanted to use Volume shadow copy service.With that i created a [B]Snapshot[/B] and exposed it as … | |
in the following code, getch() is executed before the file is displayed.! whats wrong? how can i correct this? [CODE='c++'] void ReadFile() { char fname[13],ch; cout<<"Enter filename : "; cin>>fname; strcat(fname,".mth"); temp.open(fname,ios::in|ios::nocreate); if(!temp) { cout<<"File does not exist!!!"; getch(); return; } temp.get(ch); while(!temp.eof()) { cout.put(ch); temp.get(ch); } temp.close(); getch(); } … | |
how can i solve this 2 problems?!can you please help me?! Another matrix algebra operation is determining the matrix which is the product of two matrices. This is more challenging extension of the previous problem. The rule governing matrix multiplication is that two can matrices can be multiplied if the … | |
Hi I'm making a menu in C++ for a sudoku puzzle solver program I've already wrote using switch setence. I've wrote that code: [CODE] #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<iostream.h> int opcio1(); int opcio2(); int opcio3(); void main(){ char sel; cout <<"Sudoku\n\n\n"<<endl; cout <<"1. How to\n\n"<<endl; cout <<"2. Sudoku generator\n\n"<<endl; cout <<"3. … | |
I am somewhat new to the c++, so you've been warned. Yesterday I decided I wanted to create a program that displayed a Go board and allowed you make moves. Fairly simple task, didn't take me that long but, I feel that the code could be a lot shorter and … | |
I am having a problem sorting my numbers after my binary search. Can you tell me what is wrong with my code? [code] #include <iostream> #include <cstdlib> using namespace std; void pick_three(int p3arr[]); void pick_four(int p4arr[]); void lotto(int lottoarr[]); void selection_sort(int a[], int size); int lottobsearch(int a[], int size); int … | |
[code=c++] { char op; cout << "enter test "; cin >> op; if(op == 'test') cout << "test sucessful\n"; else cout << "w00t\n"; system("pause"); } [/code] Right now i can type toggle and the program will display test succesful because toggle starts with t i need it so like if … | |
Hi all, This question partially related to one of my old question. Reading the time zone information. Now I'm try to do it in this way. User enter the time offset. Using that value search the registry and find the time zone name. Where I'm stuck is how to search … |
The End.