49,761 Topics

Member Avatar for
Member Avatar for guitarrick

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 …

Member Avatar for guitarrick
0
140
Member Avatar for phalaris_trip

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 …

Member Avatar for phalaris_trip
0
94
Member Avatar for CrazyDieter

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 <:)

Member Avatar for CrazyDieter
0
101
Member Avatar for guitarrick

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 …

Member Avatar for guitarrick
0
198
Member Avatar for nemoo

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 …

Member Avatar for rajatC
0
241
Member Avatar for Cyb3rAssasin

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 …

Member Avatar for Ancient Dragon
0
223
Member Avatar for Cyb3rAssasin

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 …

Member Avatar for Cyb3rAssasin
0
120
Member Avatar for tootypegs

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 …

Member Avatar for tootypegs
0
95
Member Avatar for HelloFromHell

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 …

Member Avatar for HelloFromHell
0
108
Member Avatar for nse

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

Member Avatar for CrazyDieter
0
193
Member Avatar for richasr1

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 …

Member Avatar for richasr1
0
106
Member Avatar for Bernybon

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

0
78
Member Avatar for badboy20008

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 …

Member Avatar for Ancient Dragon
0
82
Member Avatar for dh273

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 …

Member Avatar for Narue
0
100
Member Avatar for bis student

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 .

Member Avatar for twomers
0
123
Member Avatar for vipul_cool16

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...

Member Avatar for zandiago
5
1K
Member Avatar for zoner7

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 …

Member Avatar for rajatC
0
118
Member Avatar for Cyb3rAssasin
Member Avatar for Duoas
0
88
Member Avatar for np2100

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.

Member Avatar for np2100
0
75
Member Avatar for guitarrick

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 …

Member Avatar for guitarrick
0
77
Member Avatar for obscured47

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

Member Avatar for obscured47
0
150
Member Avatar for frank_hugo_1100
Member Avatar for GreenDay2001
0
89
Member Avatar for jntuceh

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 …

Member Avatar for Narue
0
103
Member Avatar for Karkaroff

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(); } …

Member Avatar for Karkaroff
0
308
Member Avatar for sweetangel_aiza

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 …

Member Avatar for Ancient Dragon
0
124
Member Avatar for Srynx

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. …

Member Avatar for CPLUSCPLUS
0
667
Member Avatar for thetechguy

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 …

Member Avatar for thetechguy
0
727
Member Avatar for blackbabydoll

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 …

Member Avatar for AlephOne
0
163
Member Avatar for Cyb3rAssasin

[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 …

Member Avatar for Cyb3rAssasin
0
61
Member Avatar for eranga262154

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 …

Member Avatar for eranga262154
0
171

The End.