49,761 Topics
| |
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 … | |
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 … | |
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++] … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 | |
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 … | |
[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] | |
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 … | |
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( … | |
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] | |
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 … | |
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 =) | |
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 | |
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 … | |
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 … | |
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 … | |
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. … | |
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. | |
I am fairly new to c++. What is the diffrence between ATL, CLR, or MFC and for what are they used for. | |
How can i write comment in professional way to explain my code |
The End.