49,761 Topics
| |
hi, i have the following structure in the "simple application": application_folder | |--makefile | +-headers | | | +----func.h | | +src | | | +------ func.c | +------ main.c | | and here are the contents of the files: *func.h [code=c] float hey(float a, float b); [/code] *func.c [code=c] … | |
Hi, I was wondering if anyone knew of a good 5 day C++ class in the bay area or southern california. My company is looking to send a few of us to a week long training. The only one that I found was Hands on Training. Anyone know if this … | |
Sorry if this is an obvious one, I have searched but cant finds any answers :) Im trying to create the simplest little exe file that when clicked on runs a htm page in the same directory... so im using... [CODE] int main(int argc, char *argv[]) { system("start iexplore.exe %0\..\the_index.htm"); … | |
Consider the following two cases: CCandyBox obj; str will be pointing to "Candy" May I know "Candy" is on heap or stack? If it is on heap, is the delete[] str; //delete the Candy to avoid memory leak line below necessary? [code]CCandyBox(char* str = "Candy") // Constructor { if (str … | |
:?: can anyone tell me where the error is? [code=cpp] #include<iostream.h> #include<conio.h> void main() { clrscr(); void zero_small(int &,int &); int a,b; cout<<"\n\n\n\tEnter the first no "; cin>>a; cout<< "\n\n\n\tEnter the second no "; cin>>b; zero_small(a,b); cout<<"\n\n\n\tValue of the first no is "<<a; cout<<"\n\n\n\tValue of the second no is "<<b; … | |
This is a program i made..but i wanted it to arrnge the total in decreasing order showin the highest scorer 1st....what more should i do 4 that in this program....??? [code=cplusplus] #include<iostream.h> #include<conio.h> void main() { int n; const int limit=50; int rollno[limit]; int maths[limit],english[limit],science[limit],social[limit],hindi[limit]; int Total[limit]; char Grade[limit]; int … | |
hi there, can someone help me how to write a recursive function that takes the number to the power. Thus, if the number is 2 and the power is 4, the function will return 16. I'm looking forward for anyone to help me with this my problem. I try to … | |
OK, so on my program, whenever I enter in incorrect selection (when I am actually running it), it goes back to the main loop and continually loops! what's wrong with it? here's the code: [CODE]/* Copyright: 2008 Author: Besktrap Date: 13/07/08 09:19 Description: a short buggy calculator I made */ … | |
Hi to all, I need your help/advice. I'll explain my problem: I have to write an aspx page, where the user can upload an entire directory/folder to my server. I did some research and seem that there is no build it component to upload an entire directory/folder, there is the … | |
I am wondering how one would append additional memory to the end of a pointer that already has memory allocated? For example, if I do something like this... [code=c++] int *intPtr = new int[5]; // pointer can be assigned 5 values of type int // Now I want to add … | |
Hi How can i convert code from c++ to VB ....step by step? Thank you in advance | |
Hey, I'm writing an XML parser in C++. Currently it works, but too much of what needs to be done is left up to the end user. I'm trying to figure out a way to have a clean, more encapsulated interface for the parser, but I can't seem to think … | |
| Hey, I have created a small application that has music playing when you run it. currently the mp3 file being played is external to the application. I have included the file in a resource script and is compiled into the application, but how do I get FMOD to play it. … |
Hello, I've got this kind of problem, where I want to change a word inside of a text file. apparently, I can use the char to change the character, however, it can't changes any word or sentence, so can any one help me out. much appreciated. [CODE]#include <iostream> #include <fstream> … | |
I have a .txt file and need to connect it. So in visual c++ do i need ODBC. if yes then can anyone guide me how to start with it.:-/ | |
[CODE]#include <iostream> #include <fstream.h> #include <string> #include <vector> void input(int, std::string); void output(); using std::vector; using std::ofstream; int main() { std::string filename = "file.txt"; int number; vector<int> tileList(); std::cin >> number; tileList().push_back(number); input(tileList(), filename); output(); return 0; } void input(vector<int> tileList, std::string filename) { //vector<int> tileList; this needs to be … | |
Is this two ways of instantiating class both acceptable?(My intention is to create CBox on stack instead of heap) CBox a=CBox(1); CBox b(2); Definition of CBox is as followed: [CODE]class CBox { public: int abc; CBox(int var){ abc=var; } };[/CODE] | |
Is there a command that hides the dos window while the program executes?? | |
Hey, I googled it and found TONS of pages, but most are for linux/C#/VB and I can't seem to get any C++ code for this X_X. I did a search on the forum, and couldn't find anything either... Anyway, I would like to have my program "ping" a host name … | |
hello all I wish i find a solution for my problem what i want is some information and some recommendations what i want is a C++ library that i can use to download files from web and also i want to do some GUI (Including tray icon) and please please … | |
I ran into a bug on my program that I couldn't find on my own so I decided to transfer my project from Dev C++ to Microsoft Visual Studio. In Dev I got away with [code] string sName; cin >> sName; [/code] But MVS doesn't like doing that. What is … | |
Hi friends i have one question about OOP. I have [CODE]class A { /function body here }; class B:public A { /function body here }; class C:public A { /function body here }; int main() { B b[20]; C c[40]; } [/CODE] Each object of the derived classes(B and C)has … | |
In the following code, f1 is an overloading function. In what situation will be the first called, in what situation will the second be called? #include <iostream> using namespace std; class A { public: void f1(){cout<<"f1 "<<endl;} void f1() const {cout<<"f1 "<<endl;} }; int main() { A a; a.f1(); return … | |
i need a C program which will do the above task... | |
I have read quite a few tutorials that try and explain these but they just aren't making sense. Could someone try to explain what they are and why they should be used? | |
Please help me guys.. i need all your knowledge about this program.. kindly check where's the wrong here.. i need to program a tic tac toe. ONLY user can input.. i dont have any idea.. tnx.. have a great day [code=cplusplus] #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <graphics.h> #include … | |
I am making a text game where at each situation the user may type in his/her choice on what action to do. Is there a way to make it where if someone were to type "save" or push the "s" key to have the game save or go back to … | |
Hi...I'm Zozel...I am trying to make a program and to use the cleardevice() function to clear screen...but I'm not satisfied of this function...calling it, it flashes the screen...it "blinks" my whole screen.....how could I avoid this flash?...please help!...I appreciate any answer ...:) | |
Pls.,, help me to find the error in ths program... this program should accept white space,so i use string and getline...it doesn't have error detected but it doesn't come up with the desire output. thank you in advance... [code] #include<iostream> #include<string> using namespace std; struct node { string name; node … | |
I need some simple c++ codings for the below program. A book shop maintains the inventory of books that are being sold at the shop the list includes details such as author, title and publisher and stock position. Whenever a customer wants the book, the sales person inputs the title … |
The End.