19,876 Topics
![]() | |
Hi , How can i get access to ( .rc)file when i already load it(already start my program). I want to make some changes from main window. Thank you for your effort of reading . | |
[code=c] #include <stdio.h> int main() { unsigned short i = 0; scanf("%u", &i); printf("%u", i); } /* int main() { unsigned short i = 0, j = 0; scanf("%u", &i); printf("%u", i); } */ [/code] hey try the above prog, cc short.c -o short then ./short enter a number, you … | |
/stores and retrieves data for two secret asgents [code=c] #include<stdio.h> void main () { struct personnel { char name [30]; int agnumb; int agent; }; struct personnel agent1; struct personnel agent2; char numstr[81]; printf("\nagent 1.)\nEnter name:"); printf("Enter agent number (3 digits): "); gets(numstr); agent1.agnumb=atoi(numstr); gets(agent2.name); printf("Enter agent number (3 digits);"); … | |
This is a piece of code that I can't seem to get right. Hehe. I've initialized the string "sym" to have the values '0' and '0'. I then call the function "cnvrt" and use "sym" in the parameter(not so sure if that's the right term) of "cnvrt". Since strings are … | |
I bet the answer to my problem is hidden somewhere in these forums as this seems to be a fairly common question, yet after literally 2 days of searching for an answer I can't find it so please bare with me. What I'm trying to do here is to read … | |
Hello I'm doing a C project for College.It is a banking system where you take in customer name address etc, Print a statement based on a month by month bases.I need to use binary files I have two versions(well Attempts) of this project the one I'm having biggest trouble with … | |
This is Paul Michael. I need help with my homework. The sooner you can help me the better. I am stuck. Please give me the solution ASAP. | |
I am trying to edit a string in c. I need to remove the last 84 characters from a string[400], insert text and re-insert the 84 character string at the end. No problem adding text or coping text in C, but I can't remember how to reorder/manipulate the text string. … | |
Hi everyone, I have a problam with data types which are using in C++. I am so confuce about int,float,double,strings,etc; And numbers of bits that related to each data type. Please anyone help me to solve my problam. | |
I need help with this program im working on where you get input from a file and the program checks if the numbers are in ascending order or not and which one is the smallest and largest number in the series..cant use arrays.. This is a my input.txt right now … | |
hi all , i want to write a simple programm for cell phone ( Mobile ) programm application , for e.g. i want to unlock or remove password when a user forgot his password for his mobile . for this in visual c++ 2005 , is there help for me … | |
Input an integer containing only 0’s and 1’s( ie. “binary” integer) and print its decimal equivalent. {hint: use the remainder and division operators to pick off the binary numbers digits one at a time from right to left. Just as in the decimal number system, in which the right most … | |
Yeah so I have to write a program that will open the disk drive of a PC and close it after 5 seconds, then open it again after 5 more seconds and I don't have a clue where to begin. Please help. :eek: Lovemachine | |
My program works properly under windows, however, it seg faults when I try to compile/run it under linux. [code=c++] #include <fstream> #include <iostream> using namespace std; int main() { char command; char infilename[80]; char outfilename[80]; char fileline[80]; char nextline[80]; char temp[80]; char temp2[80]; char * location; char sentence[250]; int loc … | |
Hi all My bro rang me up, and for some reason he asked me to make him a "simple" program that creates a folder and the user enters the name for that folder then it acopies pre set files in to that new folder. The folder will be created in … | |
Hello All! I would like to create a message box from one of my "C" applications. I have looked at prior posts and received a snippet such as this one: [code] #include windows.h MessageBox(hwnd, "You have bla bla", buffer, MB_OK);char buffer[100]; [/code] Well, the problem is that during the build … | |
Hi everyone. My friends recommended me to this site. Hopefully someone out there knows a bit about the Socket Api. ... I am trying to transfer a text file from one folder to another (all on the same machine). On the server side, I am able to put the entire … | |
Hello All, I have very basic knowledge of C and I'm trying to write a program to read a single line from an ASCII data file which has following format " 1337936.4550 6070317.1261 1427876.7852 APPROX POSITION XYZ" The problem is the position of line is not fixed. Its different in … | |
hi there, creating a structured databse (maybe in SQL) that I want accessable from a UI in c#. Is SQL the best way to go about this ? cheers | |
Hello, I want to make a message box which would show me how many points have I earned. So I have: [CODE]unsigned int points; //code points++; MessageBox(hwnd, "You have bla bla", "Total points /*HERE I WANT TO DISPLAY CONTENTS OF points VARIABLE*/, MB_OK);[/CODE] Is possible to do that? | |
I want to develop process viewer for windows in c or c++. Is there any api or any information so i can start from that. Anyone know about this please help. Thanx in advance. | |
I'm making this program and keeps telling me these errors: 35 expected `;' before ':' token 35 expected primary-expression before ':' token 35 expected `;' before ':' token 17 label `ins' used but not defined I can't seem to find what the error is, it may only be a simple … | |
Hello, Can anyone provide me the optimized and with low complexity program to remove the repeated elements in an single linked list program? | |
I have a similar program to reun although its a bit different with no histograms or anything and its on c++ Could i ask, where the vlaues in the array size 20 below come from?? int range[SIZE]={0}; int sales[20]= { 267, 359, 468, 525, 678, 710, 856, 867, 920, 1067, … | |
Hi to all. I need help. Quick and easy question. Is it possible to randomize and than delate stream of character pairs(one by one) from the input file? How can I do that? The input is a stream of character pairs that represent playing cards. For example: 2C, 3H, JH... … | |
Hi all. I need to copy file (like C:\home.exe to C:\windows) I need to do it for C or C++ compiler so i do not know the command . I was looking in the reference but i did not find anything about this. Thank you all for reading . I … | |
How do I write a C++ program that takes a string containg a full name, and outputs each part of the name seperately? const string fullname= "Horatio thadeous Hornblow" using only simple codes like length, size, adding, and subtracting. | |
Hello! I'm a web developer and have not ventured outside of the AJAX threads. However, we're trying to take on a desktop application project here at work, and I'm wondering what language to specify it to be built in. We have programmers in C++ and Java (as well as C). … | |
Hello! I'm a web developer who is taking on the creation of a desktop application as a side project. I need to hire someone to cerate the application. Knowing little, I want to make sure I'm choosing the right developer and language. All I know about Java is that it … | |
Hey guys, So im working on this project which is create a shell in C using fork() and execve() commands in POSIX. The main things is a read_command() functions and a main which just has a while loop with fork and execve with an if statement that takes out the … | |
Q:The genome of an organism is inscribed in DNA, or in some viruses RNA. The portion of the genome that codes for a protein or an RNA is referred to as a gene. Those genes that code for proteins are composed of tri-nucleotide units called codons, each coding for a … | |
Hi, is there any1 who has tried to read the SMBIOS using C. If yes, then i m having some problems in it. If possible help me out. As a starting to extracting Hardware information from SMBIOS, i hv written this code to find out the Structure Table Address. First … | |
To Narue: Iam understant what you tell me,we are not a homework service. and i want now why you speake with me like this , what iam do for you to speak like this??? i want tell you evry body sign in this web you give the solution. Thank you … | |
If i have 4 contiguos bytes (Example: 78h, F2h, 43h, A0h) in memory that refer to a 32-bit physical address. Then how can i form a 32-bit physical address out of these? After forming the physical address how can i read contiguous data (1byte at a time) from that address … | |
hi, this is sharath. i m new to .net... i m doing this with c# in window based application can u just guide me i av a pbm, i have several rows stating from A to M, i av put tht in a panel say, in 1 panel i av … | |
Hi: please why you did not tell me the solution,becaues i want this solution. pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeese...... realy i want this solution fast. Thanks so much for any one want help me. ioomy... | |
hey there, i want to write a c program to read array from a text file .....which looks something like this ex.txt 123 245 465 12 37 84 984 i want to write a program to read these values and subtract each value from the next one(like 245-123,465-245,....and so on … | |
please: I want algorithm the job of this algorithm is transfer from post fix to tree. and pre fix to tree.......... please help me quicly..... dont forget me.. from: joomy. Thanks so much. | |
Hi ! I am trying to write C program for a microcontroller (CCS compiler software), here is the part that I get error "Expect a close paren" [CODE] void Speech(char words); void main() { //INTRO OR GUIDED WORDS char hello[]="HELLO WORLD!\n"; Speech(hello,0xC0); [COLOR="Red"]//it says error here[/COLOR] } void Speech(char words,int … | |
hey my win xp sp2 comes up wiht this message arror after booting and the system shuts down on pressing any key .... Error message: the system process 'c:\win\sys32\service.exe' terminated unexpectedly with status code -1 it would be really great if some one can assist me in fixing this!! cheers … | |
[code=c] struct CircleStruct { int x ; int y ; int width ; int hight ; }; struct CircleStruct CreateCordinate = {40,0,80,40}; //this is the global declaration maybe void Draw(); void newfunction(); [/code] And can i do this ? Why? [code=c] void newfunction() { CreateCordinate = {40 ,40 ,40 ,40}; … | |
i have a window with 2 edit boxes. i want when i put value to the first edit box to start the counter and when i click on the second edit box to stop the timer. thank you and sorry for my english. | |
| |
please somebody run this program i have problem with #include <graphics.h> [code=c] #include <stdio.h> #include <math.h> #include <graphics.h> #include <conio.h> Void DrawFunction (int Npoint, double data[], double H) ;/* Display results */ Void MakePotential (int Npoint, double x0, double dx, double V0, double v[], double vd[]) ; /*potential*/ Void MakePacket … | |
okay, here is the code my teacher gave...but i do not understand some part... [code=c] #include <stdio.h> #include <time.h> #include <stdlib.h> void printfAll(int size, int ary[]) { int a; for(a=0; a< size; a++) { if(!(a%10)) //why a%10 and what not equal to it// printf("\n"); printf("%5d", ary[a]); } printf("\n"); } void … | |
I am new to C++ and need help with this output after the debugging.... Type of Ticket Orchestra Mezzanine Balcony Select: Number of Adults: Number of Children: This is what it is supposed to look like and I am confused on multiple issues. All i know is need to use … | |
I'm trying to make a function that can scan a char array, and finish it's business when it comes to a '\0'. so here is the for loop i came up with: [CODE]for( i=0 ; charArray[i] != '\0' ; i++ )[/CODE] But here is an example of entered data: "1234 … | |
Hi all, any idea how to call a C# method from a java class using sockets(need to access remote methods)?? | |
[code=c++] void winerys::info(winerys & wine) { ofstream outfile("page.txt"); node *temp; temp = new node; cout << "please enter date the winery went into business" << endl; cin >> temp->start; cout << "please enter the loaction of winery" << endl; cin >> temp->name; cout << "plese enter the name of winery … | |
![]() | Hi, I'm using winxp with the latest version of Dev-cpp (none of that dotnet please) and I was wondering what is the easiest way to send an email. Are there any libraries I could use? ![]() |
The End.