51,593 Topics

Member Avatar for
Member Avatar for kangarooblood

Been trying to make a substitution cipher decrypter, but it isn't working especially good. so I thought I might could get some help with it. [code=c++] #include <iostream> #include <time.h> #include <windows.h> #include <iomanip.h> #include <string.h> using namespace std; int main() { bool EndThisShit(false); do { string input; cin >> …

Member Avatar for kangarooblood
0
225
Member Avatar for jessejamesjjr

hey guys, i would greatly appreciate it if u wood help me out to see whats wrong with my codes.... heres my question and heres my code...... DONT 4GET TO MAKE THE TEXT FILE TO RUN IT !!!! <input.txt, output.txt> <fp_in, fp_out> 1. Write a program to average real numbers …

Member Avatar for wildgoose
0
175
Member Avatar for catchmrbharath

[CODE=CPP]#include<iostream> #include<cstdio> #include<stack> using namespace std; bool opgreater(char ,char); bool opgreater(char a ,char b) { if(a=='^') return 1; else return((a=='*' || a== '/')>=(b=='*' || b=='/')); } int main() { int n; scanf("%d",&n); while (n--) { stack<char> exp; string initial; string final=""; int i=0; bool x; char temp,temp2; getline(cin,initial,'\n'); initial+='\0'; while(initial[i]!='\0') …

Member Avatar for csurfer
0
228
Member Avatar for jcwm249

can anyone be specific with me on trying to figure out this error....I have been reaqding my book and looking all over the net trying to solve it but all i have left is these two errors!!!!!!! [code] #include <iostream> #include <string> #include <fstream> using namespace std; void add_Record(); void …

Member Avatar for Ancient Dragon
0
152
Member Avatar for jonnytabpni

Hi folks, I've got a C# client which can currently communicate with a C# server. I am considering re-writing the server in Java (to make it work better on Linux). Currently, the C# setup uses BinaryReader/Writer on top of a Network Stream on top of a Socket. Is there some …

Member Avatar for kvprajapati
0
120
Member Avatar for lotrsimp12345

i am supposed to make 2 functions called find and they are supposed to find a character or string if they are similar when i do this progam gives me weird error: "use of search ambigious" "first declared as class search here. //main [code] #include <iostream> #include <cstdlib> using namespace …

Member Avatar for smart_pc
0
226
Member Avatar for jcwm249

Ok I am trying to write up a data system on C++ so that when i enter in 1-10 i can choose what i want to do....but I keep on getting errors...and the people i already entered in at the bottom (the void add_record) i dont think it correct because …

Member Avatar for Ancient Dragon
1
242
Member Avatar for daviddoria

i.e. [code] class A { int x = 5; }; [/code] I saw a mailing list post from October 08 where a guy asked if this was going to be added. gcc 4.4 was released April 09, so I would assume it would have been added by then? I haven't …

Member Avatar for Ancient Dragon
0
163
Member Avatar for john_beginner

hello every one... i'm very new to c# in the following program (Console application prg.) i want to get "int" value of "eno","ph_no" in place of string type but i don't know how to convert string type to "int" type if i use like eno=(int)console.readLine(); then it will give error …

Member Avatar for ddanbe
0
170
Member Avatar for _dragonwolf_

Here we go again. As you can see, I have gotten much further. There are some elements however that I am unsure how to apply (i.e. bool tooMany). I haven't the slightest how to apply that. That is one snag that I have. Another, and the main one, is this: …

Member Avatar for _dragonwolf_
0
104
Member Avatar for balu naik

Haiiiiiiiiiiiii every one. i am totally new for VC++ i need a program on vc++ window application. i need to create a window, on that window i need 3 brouse button look like normal (file brouser) by using this button i need to get file path only.2 look like same …

Member Avatar for Stefano Mtangoo
0
82
Member Avatar for Poab9200

Hello all, and happy fourth. First off, I've been trying to create this little app for quite some time now and I've gotten pretty far as the code just "came" to me the other day. So I've gotten... I'd say about 80% done with this project but I am having …

0
68
Member Avatar for tag5

Good, morning every one, in this nice forum; I solved a c++ solution but i don't understand the idea of the program, so i need help to understand the steps and the use of this program. Thankyou, all.

Member Avatar for tux4life
0
126
Member Avatar for wiczerd

I am reading lines from a CSV and don't know what size it'll be, so I place read lines into a list of a structure "obs". Then I want to iterate through this list, put it into another list and then modify contents of the original list so that I …

Member Avatar for wiczerd
0
69
Member Avatar for GooeyG

I need to create two enumerations, one for the months in the year and the other for birthstones. Make a function named getBirthStone that returns the birthstone based on the month. Jan-garnet Feb-amethyst Mar-aquamarine Apr-diamond May-emerald June-pearl July-ruby Aug-peridot Sep-sapphire Oct-opal Nov-topaz Dec-turquoise Add code to call the function when …

Member Avatar for ithelp
0
161
Member Avatar for PrincessT

I'm a beginner at c++ and I have to do a game of tic tac toe and I'm having problems with asking the player to play. Please help. ***************************************************** [code]#include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; ///function prototype void inttableArray(int [][3], int ); void displayArray (int [][3], int …

Member Avatar for kangarooblood
0
186
Member Avatar for OffbeatPatriot

I've made a program in Visual Studio, it's a gui meant to control a camera and the functions of it that my problem rotate about are the functions to open and close the link to the camera. The program seems to run but when I run the program outside visual …

Member Avatar for Salem
0
163
Member Avatar for genepi

[code=c++] class C1{ public: C1(const C2& c){ //line 14 (works fine if i remove this constructor) //... } }; class C2{ public: C2(const C1& c){ //... } }; [/code] the compiler show me the following error: prova.cpp:14: error: expected ‘,’ or ‘...’ before ‘&’ token prova.cpp:14: error: ISO C++ forbids …

Member Avatar for siddhant3s
0
136
Member Avatar for fourstar

Hi there. I'm trying to write a program that will convert any number from base x to base y (bases 2-16). The user will also be able to convert hexadecimal numbers like 4BFA from base 16 to base 2.. which is 100101111111010. So far I've began to prompt the user …

Member Avatar for VernonDozier
0
121
Member Avatar for VernonDozier

I'm pulling my hair out on this one. It's been a while since I've specified a path for an ofstream. I just want a simple file called "abc.txt" in the C: folder and I want to write "abc" to it. Anyone see anything wrong? Thanks. [code] #include <fstream> using namespace …

Member Avatar for VernonDozier
0
117
Member Avatar for Quan Chi2

Hello. I hope not to annoy you with such a question. I'd like to read cell data from specific columns within a spreadsheet. I'm trying to read data within the following format (from the .xls file I'm analyzing). [code] Wavelength (nm),Absorbance (AU),Std.Dev. 190,-0.333324432373047,0.187723662173536 191,-0.184257030487061,0.169325912513228 192,0.0989446640014648,0.243154257457939 193,-0.196856021881104,0.322099862671817 194,0.0530929565429688,0.250335468281439 195,0.146337985992432,0.301110817821903 196,0.0579915046691895,0.359937145256163 197,-0.309549331665039,0.293385120791022 …

Member Avatar for Quan Chi2
0
162
Member Avatar for balu naik

haiiiiiii i need a compiler for c++ om windows i.e. not for beginars. Regard's Balu

Member Avatar for Ancient Dragon
0
162
Member Avatar for mario20055

HI Team, First of all, I'm new to C++, so my knowlege is like 2% and I would like to thank you for any help provided. Well I'm working on a project that looks like this: -- I'm creating an executalble (EXE) that will monitor and create a file into …

Member Avatar for mario20055
0
2K
Member Avatar for _dragonwolf_

This is still the readStuData(ifstream &rss, int scores[], int id[], int &count, bool &tooMany) assignment. I've hit a small snag. This piece of the code works....kind of. When the program is run it prints out the table and stuff, however, when printing the grade it doesn't do it correctly. If …

Member Avatar for _dragonwolf_
0
120
Member Avatar for thilinam

Please tell me how to create a multi diminsional array using pointer(dynamic array, set size at run time).

Member Avatar for Ancient Dragon
0
162
Member Avatar for member9
Member Avatar for Ancient Dragon
-1
112
Member Avatar for ermithun

I have written a sample code, [code=syntax] class A { public: void func1(X *ptr); }; class B { public: void func2(X **ptr); }; void A::funct1(X *ptr) { //some code here } void B::funct2(X **ptr) { //some code here X *ptr; *ptr->func1(*ptr); } main() { B Bobj; X **ptr; Bobj.funct2(**ptr); return …

Member Avatar for daviddoria
0
91
Member Avatar for balu naik

hai i am working with a small project on files. the program is compiled but when i am excuting than i am getting linker error i.e [Linker error] undefined reference to `__cpu_features_init' ld returned 1 exit status Regard's balu

Member Avatar for balu naik
0
139
Member Avatar for makymakaru

hello.. i need to create a simple web proxy where it can pass data and requests between a web client and a web server. thing is i'm very new to this kind of programming but i really want to learn. if i want to do this where do i start? …

Member Avatar for kvprajapati
0
265
Member Avatar for ermithun

I have written a sample test code as, [code=syntax] Class A { main () { A *a; B *ptr; B* A::func() const { [COLOR="Green"] B* ptr = new B; return B; [/COLOR] } } [/code] and [code=syntax] Class B { [COLOR="Green"] // some code accessing the func() in class A …

Member Avatar for ermithun
0
101
Member Avatar for muhandis

I'm having some of trouble understanding exactly how an MFC GUI works. What is the resource file for and exactly how does it relate to the classes you create (e.g. the subclass of CDialog)? Specifically, I want to add some bitmap buttons (CBitmapButton) to my dialog, so I followed the …

Member Avatar for muhandis
0
232
Member Avatar for azjherben

I have done alot of stuff with Winsock, but it's all with sockets that can olni process one at a time. Can anyone tell me how to make a non-blocking socket? [send and recive]

Member Avatar for Nick Evan
0
188
Member Avatar for _dragonwolf_

My name is James. I am currently taking a c++ class and I have a professor that is less than desirable but is the only one that is teaching the class. I am in need of assistance with some code. At least getting it started anyway. Here is the assignment: …

Member Avatar for jephthah
0
123
Member Avatar for codedhands

Hi,Am writing an application which requires storing data to a map and saving it to a file.How do i save a STL map to a file and retrieve it without the application crashing?

Member Avatar for siddhant3s
0
867
Member Avatar for joed13k1941

Anyone know how to accomplish this task on visual studio with C++? Write a program that reads a series of numbers (doubles) from the user, then prints the mean and the range. Notes: • You do not know ahead of time how many numbers will be in the list. • …

Member Avatar for collegetextbook
0
304
Member Avatar for doublebond

Hi Guys, I want to read a huge file which contains address bits, data bits and instruction bits. Please let me know how to do this. Cheers, Bond

Member Avatar for doublebond
0
459
Member Avatar for come_again

Hello everyone, I am a student working on interfacing a firewire camera with a linux machine. I am able to successfully compile my files (timer.cpp and test_timer.cpp) (they are called timers because i am testing the latency of the camera). Anyways, my problem is that I first type in: g++ …

Member Avatar for come_again
0
2K
Member Avatar for dospy

i have GHostOne advanced remote host bot last version but i have some problems edditting it. when i try to compile game.cpp (edited by me) gives me a lot of errors that i cannot solv (compile.txt file) anyway...i cannot even compile the originat cpp file cuz he gives me a …

Member Avatar for dospy
0
249
Member Avatar for goody11

I was working on an application where I have a listbox receive info. I then want the info to save to a txt file if the save button is clicked and I want it to load if the load button is clicked. I'm not sure on how to go about …

0
97
Member Avatar for sgw

I ran the following simple program [B]10 minutes ago and it worked as expected[/B], i.e. it took input "monster" which contained spaces. [B]But few minutes later[/B] I copied the program exactly the same to save as a new program, and [B]it doesn't take the spaces in "monster" input any more[/B]--if …

Member Avatar for tux4life
0
172
Member Avatar for digital-ether

I've written an Object Cache in PHP. [url]http://code.google.com/p/php-object-cache/[/url] However, it requires PHP Sockets support which is not available on a lot of PHP builds. Coming to the conclusion that all hosting that support PHP should support C, I'm going to rewrite this in C. The PHP source is here: [url]http://code.google.com/p/php-object-cache/source/browse/trunk/socket.class.php[/url] …

Member Avatar for jephthah
0
171
Member Avatar for dfswart

I am usinh C# to create a Webservice. The applications that uses he Webservice does not have the capability of formating fonts, but uses it as it gets it. I would like to chnage the color of the data I send to the Webservice to something else in certain cases …

Member Avatar for serkan sendur
0
114
Member Avatar for walter clark

For a CLR type program in Visual C++, I need to record the file date of the version of the program being run. That seems like a very normal thing to do but I can't find a solution (that works) on the web. I'm able to read the date of …

Member Avatar for walter clark
0
135
Member Avatar for makymakaru

so i finally got the server.c program to run in linux environment i was elated to start the client.c program it turned out that there would be another problem. below codes are the codes of client program i compiled it and it produced an exe but there is a warning …

Member Avatar for tux4life
0
109
Member Avatar for metzenes

I'm designing a class where there's a method that should return a different data type depending on certain circunstances. Specifically, I'm reading from a text file. If the data found are strings of characters, I'd like to return a vector of strings. On the other hand, I'd like to return …

Member Avatar for daviddoria
0
106
Member Avatar for peterbrowse

Hi I'm new to MSVC. I've entered a program into the IDE and it's compiled successfully, but no executable is generated and when I hit CTRL&F5 I get a dialogue window asking me for an executable filename, which when I try to enter it won't accept .. any thoughts Peter

Member Avatar for daviddoria
0
106
Member Avatar for salie_90

i need help please...i ask, to make a program that accepts a positive integers and displays all odd number between 1 to the integer entered (inclusive) accept the integer in main() and use a recursive function to identify and display the odd numbers. tnx..salie

Member Avatar for tux4life
0
349
Member Avatar for makymakaru

hi.. i'm very new in this programming thing but i need to make this hello world program work in windows and linux environment. thing is i encoded the program below and i used cygwin and andlinux to compile and i still get i think some errors. I'm lost.. really i …

Member Avatar for makymakaru
0
182
Member Avatar for caquake

I am trying to create a program that uses nested loops to create a box. Only one of the overloaded functions need the details of nested loops.. the other 3 should call the one that has the details.. my problem is the last function and the for nested loops. Here …

Member Avatar for shadwickman
0
406
Member Avatar for goody11

I was working on a program for spanish where I want to input the spanish and english and then the programputs the words in 2 listboxes when "ADD" is clicked. Here is my code and it does compile so you can kind of get an idea of what I want …

Member Avatar for goody11
0
211

The End.