49,761 Topics

Member Avatar for
Member Avatar for sairus

can you help me on how to convert the numbers into words . here is my example on how to do that program but im not sure if this is a correct program.. #<iostream.h> #<conio.h> int ones,tens,hundreds main() { cout<<"ENTER NUMBER"; cin>>number; cout<<"ENTER ONES"; cin>>ONES; if(number==1); cout<<"one"; else if(number==2); cout<<"two"; …

Member Avatar for WaltP
0
1K
Member Avatar for vicious217

I am working on a project and i need to have the colume of 3 boxes but I keep getting errors when I try to compile. Can anyone help and see what I am doing wrong? Here is what I have so far: [CODE]#include <iostream> using std::cout; using std::endl; class …

Member Avatar for WaltP
0
1K
Member Avatar for nidajaffri

Write a program in C/C++/Linux to find the mean and then use that mean for further calculations. Make three threads to perform different task as follows: a) The 1st Thread will find the mean. b) The 2nd Thread will take the mean from the 1st Thread and display the numbers …

Member Avatar for nidajaffri
-1
2K
Member Avatar for IndianaRonaldo

I need a little help with algorithm for my code.Given a word "abacus" i have the code to find all its anagrams but i need to include also the words that are smaller in length than the original word. That is, I wanna be able to list ABA,AAB,ACA....ABAC,ABCS....so on. Thanking …

Member Avatar for IndianaRonaldo
0
285
Member Avatar for system analysis

write a program that reads change due to a user and writes out how many Half-rials, 100 bisas, 50 bisas, 10 bisas, 5 bisas, - One rial fits into 1693, leaving 693 bisas. - Half-Rial fits into 693 bisas, leaving 193 bisas. - 100 nbisa fits into 193 bisa, leaving …

Member Avatar for WaltP
-4
79
Member Avatar for IMJS

I am trying to utilise a development kit for software that we use at work. I think I have found a member function that would address a problem I have and I'm trying to test it. The documentation says that it is used thus: [CODE] int SDKclass::SDKclassmethod( a_data_type** a_data_array_ptr, char*** …

Member Avatar for fruitymo
0
114
Member Avatar for josh327

Hey guys I'm trying to create a tic-tac-toe program in c++. This is what I have so far. But it just produces garbage. [CODE]#include<iostream> #include<cstdlib> #include<ctime> #define frz system("PAUSE") using namespace std; //Global Variables const int length = 3; const int width = 3; //Function Prototypes void initializeboard(char [length][width], int); …

Member Avatar for VernonDozier
0
248
Member Avatar for duybk

Dear friends, do you know how to convert the following codes from C++ into C# ? Thanx for your helps Duy BK [CODE] #include <stdio.h> #include <stdlib.h> #define max 100 int isdigit(char ch) {return '0' <= ch && ch <= '9';} int isoperator(char ch) {return ch == '+' ? 1: …

Member Avatar for duybk
-1
4K
Member Avatar for sadafkhan

hi; i m student of MCS-1 i want to make a project in c++; in dat i want to make window... can any one hlp me and tell me how an i do so...?

Member Avatar for Ancient Dragon
0
82
Member Avatar for evilguyme

hi guys im having an error with my code but cant seem to figure it out. its a windows form and im just trying to make it function but the compiler gives me these errors: [code] 1>c:\\\desktop\\c++\twisttut\twisttut\Form1.h(89) : error C2059: syntax error : '{' 1>c:\\\desktop\\c++\twisttut\twisttut\Form1.h(89) : error C2334: unexpected token(s) …

Member Avatar for mike_2000_17
0
283
Member Avatar for Labdabeta

Hello, I have been attempting to create a fast class for OpenGL's Vertex Buffer Objects. I finally got all the libraries to work and now i am getting a sigseg but cant see why. Can someone find my error? (I will keep looking too) [CODE]#ifndef GLMODELS_H #define GLMODELS_H #ifndef GOODGL …

Member Avatar for mike_2000_17
0
137
Member Avatar for kainat0615

[CODE]#include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <unistd.h> void *thread(void *vargp); char **ptr; /* global */ int main() { int i; pthread_t tid; char *msgs[2] = { "Hello from Thread A", "Hello from Thread B" }; ptr = msgs;for (i = 0; i < 2; i++) pthread_create(&tid,NULL,thread,(void *)i); pthread_exit(NULL); …

Member Avatar for kainat0615
0
162
Member Avatar for treepig

I am having trouble replacing the numbers on my Tic Tac board with the X and O from my if and else if statements. I would also like to know how to make sure how to keep the X and O in place without it being replaced after every loop. …

Member Avatar for danb737
0
677
Member Avatar for bigdan182

hi Is there a way to pass a structure into a function in C++? ie if I have a structure of data, can I pass it in and use all the members without having to pass them indevidually? I basically want to pass team data into a function and that …

Member Avatar for danb737
0
158
Member Avatar for MareoRaft

error: ‘void __stderrp(MattsMatrixSpace::Vec)’ redeclared as different kind of symbol I have a function called "stderr" in my program. I'm not sure where the "__" or the "p" came from. Any idea what this error is related to? PS, the next error is: /usr/include/stdio.h:169: error: previous declaration of ‘FILE* __stderrp’

Member Avatar for Salem
0
408
Member Avatar for mrnutty

Meant mostly for windows, uses system("cls") although you can simply set USE_NON_STANDARD_CLS to false and it will use newlines to clear screen. Test it out. [code] /** * Note: Use at own risk, this is just for fun */ #include <algorithm> #include <iostream> #include <vector> #include <string> #include <windows.h> #include …

Member Avatar for mrnutty
0
152
Member Avatar for jp071

Hello, I would like to know how to read multiple files without using DIR. For example, program will search ".bin" file and create a new variable for the file. But the exception is my compiler does not know the directory (like opendir or readdir). I am doing dsp programming. I …

Member Avatar for WaltP
0
252
Member Avatar for maxzoel

Hi, First of all i am a newbie, trying to learn machine vision... I am trying to use opencv 2.3 in visual studio 2010 on windows 7 ultimate(64bit). I tried in various ways like pre-built versions, built using vs 2010 from SVN source and not even a single attempt is …

Member Avatar for maxzoel
0
361
Member Avatar for shizu

Hi All.. I using VC++ 6.0..with windows XP.. I have bmp image which I would like convert it save as jpeg format.. can anyone teach me the steps..?? Thank you.. Shizu..

Member Avatar for mrnutty
0
2K
Member Avatar for Tomi1988

Hi! I created an object (Jack the Pig) in the dynamic memory (heap). Because it is a pointer, I can erase it by delete. So I deleted Jack the Pig, but it is not deleted, because Jack->Row function still is working (writes out Rooooow). Why can Jack->Row function still work, …

Member Avatar for mrnutty
0
205
Member Avatar for wingwarp

if you have read or use [U]Learn C++ in 24hours [/U]is it a good book to learn formor object oriented Programming in c++ is that a good book to learn OBJECT oriented programing to learn graphics...

Member Avatar for tiredoy
0
446
Member Avatar for visom

Hi everybody I'm not sure where to put a question like this so forgive me if I'm in the wrong spot. I've just passed my college course C++ (had VB.net experience... if it matters) with a B. Is that knowledge enough to get a job somewhere or do I need …

Member Avatar for pseudorandom21
0
358
Member Avatar for berniefitz

Hi there, I'm having some real issues with restoring a piece of legacy software at my workplace. I have an offending line of code that I can't debug. [CODE]bFound := tblComp.Locate('CompPhone;Title;AddLine2', VarArrayof([sPhone, sTitle, sAddLine2]), [])[/CODE] When the script gets to this point sPhone, sTitle and sAddLine2 are correctly populated. When …

Member Avatar for Mikav6
0
656
Member Avatar for mrblippy

Hi everyone, Does anyone know how to tell if all elements in an array but one are the same. I know how to check if all elements are the same but this other problem has me stumped. Any ideas would be great Thanks

Member Avatar for WaltP
0
129
Member Avatar for br0wnm4n

Hi all, I am new to C++ and I am having trouble with the syntax. I am suppose to write code for this question: //Write a program in which the funtion main prompts the user for one of the six letters a, b, p, q, x, or y. The function …

Member Avatar for pseudorandom21
0
382
Member Avatar for Weird Nerd

Hey everybody, I need a way to browse your computer's files from a program without the use of a separate dialog box (I'm running in fullscreen, you see). It should start from a specified default folder and list all folders (except hidden ones) and files of a specified format in …

Member Avatar for mike_2000_17
0
117
Member Avatar for wd.hamaden

[CODE]#include<stdio.h> void main(void) void change(void); int x=4,y; y=x; { printf("\n The value of x is = %f and the value of y is = %d",x,y); change(); printf("\n The value of x is = %d and the value of y is = %d ",x,y); } void change(void) { x=x+3; } [/CODE] …

Member Avatar for WaltP
0
279
Member Avatar for chubakueno

I've been attempting to do a basic XOR encoder but I got this problem: Everytime the result of the XOR operation is 10, the app writes 0xA 0xD, and I can't avoid this. Code: [CODE] #include <iostream> #include <fstream> #include <stdio.h> using namespace std; char* readfile(char * filename,int* size){ int …

Member Avatar for chubakueno
2
174
Member Avatar for brynjar

Hi, I'm pretty new to C++ but have a lot of experience in Python. In python its pretty straight forward to make functions that both take arrays/vectors as input and return arrays/vectors. My thought here is to make a function to calculate the gravitational force between to bodies with mass …

Member Avatar for lcordero
0
227
Member Avatar for aimdharma1990

sir i created the strucutre. and i created the vector. i push the structue in the vector how to send the vector to the server . in the socket programming under windows. in c++

Member Avatar for rubberman
0
32

The End.