18,490 Topics

Member Avatar for
Member Avatar for taichou

please help me with this SUPPLY IT! Your program will have a 3x3 array. The user will input the sum of each row and each column. Then the user will input 3 values and store them anywhere, or any location or index, temporarily in the array. Your program will supply …

Member Avatar for Murtan
0
101
Member Avatar for Member #465680

Okay, so I have a menu and a linked list, but I have three problems. First of, if you select option one and enter a name it keeps prompting you to enter another and another. It won't accept any other prompt to do anything else like, for instance, exit the …

Member Avatar for Murtan
0
171
Member Avatar for nm_9218

Can anyone help us regarding the implementation of Incremental Shortest Path Heuristic (ISTH) Algorithm using C?

Member Avatar for Salem
0
118
Member Avatar for winrawr

I'm looking into learning some more languages and some better code writing techniques, but I am not sure of the languages that I should delve into. So far I know VB really well and I started learning assembly, but I don't know that past some, I guess, medium difficulty, 16 …

Member Avatar for Rashakil Fol
0
139
Member Avatar for benchCUB

hi, how can i read a text file "textfile.txt" with a structure? (in C) thanks the structure is in this form. [code=c] typedef struct list { char ID[9]; char YR[10]; char lname[14]; char fname[24]; }LIST[256]; [/code]

Member Avatar for Ancient Dragon
0
152
Member Avatar for k59smooth

On This web site is frist time i heard of C#. I am skilled in C++ and was wanting to know if C# is an advanced version of C++, kind of like C++ is an advanced version of C...

Member Avatar for jbennet
0
186
Member Avatar for brimble2010

Hi (first post :) ), I have a coursework where we have to read in 50 lines from a file (bubble.txt), sort them into length order and then print them out (its not the whole coursework, just a part). I thought that the only way of holding lines of text …

Member Avatar for brimble2010
0
169
Member Avatar for CoolAtt

hi . i have read a line from a text file & stored it in a string using fgets(). the file contains the following line: C:\Windows\ [CODE]char myline[20]; fgets(myline,20,fp);[/CODE] now i want to append '' in the string so that when i print [B]myline [/B]output is C:\\Windows\\ Any idea or …

Member Avatar for CoolAtt
0
169
Member Avatar for serkan sendur

hi, i have been wondering, after the compilation of a textual source file, it is said that it is compiled to ones and zeros, i wonder what are those ones are zeros, are they visible to eyes? for example if i open it with notepad can i display them? if …

Member Avatar for serkan sendur
0
253
Member Avatar for nitu_thakkar

this coding is about copy one existing file into other file but it can't do so throught the command line arg. what is the solution....? [code=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> void main(char *argv[]) { FILE *fp1,*fp2; char c; int i; clrscr(); fp1=fopen(argv[1],"r"); rewind(fp1); fp2=fopen(argv[2],"w"); if(fp1==NULL) { printf("Source File is Not Exist"); …

Member Avatar for Ancient Dragon
-1
145
Member Avatar for Member #465680

Hi, Okay, so what I am actually trying to do is open a file, convert any lowercase text to uppercase, and then print it on screen. I thought it best to first just begin by trying to open a file and display the contents on screen. I figured that once …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Member #465680

Hi, I need to create a menu of items that the user can select from. These choices will either create a linked list, add an item to the linked list, modify a current entry in the list, delete an entry, display the list, or exit the program. I have looked …

Member Avatar for Aia
0
212
Member Avatar for Member #465680

I was working on some programs and now, no matter which one I run, I get an error like this: Unhandled exception at 0x00411be0 in program.exe: 0xC0000005: Access violation writing location 0x00130000. Any ideas what is causing this or how I can fix it?

Member Avatar for MosaicFuneral
0
259
Member Avatar for venomxxl

Hello, I'm quite new here, but there's a problem that needs solution. I think the title says exactly what I want to do. I need to use C for a reason I don't think is this important to mention. I tried searching Google, and found the same solution on most …

Member Avatar for venomxxl
0
411
Member Avatar for namita.mundada

I have created one binary file in c that save btree. File is having huge size around 2GB. If some one changes this attribute to read only, then b tree is updated incorrectly. And the behavior of code changes. I need to write a code, so that no can change …

Member Avatar for namita.mundada
0
140
Member Avatar for nitu_thakkar

hello, i wann know that how 'compiler control directives' preprocessor is actually worked ......? in 'C' language

Member Avatar for ddanbe
0
156
Member Avatar for dmanw100

I tried Googling this to no avail: how can I request the used space/ total size of the hard drive? In this case it is safe to assume that the machine will be running Windows.

Member Avatar for dmanw100
0
102
Member Avatar for Member #465680

Hi, I am trying to run this program, but I am getting two error messages that prevent it from running. I don't really understand what the problem is or how to fix it. Could someone please help? Here are the errors: "error C2664: 'sprintf' : cannot convert parameter 2 from …

Member Avatar for Aia
0
361
Member Avatar for Roko1

Hi. I have a problem with my SDI application. When I start Telnet, I can connect or disconnect to my server app with no problems, but when I send something to it.....nothing happens. I have an OnRecieve() function in my custom socket class so I can't understand where my mistake …

0
48
Member Avatar for alunsandro

Hi Everyone..!!:* I'm a newcomer here. And looks like need your help here. I 've just make a program tha simulates The HRN CPU Scheduler.I have no problem in compiling it. But, when I run it, It won't work. :S I don't know which Part of my pseudocode that was …

Member Avatar for Ancient Dragon
0
108
Member Avatar for ColdServed

Hello everybody, I am ColdServed (Real name is Roy Drissen), a Dutch male living in the Netherlands. My hobby is robotics and programming. The reason for joining is to refresh my knowlegde of C programming. I got my thesis in software engineering 15 years ago. Back then I made programs …

0
19
Member Avatar for nrupparikh
Member Avatar for dinklebaga

Hi All, I am researching writing a program in C that will allow me to control the read/write on a FDD and then to move onto HDD's. I have been given some code that will allow me to do this by one of my lecturers but uses the DOS.H library …

Member Avatar for dinklebaga
0
177
Member Avatar for snehak

i am a new member of this site.m a post graduate student of computer science and need help in my projects.if anybody of you can please help me suggest a few project topics,please do.there are no bars on the scope but i should be able to complete it in one …

0
13
Member Avatar for blurrycustoms

Hey guys, First post here, but I have some interesting projects that I would appreciate some help with. I'm posting this in the C section, just because I have had a little experience with C. I know there is a ton of info on the subject around the web, but …

Member Avatar for ARUN(MCA)
0
165
Member Avatar for rangalo

Hi, I want to change the color of my button during runtime.. i am writing the following code inthe OnCtlColor of my dialog box [CODE]HBRUSH CPIVSyncDlg::OnCtlColor(CDC *pdc,CWnd *pwnd,UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pdc,pwnd,nCtlColor); switch(nCtlColor) { case CTLCOLOR_BTN: if(pwnd->GetDlgCtrlID() == IDC_STARTSTOP) pdc->SetBkColor(RGB(255,0,0)); return (HBRUSH)m_btbrush.GetSafeHandle(); case CTLCOLOR_DLG: pdc->SetBkColor(RGB(255,255,255)); pdc->SetBkMode(TRANSPARENT); return (HBRUSH)m_hbrush.GetSafeHandle(); …

Member Avatar for mitulgolakiya
0
1K
Member Avatar for cppnewb

Hi. I'm new to the forums, and I have a quick question. I would like to add 14 days to the current system date in a program. Here is my code: char date[9]; _strdate(date); char time[9]; _strtime(time); cout << "The due date of your books is: " << date << …

Member Avatar for cppnewb
0
9K
Member Avatar for cppnewb

Hi again. In one of my programs, I would like to put in a search type feature. I would like it, so if the user enters a book name, it returns the call number of the book. I would also like it ti display a message if the library doesn't …

Member Avatar for cam875
0
142
Member Avatar for nikileshsa

[code=c] #include<stdio.h> # define A 10 const short LINE_SIZE = 255; main(){ char a[LINE_SIZE + 1] = " "; //Error here...why is this an error?? char b[A]=""; //no problem here printf("%d",sizeof(a)); printf("%s",a); } [/code]

Member Avatar for grumpier
0
245
Member Avatar for nabilchampion

Hi, I have a question: Suppose i have a source code file as test.c ------------ [CODE] #include <stdio.h> void __attribute__ (( visibility ("hidden") )) sayHello (void) { printf("hello"); }[/CODE] i make shared library using gcc say named as libhello.so now although the function sayHello is not exported to the libhello.so …

Member Avatar for fpmurphy
0
191
Member Avatar for death_oclock

I am having some trouble with the layout of my project. I'm using several APIs, including the WinAPI and DevIL. I had hoped to encapsulate each one in a separate header file, so that the main program would never have to know whats going on. The problem is, some functions …

Member Avatar for death_oclock
0
187
Member Avatar for gerryburon

I just joined this web, & it's cool, it's user-friendly -- useful & friendly. I specialize on providing I.T. Support, & I am presently working as an I.T. Instructor & Consultant for an I.T. College here in the Philippines. I am deeply interested on Linux Networking & C Programming. I …

0
30
Member Avatar for somename

Hello. Maybe someone can help me with this, here is my code: [CODE]#include <windows.h> #include <stdio.h> #include <wininet.h> #include <shlwapi.h> #define mb(x,z) MessageBox(0,x,z,0) #define REGKEY "PATH\\to\\my\\key" #define REGNAME "zzzzzzzzzzzzz" #define EXENAME "zzzzzz.exe" void Reg() { HKEY hkey; DWORD dwDisposition; DWORD m_dwMaxFileSize = 16 * 1024; TCHAR m_szLastFileName[MAX_PATH]; DWORD dwType, dwSize; …

Member Avatar for somename
0
195
Member Avatar for blackslither

Hi I'm looking for a "shortest path algorithm" , but with a maximum number of edges limit . So the path has to contain at most N edges . i've found shortest path algorithms but not with a number of edges limit , and i've tried to modify A* , …

Member Avatar for Murtan
0
1K
Member Avatar for death_oclock

My application creates a window in the main thread, but I want the message loop in a separate thread. Is there any way to catch the messages from that window while an another thread? I tried giving GetMessage that window's handle, it didn't work. I could just create the window …

Member Avatar for death_oclock
0
127
Member Avatar for cwn11

Hello everybody, i am kinda new to programming. I used to do alot of C programming for psp, and i used cygwin. Im trying to learn regular C and some pascal now, but im having this problem with cygwin: [CODE] Craig@computer ~ $ #include <stdio.h> Craig@computer ~ $ Craig@computer ~ …

Member Avatar for caperjack
0
88
Member Avatar for beast0000

Hello guys, I am new in this forum and i hope im gonna get some fast help. I have this problem where i should input numbers from a .doc file, and the program should output how many times the number of occurences of each number. ie: the numbers in the …

Member Avatar for MosaicFuneral
0
93
Member Avatar for nm_9218
Member Avatar for Salem
0
29
Member Avatar for iamstrange14

I'm trying to take a string of numbers and convert it to an actual number. I can successfully convert it if it's just one digit, but I'm unsure how to convert a number with two or more digits. [CODE=nasm] section .data str: db '3' ;string to be converted section .text …

Member Avatar for Salem
0
138
Member Avatar for web_master

hey, I am developing this game of snake, just like the nokia phones have. anyway i have worked on windows till now, but now i am using geany on linux. so there are quite some methods which are not standardised for all platforms. one of them is gotoxy() and i …

Member Avatar for web_master
0
113
Member Avatar for AhmedHan

First, I prepared the class blow : [CODE]class UserDefinedWindow { public: WNDCLASSEX WindowClass; DWORD dwExStyle; LPCTSTR lpClassName; LPCTSTR lpWindowName; DWORD dwStyle; int x; int y; int nWidth; int nHeight; HWND hWndParent; HMENU hMenu; HINSTANCE hProgInst; LPVOID lpParam; char ClassName[MAX_LOADSTRING]; char Caption[MAX_LOADSTRING]; HWND hWnd; UserDefinedWindow() { dwExStyle = 0; //These are …

Member Avatar for EZO
1
399
Member Avatar for smnadig

Hello, The Hexadecimal value of EBCDIC has to be converted to corresponding character as the user inputs it. The following table shows the hexadecimal value of characters in ASCII and EBCDIC. Can anybody help me with an efficient C-Algorithm for this conversion? Char----Deci-------Hex.ASCII---Hex.EBCDIC A ------65---------41------------- C1 B-------66---------42-------------C2 C-------67---------43-------------C3 D-------68 ---------44-------------C4 …

Member Avatar for ArkM
0
1K
Member Avatar for Alex Edwards

Hey everyone! =) I'm starting an Application Development club at my college! However, there are a fair amount of programmers with multiple backgrounds who want to be a part of the club and partake in some of the Software we will create. Most of the people who are joining the …

Member Avatar for iluxa
0
357
Member Avatar for nrupparikh
Member Avatar for Member #465680

Hi, I am trying to change the address in an array using *nums++. When I run the program, however, the first number in the array is skipped. What am I missing? How do I get the first number to display? [CODE]#include <stdio.h> int print(int[]); int main() { #define NUMBERS 7 …

Member Avatar for Member #465680
0
136
Member Avatar for somnathsarode

hi , everybody can any one write a "c" programme without main() function "please don't tell me this is not possible " If u know please tell me

Member Avatar for ArkM
0
165
Member Avatar for Relative0

I am having some difficulties in understanding the code below. First I don't understand, is (char***) a cast to a triple pointer to a char? While I am am somewhat familiar with single pointers, these triples are beyond my current understanding and I would like to know, what is the …

Member Avatar for ArkM
0
96
Member Avatar for kikloo

Hi. I am trying to merge 2 chars. in C but i don't know how to do it. My code: [code] char dd[1], aa[2]; dd[0] = "2"; dd[1] = "3"; aa[] = dd[0] + dd[1]; [/code] So it aa[] should show: 23 but it gives error. Maybe i am doing …

Member Avatar for Murtan
0
303
Member Avatar for mythiliarun

hai, I'm 27 yr old.I finished my M.Sc.,(information technology & computer science) in my 22yrs with distinction. After that I got married & involved in my family life.Now I want to start my career.Still I have the sound knowlege of the major concepts of c,c++,ds.Now pls guide me what kind …

0
13
Member Avatar for Excess3

Hello ,, i need to write to opened file in w+ mode.. now the problem is that first off all i need to check first string in each line if he the same to value i want to enter , dont enter and print error : in another words i …

Member Avatar for Excess3
0
147

The End.