19,876 Topics

Member Avatar for
Member Avatar for kv79

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 .

Member Avatar for Belrog
0
102
Member Avatar for achillez

[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 …

Member Avatar for Belrog
0
143
Member Avatar for Ajuddy

/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);"); …

Member Avatar for WaltP
0
113
Member Avatar for francisprite

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 …

Member Avatar for WaltP
0
100
Member Avatar for Maelstrom80

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 …

Member Avatar for Ancient Dragon
0
129
Member Avatar for hallinan

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 …

Member Avatar for hallinan
0
535
Member Avatar for vze2zv5v

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.

Member Avatar for Narue
0
199
Member Avatar for LisaLLL

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. …

Member Avatar for Agni
0
69
Member Avatar for AshwinCareem

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.

Member Avatar for Nick Evan
0
156
Member Avatar for mikeandike22

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 …

Member Avatar for Ancient Dragon
0
211
Member Avatar for s_mostafa_h

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 …

0
70
Member Avatar for wollacott

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 …

Member Avatar for Duoas
0
99
Member Avatar for Lovemachine1025

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

Member Avatar for WaltP
0
104
Member Avatar for tamereth

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 …

Member Avatar for tamereth
0
178
Member Avatar for HLA91

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 …

Member Avatar for Aia
0
283
Member Avatar for kxh29

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 …

Member Avatar for Aia
0
1K
Member Avatar for CompSec

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 …

Member Avatar for zhelih
0
77
Member Avatar for kamathmahendra

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 …

Member Avatar for Aia
0
221
Member Avatar for majestic0110

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

Member Avatar for majestic0110
0
74
Member Avatar for jan1024188

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?

Member Avatar for Aia
0
129
Member Avatar for shaikh_mshariq

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.

Member Avatar for shaikh_mshariq
0
104
Member Avatar for gallantmon1

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 …

Member Avatar for gallantmon1
0
542
Member Avatar for prakash.kudreka

Hello, Can anyone provide me the optimized and with low complexity program to remove the repeated elements in an single linked list program?

Member Avatar for Salem
0
92
Member Avatar for Villanmac

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, …

Member Avatar for twomers
0
107
Member Avatar for mauro21pl

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... …

Member Avatar for WaltP
0
93
Member Avatar for kv79

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 …

Member Avatar for Ancient Dragon
0
86
Member Avatar for rite2bobby

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.

Member Avatar for JRM
0
121
Member Avatar for Tom Tolleson

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). …

Member Avatar for Narue
0
87
Member Avatar for Tom Tolleson

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 …

Member Avatar for Narue
0
97
Member Avatar for nnobakht

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 …

Member Avatar for Salem
0
93
Member Avatar for ankita_ribose

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 …

0
61
Member Avatar for paurik

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 …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for joomy

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 …

Member Avatar for Ancient Dragon
0
39
Member Avatar for missileh

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 …

Member Avatar for Ancient Dragon
0
127
Member Avatar for sharath61

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 …

Member Avatar for ujwaliyer
0
100
Member Avatar for joomy

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...

Member Avatar for Narue
0
92
Member Avatar for rmd

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 …

Member Avatar for Salem
0
110
Member Avatar for joomy

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.

Member Avatar for Narue
0
107
Member Avatar for smiles

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 …

Member Avatar for smiles
0
100
Member Avatar for x11

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 …

Member Avatar for x11
0
103
Member Avatar for kv79

[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}; …

Member Avatar for Paul.Esson
0
77
Member Avatar for kmaria

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.

Member Avatar for Ancient Dragon
0
105
Member Avatar for zeiken
Member Avatar for Ancient Dragon
0
112
Member Avatar for toboto

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 …

Member Avatar for Nick Evan
0
153
Member Avatar for bobei89

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 …

Member Avatar for bobei89
0
154
Member Avatar for jimJohnson

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 …

Member Avatar for brk235
0
83
Member Avatar for Matt You

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 …

Member Avatar for Matt You
0
504
Member Avatar for manojkumar2004

Hi all, any idea how to call a C# method from a java class using sockets(need to access remote methods)??

Member Avatar for jwenting
0
92
Member Avatar for C++masterinneed

[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 …

Member Avatar for Ancient Dragon
0
102
Member Avatar for iamthwee

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?

Member Avatar for iamthwee
0
328

The End.