49,761 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
154
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
117
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
363
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
116
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
232
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
97
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
92
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
89
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
318
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
49
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
130
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
129
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
78
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
212
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
160
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
157
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
59
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
105
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
471
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
229
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
161
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
100
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
138
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
151
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
108
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
111
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
82
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
130
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
199
Member Avatar for farag
Member Avatar for Dave Sinkula
0
140

The End.