51,593 Topics

Member Avatar for
Member Avatar for prushik

ok, here is my problem. I am using sprintf to write a formatted string. That works fine. it looks like this:[CODE=C++] sprintf(buffer, "%f,%f,%i,%f,%f", user.x, user.y, user.dir, user.xspeed, user.yspeed);[/CODE] where user is a struct x is a float y is a float dir is a short int xspeed is a float …

Member Avatar for mitrmkar
0
157
Member Avatar for Iqbal_h_a

Hi All, I have built an application on C++. It is a multi threaded application. My application spawns 8 threads when it come up. Each thread opens one file and maps it using mmap. It is a client-server application. Each thread picks up a message from the queue and processes …

Member Avatar for Nick Evan
0
119
Member Avatar for nurulshidanoni

Dear all, I have one problem,..I want to count how many examcode and fill in the blank in the matrix below that I have done. Example is ,, for examcode 1 how many it appear. and for examcode 2 and examcode 1, how many student take both of them?? [code=C++] …

Member Avatar for nurulshidanoni
0
376
Member Avatar for sam1

hi everyone. I need few good books for beginners, trying to learn C. thanks

Member Avatar for rohoni
0
137
Member Avatar for micah1983

A bank charges $10 per month plus the following check fees for a commercial checking account: $.10 each for less than 20 checks $.08 each for 20-39 cecks $.06 each for 40-59 checks $.04 each for 60 or more checks The bank also charges an extra $15 if the balance …

Member Avatar for carnage
0
118
Member Avatar for rickykoh1983

Hi. I have a program that allows users to enter their information. After they have entered their information and clicked on submit, the program will create another exe file so that when the user opens the exe file, they will be able to see their information. How can I create …

Member Avatar for RamPrasad710
0
234
Member Avatar for thecraig

I am trying to write a file that writes to a user specified folder using ofstream. The basics of the code looks like this: [code] #include <iostream> #include <fstream> #include <conio.h> #include <stdlib.h> using namespace std; int write(int id) { ofstream myfile; myfile.open ("account/"id"/example.txt"); //this is where the error pops …

Member Avatar for thecraig
0
102
Member Avatar for Ajuddy

Help with a code in C++ of stock management program that can? Add new stock, list stock; name, buying price, current selling price. can replace stock with 1st,,2nd,,stock. this code should be able to write/read structure to the file

Member Avatar for venomlash
0
95
Member Avatar for shedii

Are C & C++ knowledge required to learn php or a person good at html, css & xml can start learning php directly?

Member Avatar for richie513
0
134
Member Avatar for Jennifer84

If you have a comboBox on a Form that you will write dates in, in this format: YYYY/MM/DD What I wonder here is this. As default I know how to load in so the comboBox will look like this: ----/--/-- Now my question is this. Is it possible when begin …

Member Avatar for Jennifer84
0
92
Member Avatar for TheBeast32

Hi, I have been making a program that searches in another process's memory for a value from the user. It works, but it's [B]very[/B] slow. I have used other searchers like TSearch that are really fast. If anyone has a way to make it faster, please help.:-/ Here's my code …

Member Avatar for TheBeast32
0
321
Member Avatar for prushik

I am using bloodshed dev-c++ ide. Win XP Media Center Edition. I am trying to learn how to use winsock, I have compiled a very simple (and very sloppy) little winsock application with the help of like 3 or 4 different tutorials the client sends a hard coded string to …

Member Avatar for prushik
0
52
Member Avatar for Jennifer84

I have edit a few items in my comboBox1 on my Form. The items in the comboBox exists of dates like this 2000/01/01 2001/01/01 So these 2 dates can be selected from the comboBox. I am doing a calculation with the selected date in the comboBox1. This works without any …

Member Avatar for Jennifer84
0
133
Member Avatar for jeffige

I just started using DevC++ (ty Ancient Dragon) to learn C/C++. I am starting with the basic Hello World! The online tutorial I am following (which seems pretty good to me, but what do I know...yet) does not express how to check my work. I remember seeing a C tutorial …

Member Avatar for Ancient Dragon
0
134
Member Avatar for farag

I'd like to write C++ program that will count the number of times each line of the code get executed can any one help me thanks in advance

Member Avatar for Ancient Dragon
0
79
Member Avatar for onemanclapping

hi, I'm beginning to learn how to program in C++ and though it is teached in my university, it seems noone cares about Linux users, so no one there can help me here (though I think the problem has nothing to do with my OS, but with the version of …

Member Avatar for onemanclapping
0
216
Member Avatar for casperguru

What would be the best possible algorithm for finding out all the combinations a given string can be rearranged. It should even consider cases for repeated characters Any other strategy than brute force would be appreciated

Member Avatar for sarehu
0
170
Member Avatar for Google Spider

Hello, What I've learnt so far is in this order: Hello world>>data types>>conditional execution>>C-style arrays>>C-style strings>>loops>>functions>>structs>>classes I'm not very good at structs and classes and haven't tried any problems, just read it from the book. I find classes kinda difficult and often forget what I read yesterday:-/ Should I move …

Member Avatar for codeaa
0
159
Member Avatar for hapiscrap

[B]-appcontroller.m build-[/B] #import "appcontroller.h" @implementation appcontroller - (IBAction)sendbeepid)sender { NSBeep(): } @end 1 error----------------" parse error ":" token" [I]seriously confused; I set up classes and instances and a connection between button and appcontroller on the menu , (am i even making sense?.....arrgh)[/I]

0
61
Member Avatar for cosmos22

Hi. How would I go about locating a file on the computer, and using it in my application. For example, say I wanted to call up a text document for a help menu to aid the user. I would also like to know how you might do this even if …

Member Avatar for vijayan121
0
109
Member Avatar for Infeligo

Hello, I'm trying to solve an ACM problem [url=http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1051]"Light, more light"[/url]. The problem is actually solved, but I can get it accepted. So browsing Internet I found a C code, which is accepted: [CODE] #include<stdio.h> #include<math.h> int main(void) { long long int n; while(scanf("%lld", &n)==1) { if(n==0) break; else if( …

Member Avatar for vijayan121
0
475
Member Avatar for dkwantee

i have the integers 100 5 5 9 in my array numbers.But when i compile this program i get 2009312941!! Please help me [CODE] int main() { int numbers[4]; int i; ifstream streamin; streamin.open("input.txt"); for(i=0;i<4;i++) {streamin >> numbers[i] ; } cout << numbers[i]; streamin.close();[/CODE]

Member Avatar for mitrmkar
0
257
Member Avatar for Jennifer84

I am trying to use a radiobutton that I have attached to a from in VC++ .NET 2008 I have Named the RadioButton "BuyRadio". From what I know a radiobutton can have to stated, either true or false, wich meen pressed or not pressed. What I am trying to do …

Member Avatar for Jennifer84
0
163
Member Avatar for Ken JS

Is there a way to particular select a point on a screen??? Eg. There is a (back) button on the program, I want to write a C/C++ program to just select on that button. Lot of help =)

Member Avatar for codeaa
0
104
Member Avatar for Squeeker

Are call by reference functions of type int or double legal when using an ifstream or ostream argument? Example: [code]int afunction(ifstream& in, int anumber) { /* Function Body */ } [/code] If this is/isn't legal please explain. Thank you for your help. -Arielle

Member Avatar for vmanes
0
141
Member Avatar for fgn89

How do I make it show text? I'm completely new to this, my dad's wanting me to make this customer display screen show text, which on paper should be easy.. It's a WD-202 model, pretty common customer display pole, I've called a friend for help and he told me to …

Member Avatar for Ancient Dragon
0
154
Member Avatar for C++masterinneed

i need help, with the collection :: collection -construcor- i dont know what to use in that function as far as intiatiating any objects or data members. there are no data members in collection - collection is implemented using binary search tree and hash table. i also need help with …

Member Avatar for Ancient Dragon
0
111
Member Avatar for jeffige

First let me say sorry to all the experts out there. I just don't know where else to turn. A friend of mine who was teaching me c, even set up borlands compiler for me on my laptop, quit the tour that I am on. My old laptop crashed I …

Member Avatar for Ancient Dragon
0
114
Member Avatar for Jennifer84

I have 2 strings like this: In these 2 cases I want to get "File1.txt" and "File2.txt" and put them to a string. I need the same method so I suppose I have to find the Last "/" in the string and then put the rest to a new string. …

Member Avatar for Jennifer84
0
87
Member Avatar for Jennifer84

Is it possible to have a comboBox set to "Readonly" as you can have for a TextBox in VC++ 2008 .NET. I have looked at every properties for the comboBox and I cant find anything like this.

Member Avatar for Jennifer84
0
132
Member Avatar for mrjoli021

I am fairly new to c++. What is the diffrence between ATL, CLR, or MFC and for what are they used for.

Member Avatar for Ancient Dragon
0
205
Member Avatar for farag
Member Avatar for Dave Sinkula
0
142
Member Avatar for kahn1

I am having some problems with solving this game. any ideas #include <iostream> [code=cplusplus] int main() { char a = ' ', b = ' ', c = ' ', d = ' ', e= ' ' , f = ' ', g = ' ', h = ' ', …

Member Avatar for JohnKnox
0
101
Member Avatar for sgw

Hi, Let's say x=12.34, y=567.89, z=6.38, and we want the output this way: _____$12.34 ____$567.89 ______$6.38 [COLOR="Red"]right-aligned[/COLOR] [COLOR="Green"]with the decimal point lined up[/COLOR] (where the ___ are [I]spaces[/I]) In other words, [U]all[/U] the numbers are right-aligned [U]and[/U] [I]immediately[/I] following "$". How to do that if you don't know what values …

Member Avatar for sgw
0
132
Member Avatar for alone2005

Hi, anyone can tell me what's wrong with my code? the only part has problem is the function overload << operator, any help is welcome. #include <iostream> using namespace std; template <typename T, int SIZE> class array { T data_[SIZE]; array (const array& other); const array& operator = (const array& …

Member Avatar for farag
0
190
Member Avatar for 31N513N

Need help writing a program that reads a series of 5 integers and determines the largest and smallest.

Member Avatar for JRM
0
111
Member Avatar for atish00

The programme you guyz helped me with for the past 3-4 weeks is done.......It was done last week but I had exams. hrez the code :) you guyz can execute and see it :P Thanx ancient dragon and nieke [code=c++] // password fuction #include<iostream.h> #include<conio.h> #include<stdio.h> #include<process.h> #include<string.h> int password() …

Member Avatar for atish00
0
149
Member Avatar for cosmos22

Hi. I would like to know about how you program a command that forces an operation. For instance, the command window might prompt the user of something that they already know, rather than bothering to hit Y and enter, it does it for them, forces the operation. Thanks

Member Avatar for Ancient Dragon
0
104
Member Avatar for mail2indar

Hello everyone, I want to develop browser plugin. How i should start. Thanks, Indar

Member Avatar for Ancient Dragon
0
42
Member Avatar for mrjoli021

I wrote a class and I want to give it to someone to use, but I dont want them to have access to the source code. My class is split into 2 files a .h and a .cpp how can I block them from seeing the cpp file only the …

Member Avatar for mitrmkar
0
114
Member Avatar for juanbuffer

Hi everybody, I'm developing a daemon in c/c++ and I'm having some trouble with shared memory. I create different processes that have to access the same memory region. Everything was OK until I decided to use a vector containing objects. I read that I have to define an allocator specifing …

Member Avatar for juanbuffer
0
660
Member Avatar for jesseb07

hello, I'm relatively new to C++ (but not to programming) so I wasn't sure how to do this in C++. My brother wrote a bash script which is used primarily to transfer files between computers using rsync which he asked me to convert to C++ so that it can be …

Member Avatar for jesseb07
0
175
Member Avatar for sgw

Hi, If I want to print several numbers, say 12.3, 24.038, 154.9181, 0.4778--anyway, just all kinds of numbers, how can I print all of them with [U]fixed number of decimals[/U], say two decimals, that is, the output will be: 12.30, 24.03, 154.91, 0.47... ? The "setprecision(...)" doesn't work because it …

Member Avatar for jesseb07
0
121
Member Avatar for gajaykrishnan

i am programming on linux platfrom and i want making a plugin for a web browser. can u tell me the basics of plugin programming on c++/ Qt in linux.? I dont have any idea of how to start making a plugin kindly guide me...

Member Avatar for mail2indar
0
201
Member Avatar for Mirtunjay

I have two lan cards in my Server in such a way that Lan Card a1 is connected to internet and holds Public IP infomration and Lan card a2 is meant for private internal network and holds internal IP information and connects to client machines in my internal network. In …

0
45
Member Avatar for rsk8332

Hi, Suppose I have a character array with the elements B,A,A. Now I have another character array with the elements A,B,B,B,A,A. How do I match the pattern B,A,A of the first character array with that of the second character array so as to produce the following output: A B B …

Member Avatar for carnage
0
93
Member Avatar for Spencicle

No matter which options you enter, it always displays the result for paper beating rock. [code=cplusplus] #include <iostream> #include <iomanip> using namespace std; int main () { /* declaring variables */ char first; char second; char paper = 'p'; char paperP = 'P'; char rock = 'r'; char rockR = …

Member Avatar for vmanes
0
95
Member Avatar for Jennifer84

I am using a progressbar in .NET to show progress for an operation. In this forloop I am reading 3 files that takes about 20 seconds. Now I have done a formula: (out / count) * 100 that will show progress. So for the first file wich will be (1 …

Member Avatar for vijayan121
0
98
Member Avatar for Moporho

Hello, I am trying to create a program that asks a user to input a integer. That integer will dispaly "*" (i.e. enter 4 diplay - ****) This is what I came up with so far to no luck! [code]#include "stdafx.h" #include <iostream> using std::cout; using std::cin; using std::endl; int …

Member Avatar for Moporho
0
101
Member Avatar for orangejuice2005

We were given a task, to familiarize ourselves with stacks and queues, to write a program to solve a maze problem. We are given text files with pre-defined values letting us know the size of the maze, the mouse's position, the cheese's position as well as the value each cell …

Member Avatar for Lerner
0
1K

The End.