19,876 Topics

Member Avatar for
Member Avatar for marymc

Hi everyone. I am new to C# and have to write a program to use a Phidget RFID to track people along a certain route. i have some understanding of C# and some code but not a lot and really under presure for time. I also need to be able …

Member Avatar for marymc
0
85
Member Avatar for agentx

hallo! ppl plz help me write the pseudocode for the following problem! im new at this and have no clue how to do it! the assignment is due tmrw so quick help will b appreciated 1) enter 55 test scores and print how many were passing scores(50 or more)and how …

Member Avatar for Narue
0
113
Member Avatar for daesdaemar

I am trying to write a simple slot machine program that will return three numbers as the slot icons using a loop. I can get the first part just fine (I think). But I am stuck at converting my icons to intergers or character that I can compare to see …

Member Avatar for Sky Diploma
0
2K
Member Avatar for Demonisya

Hey....Help me in this one please... I have to encode something that the output will come out as example....10, 8, 6, 4, 2, 0..... please help me what I did wrong....Thanks ...and I like to thank Narue too...for helping me in my last problem....I have to do this without using …

Member Avatar for Demonisya
0
310
Member Avatar for devnar

I found the following code in the 'Code snippets' section( written by nanodano). i tried compiling it in my Dev-Cpp compiler, and i got the output as shown in the attachment for up, left, down and right arrow keys respectively. All other defined keys i.e., F1 to F10 gave the …

Member Avatar for devnar
0
198
Member Avatar for plike922

please help with this program i dont know whats wrong. [CODE]#include <stdio.h> #include "strlib.h" #include "simpio.h" #include "genlib.h" #include "string.h" void reverse(void); int main() { printf("Please enter a sentence and end the sentence with a -\n"); reverse(); system("Pause"); } void reverse(void) { int ch; if(getchar(ch) != EOF) { reverse(); putchar(ch); …

Member Avatar for Aia
0
94
Member Avatar for marcosjp

Hello there! I wrote a small program in C on Windows using DevC++. It works perfectly, but when I try to run it on Linux I get compiler erros at these lines: [code=c]void printOctets(int octets[][], char []); void printInterval(int suntwk[][], int brdc[][]); [/code] This is a college assignment and I'm …

Member Avatar for marcosjp
0
102
Member Avatar for Tommoh

Hi there. I do not understand the following line of code. [ICODE] program_counter = (memory[0xFFFD] << 8) | memory[0xFFFC]; [/ICODE] [QUOTE] The array memory[] represents the memory space of our processor. The starting address for a 6502 program is stored at location $FFFC and $FFFD in memory. The 6502 stores …

Member Avatar for Tommoh
0
173
Member Avatar for califguy

[code=c] #include<stdio.h> #include<stdlib.h> main() { char a[32],*a1,b[64],*b1; a1=&a[0]; b1=&b[0]; a1="hellohellohellohellohellohello" ; printf("\n contents of a1: %s\n",a1); int i =0; for(i=0;i<=31;i++) { printf("%c",a[i]); } } [/code] So why does printf ("%s",a1) work correctly while printf("%c",a[i]) display junk ? Since a1 points to a[0], shouldn'it it display the same values ?

Member Avatar for califguy
0
117
Member Avatar for Synthuir

[CODE]#include <iostream> #include <string> #include <time.h> #define newline '\n' using namespace std; char ch; int main() { cout<<"*A Signed on\n*I Signed on\n"; cout<<"\nA:It's you again, isn't it?\n>I:"; string ent1; cin>> ent1; while(ent1 == "yes" || ent1 == "Yes" || ent1 == "YES") { cout<<"A:No...\nA:It's been so long since you last …

Member Avatar for VernonDozier
0
73
Member Avatar for R3B3L

Does anyone know what's C++'s SETW() Equivalent in Visual Basic .NET ? SETW: Sets the number of characters to be used as the field width for the next insertion operation. Is there anythign similar in VB.NET. Note: I want to use in a ListBox. I've tried using: [CODE] Dim fmtStr …

Member Avatar for selvaganapathy
0
262
Member Avatar for califguy

hi guys, I have a simple question and I am new to c, Would appreciate any advise I could get. Here's the doubt. [code=c] main() { char a[10],*a1,b[10],*b1; a1=&a[0]; b1=&b[0]; int x=0; for (x=0;x<=1-;x++0) { *a1++=*b1++; } } [/code] Basically if I had a string in b[10] it would get …

Member Avatar for califguy
0
87
Member Avatar for inim38

Hi, Can you plz help me in creating a file in C having columns rec_id (int), score (float), hour (int), no_clicks (int) with rec_id values ranging from 1 to 100, score values initialized to 0.11, hour values initialized to 0 and no_clicks values also initialized to 0. And then generating …

Member Avatar for inim38
0
120
Member Avatar for makubexiii

how can you make program using a linked list that displays your outputs in ascending alphabetical order? we are only allowed to use: #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> TIA

Member Avatar for makubexiii
0
1K
Member Avatar for Jawahar prabhu

hai ia have been try this but i didnt get any output on my run window. #include<process.h> main() { system("echo hello"); } [B] consider me[/B]

Member Avatar for Aia
0
80
Member Avatar for guitarcrazy44

I have signed up for high school online c++ courses, which has proven to be a mistake, due to my inability to grasp the content. I would like to keep learning, but as the semester draws to an end, I must catch up on my work. This is a project …

Member Avatar for Sky Diploma
0
149
Member Avatar for TooMpa

Hi have a problem, this code should read a file and then save it in a linked list, just the <uid><name> from a lie looking like: <username>:<password>:<uid>:<gid>:<fullname>:<home dir>:<shell> I can't find the segmentation fault error atm, but hints on the code would be helpfull. Atfer the insert in user list …

Member Avatar for ArkM
0
204
Member Avatar for MAD_DOG

How long did it take you to learn C++ or C or VB. I learning some what C for my Linux class.

Member Avatar for Nick Evan
0
2K
Member Avatar for ahspats

Hey everyone, I am supposed to write a program that counts the number of vowels in string of characters. It must include "Struct counter_t (it must be declared as in the code i've written)" and function "int CountVowels (IN text[], OUT Count)". the OUT parameter must be of type counter_t. …

Member Avatar for ahspats
0
143
Member Avatar for Demonisya

Hi!!! This is my first time to post here and I have a problem and I want your help..... This is the case my teacher gave me a question to add 1 to 100 using while loop and its really confusing me... but here is my idea and I jsut …

Member Avatar for Demonisya
0
116
Member Avatar for devnar

[CODE=C]#include<stdio.h> #include<conio.h> int main() { float a=0.7; if(a<0.7) printf("C"); else printf("C++"); getch(); return 0; }[/CODE] The above code prints 'C'. Whereas the following two codes prints 'C++'. Why is that? [CODE=C]#include<stdio.h> #include<conio.h> int main() { float a=0.7; if(a>0.7) printf("C"); else printf("C++"); getch(); return 0; }[/CODE] [CODE=C]#include<stdio.h> #include<conio.h> int main() { …

Member Avatar for smart_pc
0
589
Member Avatar for sandeepmshetty

Hi... As im new to .Net .. I just wanted to know if their is any "event or method" in C#.net to find the DISTANCE between the two Points.... Say for example:" I have two points on a web form and i need to find its distance by Dragging the …

Member Avatar for ninwa
0
117
Member Avatar for ashblynn02

I need major help on this. I am so lost in C++ and don't understand what is going on. I have the first three done! Please help, I am begging! 1. Draw a UML diagram for the follow class: --Class name is game --Privage integer member called level --Public constructor …

Member Avatar for ashblynn02
0
154
Member Avatar for xxxa_u_r_axxx

Hi! I'm just having a problem in displaying strings of line in the command prompt. My program is to search a string and enclose it with three asterisks both sides. Though it's functioning... But the problem is the program show only those lines where the strings are present. Thr program …

Member Avatar for Narue
0
146
Member Avatar for Sarav01

Hi All, Please help with the below Valet Parking Problem. Let me know if you need more info. The valet parking problem: Some fancy restaurants (i.e. ones without a drive-through window) offer a valet parking service with which one of the restaurant's employees will park your car for you as …

Member Avatar for Sarav01
0
296
Member Avatar for xxxa_u_r_axxx

Hi! My code is to search for the strings. Example when you type srtool.exe -s in -f sample.txt (in the command prompt), all the words containing "in" will be changed to ***in*** My problem is all words containing in will change to ** (one asterisk per word) instead of ***in*** …

Member Avatar for iamthwee
0
100
Member Avatar for mancode1007

I am very confused how to write a function which can accept 3 input parameter to calculate sum and average.the sum and average should be returned through output parameter ... pls help ..thx

Member Avatar for Majestics
0
102
Member Avatar for Himanshu1984

hi, I am developing an application in Windows CE platform is Windows Ce .net 4.2. i need to play media file through C code, i have managed to play media file in win32 through "system" command but this command is not available for Windows CE, i have tried CreateProcess function …

Member Avatar for Himanshu1984
0
283
Member Avatar for asifjavaid

hi all, I want to convert a string contain hex format '0x15' and what to convert it integer because i want to write data contain by a integer variable in hex format (binary data) into the file. here is my code [code=c] char * str = "0x15"; int value; FILE …

Member Avatar for Narue
0
4K
Member Avatar for nuceyneky

Basicly i tried to do address book but i guest it not work at all..can i know where i get wrong or any advise?..

Member Avatar for Narue
0
78
Member Avatar for Jayeeta Mitra

How to create an initialised list and delete any node from the list using C language.Please help me.I need it urgently.

Member Avatar for Nick Evan
0
85
Member Avatar for kcpatron

good day, i rily nid help on something.... its about gotoxy in turbo c... 1st of all, can u use gotoxy in turbo c? (c++ 6.0) 2nd, if u can... can i ask how to use it? please help me... im just a beginner... lol.... h0pe u c0uld help me... …

Member Avatar for Ancient Dragon
0
111
Member Avatar for haveaclick

hi all i want the code for reversing a string eg : I live in india Ans India in live i

Member Avatar for Nick Evan
0
91
Member Avatar for Hannahlv

Hello everyone, I don't know what is the exact name to call this, so I call based on what I want to do in my program. Its operation got something similar to chat server and client. I have server and client application. Firstly, when one client connects to server and …

Member Avatar for ArkM
0
116
Member Avatar for Jayeeta Mitra

How to initialise a sorted list and after inserting any node the resultant list also becomes sorted.Pls help.I need it urgently.

Member Avatar for Narue
0
63
Member Avatar for Diode

So I'm messing with some code, trying to get more familiar with string functions, and I stumbled into an apparent error on my part. Here is my code: [CODE]#include <stdio.h> #include <string.h> int main(void) { int len = 0; char *str = "This is a string"; char ch = '\0'; …

Member Avatar for Diode
0
2K
Member Avatar for ivylim88

i need to write a program that is acting as a simple personal address book with the record of name,email and phone numbers. The range of function should have: searching existing records. adding new records. deleting existing records. i need to include the last update date and time of the …

Member Avatar for ivylim88
0
147
Member Avatar for winky

I am supposed to rewrite the code below to "compute the number of digits to any base(such as base 2, base 16, base 8)." Just wondering if any of you can provide any explanation or pseudocode on how to go about doing this? Thanks for any help you can give …

Member Avatar for Narue
0
100
Member Avatar for hikaru1239

I am working on a code which opens a file (infile), copies it to an output file (outfile) and then asks the user for a string and searches for that string in the outfile and replaces every occurence of that string with & symbol. Here's an example: Contents of infile: …

Member Avatar for iamthwee
0
180
Member Avatar for hiraksarkardg

I'm a IT newbie...one day a CST student asked me whether there is any way to write something at a particular location or not.....so am forwarding it to you all. Please guys help me..

Member Avatar for Ancient Dragon
0
119
Member Avatar for draak13

I had gotten my code all working, and everything is capable of doing what it's supposed to do. The next step for me was to organize it a little better; re-allocating my definitions to different source code files and that such...and there the problem starts. After declaring three dyanamic link …

Member Avatar for draak13
0
100
Member Avatar for bluesy

how to add and delete record of contact in address book??? i'm using void searchContact(void) to search the contact and i have done it but i don't know how to proceed. i'm trying to use void addContact(void) {} void deleteContact(void) {} to do but i really don't know how to …

Member Avatar for Ancient Dragon
0
144
Member Avatar for SMG0723

I am a beginner and I would like to know whats wrong with my code why it is not working. I am trying to create a login form [code=csharp] private void btnSignIn_Click(object sender, EventArgs e) { string ConString; ConString = "Data Source=.;Initial Catalog=docworx;UserID=sa"; SqlConnection DbCon = new SqlConnection(ConString); m_Login = …

Member Avatar for fuzzelogic
0
74
Member Avatar for watercolour

so far i already reach this line, but what make it pain in the ass is, i can't really seem to solve [B]how to make multiple operation in one execution[/B], i can only manage make it one operation in time, some say i have to [B]convert the operation like "1.22*3+2.1" …

Member Avatar for watercolour
0
123
Member Avatar for hiraksarkardg

Can anybody help me to do this program ? Problem is to write a program which will take another program as a input & it'll give a program flow chart. Ability of processing loops and if-else block would suffice. I can't understand where to start.

Member Avatar for ssharish2005
0
99
Member Avatar for AlSal

I'm trying to send an char array through a function convert it to an int array and send it back so I can reuse it with another function. I'm just having the worst time with this matter, please help!

Member Avatar for ssharish2005
0
84
Member Avatar for MadnessCow

This a program i write for practice. The problem I'm facing is inside the while statement. Is it okay to divide, in this case, the miles(which is inside the the while) with gall(outside the while). I tried to compile it and the answer given was 0.00000 P/S. This program is …

Member Avatar for MadnessCow
0
107
Member Avatar for plike922

im having trouble and cant find whats wrong... plz help [CODE]#include "strlib.h" #include "simpio.h" #include "genlib.h" #include "string.h" int main() { int i, high; string answer; printf("Think of a number in the range of 1-"); high = GetInteger(); printf("and I'll guess it:\nPlease use Y and N.\n"); answer = "No"; printf("Is …

Member Avatar for ssharish2005
0
125
Member Avatar for devnar

I have tried to come up with a 2-D (4 rows and 4 columns) array which holds values from 0 to 15, with none of the values used more than once. I'm posting only the code snippet. please lemme know if the logic is correct. [CODE=C] int HIGH=16; /*(Max value …

Member Avatar for devnar
0
110
Member Avatar for raju6835

I want to solve a puzzel game here we have 24 match stick there are two player user and computer, there is first turn to comp. there is one condition any player can pick minimum one to maximum 4 stick at a time . at last whose got only one …

0
50

The End.