15,550 Topics

Member Avatar for
Member Avatar for alksja

#include "stdafx.h" #include <stdio.h> #include<stdlib.h> #include<iostream> typedef struct Sale { int clientNumber[4]; char Item[45]; char PartNum[12]; int UniCost[11]; char DayOfMonth[20]; }; Sale rSale[197]; typedef struct Data { int clientNumber[4]; char Company[34]; char ABN[14]; char StreetName[36]; char Suburb[24]; char State[11]; char PostCode[5]; char Phone[15]; }; Data rData[10]; int _tmain(int argc, _TCHAR* …

Member Avatar for Ancient Dragon
0
183
Member Avatar for theUnNown1

Hi folks. I'm new to the board and I sincerely apologize if this has been posted time and again. I did search but couldn't find an answer. I am starting to program for the Symbian OS (never done it before) and have Visual Studio 2005 at my disposal. I've read …

Member Avatar for ~s.o.s~
0
120
Member Avatar for kimw

hi i have a function that opens a file and store the data into a matrix [CODE]void openfile(vector<vector<string> >& data, string path) { ifstream inFile; inFile.open(path); ....[/CODE] this does not work but it works when i eliminate the path as input [CODE]void openfile(vector<vector<string> >& data) { ifstream inFile; inFile.open("C:\file.csv"); ....[/CODE] …

Member Avatar for kimw
1
210
Member Avatar for rxgmoral

about ComboBox problem <<<<<<<Dialog.h>>>>>>>> public: CComboBox Cbx; struct Data { LPCTSTR lpszName; LPCTSTR lpszValue; int ID; }; <<<<<<<Dialog.Cpp>>>>>>> Data d; d.lpszName=_T("Name"); d.lpszValue=_T("Value"); d.ID=1; Cbx.InsertString(0,d.lpszName); Cbx.SetItemDataPtr(0,(void *)d); how to struct data append to ComboBox Control,thank:)

Member Avatar for Ancient Dragon
1
121
Member Avatar for vijaiendran

Can I know something about Sequential Search?? Answers within 24 Hours PlZ..

Member Avatar for Micko
0
61
Member Avatar for vijaiendran

Please provide me some sample programs that illustrates sorting techniques and about Sequential Search also..

Member Avatar for Micko
0
84
Member Avatar for Little E

I have a homework assignment to write a program about mileage. I've been able to get it to work, well except the average doesn't calculate correctly and I haven't been able to verifiy the users input. I'm using Visual C as my compiler. Can someone help me with checking the …

Member Avatar for Little E
1
174
Member Avatar for Iqbal_h_a

When I compiled the follwing code snippet, it compiled without any error. My question is if it is allowed to declare [I]char[/I] fields inside a structure, then how can I store character string in that variable(we can not use functoins like strcpy:-| ). OR Is it not allowed to declare …

Member Avatar for Salem
0
212
Member Avatar for compshooter

I get the following error on the first line of my array... " syntax error before `}' token " My eyes are about to fall out of my skull. Can someone take a look for me, everything seems to be fine, but maybe I'm blind. Here is the code in …

Member Avatar for compshooter
0
1K
Member Avatar for rati

[B]i want to find out small projects to work upon so as to improve my grip over c, can someone tell me some sites having projects in c:confused: [/B]

Member Avatar for rati
1
114
Member Avatar for anoop207

hello i want a programming concept in c in which it should take a query of sql and regarding table and then give the output as a resulting instance corresponding to query

Member Avatar for ~s.o.s~
1
78
Member Avatar for Fabii23

#include <stdio.h> #include <string.h> char* string(char *str); int main() { printf("%s\n ",string(" in this method ")); getchar(); return 0; } char *string(char *str4) { char str[25] = "How"; char str2[25] = " do I "; char str3[25] = " return a string"; strcat(str,str2); //append str2 to str and return str …

Member Avatar for WaltP
0
7K
Member Avatar for ankit_rastogi82

I made a Cpp application wihich links with shared objects. But when I runs the application, it crashes surprisingly before entering into the main() control block. After trying with gdb I came to know it is crashing while reading symbols from a library. GDB says something like Reading symbols from …

Member Avatar for WaltP
1
74
Member Avatar for linq

look at "dc.SelectObject(&pen)" and "dc.SelectObject (&brush)",here no matter I use "&" or not it results the same. why is that? [code] void CMainWindow::OnPaint () { CPaintDC dc (this); CBrush brush (RGB (255, 0, 0)); CPen pen (PS_NULL, 0, (RGB (0, 0, 0))); dc.SelectObject(&pen); dc.SelectObject (&brush); dc.Ellipse (0, 0, 200, 100); …

Member Avatar for Ancient Dragon
1
87
Member Avatar for linq

the following code is from the examples on the book CPen pen (PS_SOLID, 0, RGB (192, 192, 192)); CPen* pOldPen = dc.SelectObject (&pen); //do some drawing staff here dc.SelectObject (pOldPen); I know once I create a pen, I can do some drawing staff, but why should I add "CPen* pOldPen …

Member Avatar for Ancient Dragon
1
117
Member Avatar for rati

hi can anyone tell me please what is segmented error , i have made a program in c on linux and when i am running it after compiling , after a few inputs it shows segmwntwd erroe. what is this??:?:

Member Avatar for rati
2
89
Member Avatar for saravana_ssk

Hi, I have a basic doubt about C compiler option. I have 10 functions in my environment and I want a particular function to go into a new section which will be defined in a file where the function is defined. My question is: Can we define a seperate section …

Member Avatar for Salem
0
98
Member Avatar for Deepak Ram

Can anyone guide me as to how to implement a routine(in C) similar to getpid() in C.

Member Avatar for Ancient Dragon
1
49
Member Avatar for lilprogrammer

Hi, I am trying to convert a string length to a char and store it in an array. For some reason, even though its not giving me any error, when I try to print the array out, the place where I store the strlen is blank. Here's my code: [code] …

Member Avatar for andor
1
394
Member Avatar for champos

Hi, I have a question which i have no idea how to do manage. I need to convert a string in the format like "1 234 567" so i can do some calculations on the indvidual numbers. What is the best way to do this? Thanks

Member Avatar for ~s.o.s~
0
2K
Member Avatar for hariza

Hi Guys, I know this will be easy for anyone here and it might take 2 minutes to right the code. I wonder if someone can help me to right a loop using strtok() to be able to extract the words form a string like "various systems analyze the model …

Member Avatar for WolfPack
1
1K
Member Avatar for VinceColeman

I have to use a variable of type double to store and manipulate a value for an amount of years. This means I have to ensure that the data input by the user is an integer. The program will accept a non-integer value, but I want it to continue reprompting …

Member Avatar for FC Jamison
1
183
Member Avatar for seeppms

I am using filepointer in C. when I compile the code and run it for the first time the filepointer works fine and logs are written into log files. But during next hits there is an inconsistency in logs getting written. sometimes getting written and someother times not written. But …

Member Avatar for WaltP
1
137
Member Avatar for bhushanm

hi, in my code i am creating a tree, which have a 20 levels and and each level we have 10 nodes. i.e every node can have a 10 children. for them i am allocating memory for each node. each node is stracuture which occupies the memmory around 40 bytes. …

Member Avatar for jim mcnamara
1
162
Member Avatar for Garadan5567

Is it possible to somehow reprogram a Coke/Water/Pepsi w/e machine to dispense drinks at a lower cost or just plain out give them to you? Just by like pushing some selections on the panel?? I saw it on the news someone did it so an ATM machine gave out double …

Member Avatar for Salem
-1
97
Member Avatar for pradeepmisra

Hi guys i m new for Symbian series 60, I want to know the how to write the code to listen to a particular folder, so that if any changes happens to that folder then the application should popup a message box.

Member Avatar for Salem
1
45
Member Avatar for beginerprograme

this is a program that i have to write. followed by the code i already written. Design Specification You are to write a program called “StockAnalyser”. Your program will read a text file that contains historical price of a stock. The program will allow users to query the stock price …

Member Avatar for ~s.o.s~
1
128
Member Avatar for pradeepmisra

Hi guys i m new for Symbian series 60, I want to know the how to write the code to listen to a particular folder, so that if any changes happens to that folder then the application should popup a message box.

Member Avatar for andor
0
207
Member Avatar for Iqbal_h_a

I have a doubt on function returning a value. Consider the following program snippet. [code] int add(int a,int b) { int c=a+b; return; } int main() { int a=10,b=20; printf("%d %d %d",a,b,add(a,b)); return(0); } [/code] The above program gives the output as 10 20 30 But the function is not …

Member Avatar for Iqbal_h_a
0
117
Member Avatar for hariza

Hi Guys, Just wondering I'm newbie writing C programs and I don't expect to get the entire code here but I was allocated a task/assigment to create a C program that emulates a search engine so I was given a bunch of text files that contains HTML data and I …

Member Avatar for hariza
1
90

The End.