49,757 Topics

Member Avatar for
Member Avatar for member9
Member Avatar for Ancient Dragon
-1
111
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
136
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
213
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
99
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
223
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
174
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
120
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
830
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
299
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
456
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
243
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
96
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 mvmalderen
0
170
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
129
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 mvmalderen
0
107
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
102
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
103
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 mvmalderen
0
347
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
179
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
396
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
206
Member Avatar for lotrsimp12345

it needs to make sure numbers aren't duplicate and are ordered. maybe change my cout statements to arrays? Thanks. This is what program is supposed to do input Q 1,2,3-5,6-7 output do problem 1,2,3,4,5,6,7 of Q. [code] #include <iostream> #include <cstdlib> #include <sstream> #include <string> using namespace std; int main() …

Member Avatar for kvprajapati
0
102
Member Avatar for mexx

I am trying to read a file which contains URLs and are 100 million in number. What I need to do is find out the different websites they are from. So, I am taking chunk of data in memory and reading it line by line. Also, I need to find …

Member Avatar for zdeepblue
0
315
Member Avatar for BretFelix

I have a program and I want to create a function that sorts multiple [B]lines[/B]. The lines are like this: lastName,firstName,gender,studentNumber I want to sort them by LINES, not individual words. Any thoughts? This is for a school project.

Member Avatar for MosaicFuneral
0
2K
Member Avatar for Democles

I am attempting to take names and weights from strings and just simply output them. For some reason it can't get out of the while loop, it just sets there waiting for the users to input names and weights. Here's my code [code=C++] #include <iostream> #include <string> #include <vector> using …

Member Avatar for VernonDozier
0
11K
Member Avatar for Furtano

Hello, i have some decimal numbers and want to put them hexadecimal in a string stream. Every Hex number should consist of 2 chars^^. I can't find a flag for it. [code]0__1__2__3__4__5__6__7__8__9__a__b__c__d__e__f__10__11__12__13__14__15__16__17__18__19__1a__1b__1c__1d__1e__1f__20__21_[/code] should be [code]00__01__02__03__04__05__06__07__08__09__0a__...[/code] [code=c++] #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <iomanip> using namespace std; int …

Member Avatar for daviddoria
0
89
Member Avatar for chria

Hi, I have two classes, Yatzy and YatzyPlayer. In YatzyPlayer.h i create vector<int> mResults and in the constructor in (YatzyPlayer.cpp) i resize it by mResults.resize(15,-2). I also have a function to return this vector declared like vector<int> getResults() and returns mResults. Then in my Yatzy file I'd like to have …

Member Avatar for chria
1
115
Member Avatar for goody11

I was going through a tutorial and had some trouble with an example program. Here's the coding I have and I can't fix it. Here is the main cpp file. [code] #include <windows.h> #include "resource.h" BOOL CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { case WM_INITDIALOG: …

Member Avatar for goody11
0
205

The End.