49,761 Topics

Member Avatar for
Member Avatar for godnseeker

please can anyone tell me that i want to create a rectangular spiral in c++. (I use borland c++) u can show the picture

Member Avatar for Rashakil Fol
0
79
Member Avatar for tarekkkkk

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

Member Avatar for jbennet
0
801
Member Avatar for serkan sendur

Do i need to declare private class member functions in header files? or just the public functions are enough?

Member Avatar for serkan sendur
0
79
Member Avatar for jdm

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 …

Member Avatar for Freaky_Chris
0
191
Member Avatar for sai56

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.

Member Avatar for William Hemsworth
0
100
Member Avatar for Avaviel

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 …

Member Avatar for Avaviel
0
171
Member Avatar for shasha821110

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

Member Avatar for shasha821110
0
84
Member Avatar for Dendei

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 …

Member Avatar for Dendei
0
229
Member Avatar for AdRock

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 …

Member Avatar for Murtan
0
2K
Member Avatar for TasostGreat

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 ?

Member Avatar for Nick Evan
0
108
Member Avatar for daviddoria

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 …

Member Avatar for daviddoria
0
75
Member Avatar for Nicklorion

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 …

Member Avatar for Nicklorion
0
142
Member Avatar for Aundrey

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?

Member Avatar for Nick Evan
0
139
Member Avatar for jake88

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

Member Avatar for jake88
0
262
Member Avatar for riahc3

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

Member Avatar for riahc3
0
132
Member Avatar for nnhamane

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 …

0
59
Member Avatar for maykofs

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?

Member Avatar for yukapuka
0
139
Member Avatar for Speedy Hawk

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 …

Member Avatar for Speedy Hawk
0
128
Member Avatar for noureenjee
Member Avatar for CPPRULZ

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 …

Member Avatar for Manutebecker
0
186
Member Avatar for homeryansta

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

Member Avatar for homeryansta
0
204
Member Avatar for arun_lisieux

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 …

Member Avatar for arun_lisieux
0
493
Member Avatar for noureenjee

[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&); }; // …

Member Avatar for noureenjee
-1
141
Member Avatar for noureenjee

is there any disadvantages of objects as class members. If yu know plz share with me

0
40
Member Avatar for FrancisC07

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

Member Avatar for Agni
0
102
Member Avatar for thilinam

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.

0
56
Member Avatar for shasha821110

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 …

Member Avatar for shasha821110
0
67
Member Avatar for jairh64

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

Member Avatar for jbennet
0
28
Member Avatar for DemonGal711

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 …

Member Avatar for DemonGal711
0
120
Member Avatar for kenji

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 …

Member Avatar for StuXYZ
0
243

The End.