49,761 Topics
| |
please can anyone tell me that i want to create a rectangular spiral in c++. (I use borland c++) u can show the picture | |
plz help and yes submit a direct link if u can and thx for advance plz hurry up i have assignment next week i have to finish it lol | |
Do i need to declare private class member functions in header files? or just the public functions are enough? | |
I was wondering if it was possible to call a random image in c++. I'm using Dev C++. [code=cplusplus] #include <time.h> #include <stddef.h> #include <iostream> #include <string> #include <ctime> #include <cstdlib> using namespace std; const string password("password"); int main() { string x; cout << "Type the password to gain access … | |
Sorry,does anyone know how to play a video file in visual c++ window form application?I need to play a video file in it..but have no idea about hw to do it..Thanks. | |
This is for a class. Two of the files are provided, and I need to write the third. I'm having trouble with a constructor in a class. The constructor is called with 'Logbook testLog(month,year)' and it saves the month and year correctly. The daysInMonth function works fine. My problem is … | |
is there have a way the stack's initial size is 0, it should still be possible to push values onto the stack. Here is my code: [code=cplusplus] class IntStack { int *p; int top; int maxlen; public: IntStack(); IntStack(int); ~IntStack(); void push(int); int pop(); void push (int a[], int array_size); … | |
Hi i got an problem i need to read from an text file that i got from an excel file at start. so i want each block in the excel file to have one space at the array i saved it so it got seperated by ; example: [code] 4 … | |
I'm trying to get each line of text of a file split into words and then put into an array I found an exmaple oc cpluscplus.com and their example works but when i try to edit to make changes to read the line of text from a file i get … | |
after compiling my prog i ran it with the command time [CODE]time ./a.out[/CODE] and it gave me this output [CODE] real 0m0.844s user 0m0.172s sys 0m0.596s[/CODE] what does this output mean ? | |
I would expect this to ouput the 5 doubles, but instead I get the output below. [code] vector<double> a(5); a.push_back(1.2); a.push_back(1.3); a.push_back(1.4); a.push_back(1.5); a.push_back(1.6); vector<double>::iterator i; i = a.begin(); while( i != a.end() ) { cout << *i << endl; i++; } [/code] [code] 0 0 0 0 0 1.2 … | |
Hi peeps i've got an problem with space and tabs in a text file. i've build an app that reads a file and creates an array out of every line. this works just fine but then I noticed that the array is cut of after every space and/or tabular. it … | |
Hi Guys, I'm looking for this program that i can type in about 10 letters and 10 numbers and it will generate for me all the sequences that exist in those numbers, is there such program? | |
Hey, I have a template xml file that i am passing a pointer to into a function. In that function i need to read and write into the template and pass it as the output file. What is the best way to go about reading and writing in the template? … | |
Hey Why does the following code comply in Dev-C++ and it DOESNT in MS VS 6.0? [code=C] #include <ctype.h> #include <errno.h> #include <limits.h> #include <float.h> #include <locale.h> #include <math.h> #include <setjmp.h> #include <signal.h> #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> void main() { int num; … | |
Hi frnds, when i compile VC++ project on 32 bit machine then it wont work on 64 bit machine...can we compile the same code so that it will work on 32/64 bit machine?? someone told me abt compiler option..but i dont know abt cmd...if u know something, then plz share … | |
Hello! Can somebody help me? I'm reading C++ for Business Programming and there is a exercise asking for a program able to write the folowing: X XXX XXXXX XXXXXXX XXXXXXXXX XXXXXXXXXXX XXX Using nested loops someone can solve this? | |
This is my coursework. It is test a web server written in C++ code. It must be concurrent server using Posix threads. I have got skeleton server programe already given to me (Everyone gets that). That works perfectly. I am using linux to test and write the code. I need … | |
Plz explain the advantage of using inner classes? | |
Hello I was making a program called englishweight and it has three main components englishweight.h which is a class declaration, englishweight_def.cpp which defines the public member fucntions, and EW_driver which uses the class to calculate what to do with the englishweight and preforms very basic operations. My program works WITHOUT … | |
[CODE=C++]/************************************************* Student: xxxxx ID number: xxxxx Instructor: Dr. Julstrom Class: CSCI 301 Project 1 *************************************************/ #include <iostream> #include <cmath> #include <cctype> using namespace std; const int SIZE = 61; int getinput(char []); void compare(char [], char [], int, int); /************************************************* The purpose of this program is to have a user … | |
QUESTION : 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest number that is evenly divisible by all of the numbers from 1 to 20? While trying to solve this problem, i came up … | |
[code=cplusplus] #include<iostream.h> #include<conio.h> using namespace std; class Array { private: int* ptr; int size; public: Array() :ptr(0), size(0) { } Array (int s) : size(s) { ptr= new int[s]; } Array(Array&); ~Array() { delete[] ptr;} int& operator [] (int j) { return *(ptr+j); } Array& operator = (Array&); }; // … | |
is there any disadvantages of objects as class members. If yu know plz share with me | |
i am using an two dimensional arrays... and i inputed five names on it.. anyone can help me on how to output the five names?? i dont need the whole program.. i just need the code... thnx... ^_^ | |
HI friends; I am in a trouble with circular array based queues. Please help me. I want to know how to attach element in to a circular array. | |
Write my own string class is my assignment and there have some problems i can't figure out why? here is my code: [ICODE]//this is one kind of constructor--this one i couldn't change; String::String(char ch, size_t count /* = 1 */) { memset(m_buffer,ch,count); m_length=count; }[/ICODE] [ICODE]//this is overload operator String &String::operator … | |
I recently downloaded Microsoft Visual C++ 2008 but I am disappointed that I cannot program using IOstream. I wondered I there was a way to install an IOstream library or is there a better compiler that allows me to program in IOstream?? | |
I'm working on this program for a new professor and he wants us to write out what are program is going to do before we work on it. So, I've been thinking about the program and I think I'm making it more complicated. Basically, I'm going to be given permutations … | |
Hi, Im having some trouble with the function and I hope some one can help. The function is supposed to go through an class array and loop for an empty spot. If it finds one its copies data to the data members. Otherwise it creates a temporary array and copies … |
The End.