19,876 Topics
![]() | |
I want to color cell of the listview, how to write code ? You see my image file. http://www.mediafire.com/view/uoq3qw4o9c90jwd/chamcong5.jpg/file | |
Suppose there are two forms: frmMain and frmPopup, frmPopup is always on frmMain, when select frmMain inputting data then frmPopup always on frmMain, frmPopup is always on frmMain, how is it to write code ? you see attach file http://www.mediafire.com/view/bq32fcb3ept329r/PopUpInput.jpg/file | |
This snippet converts a CIDR notated IP address to a range of IP addresses in decimal, dotted notation. Eg.: 192.168.1.255/31 => 192.168.1.254 - 192.168.1.255 | |
I have a data file called Access 2003 Table The question "TABCAUHOI" has the following fields: ID int; NOIDUNG memo; The "NOIDUNG" field has data type as memo, I pour data from excel text file into this table in this access file to check the contents are full as excel … | |
Hi,my problem is when I choose yes to go for customer number 2 and when I simply choose either a combo(even thought A,B,C or D) it will straight end the whole program and show press any key to continue instead of continue the looping for return the selection(case A,B,C,D or … | |
hey guys, Can any body tell me how shall i start with the project. I will be using Java and C together(JNI) in netbeans for coding. I will be embedding the C code in Java(Interface). First i want to read the wav file in C and sample it and apply … | |
#include<stdio.h> #include<conio.h> typedef struct process{ char pname[20]; int at,bt,wt,ta,end; }processes; int main(){ processes P[10]; processes z[10]; processes et[10]; processes wt1[10]; processes ta1[10]; int a,b,n,x=0,st,y,w; float aveta,avewt,sumta=0,sumwt=0; printf("Process Scheduling Algorithm:\n"); printf("SHORTEST JOB FIRST\n"); printf("--------------------------------------\n"); printf("Enter No. of Process: "); scanf("%d",&n); printf("\n"); for(a=0;a<n;a++){ printf("Enter Process Name P[%d]: ",a+1); scanf("%s",&P[a].pname); } printf("\n"); for(a=0;a<n;a++){ … | |
#include<stdio.h> int main() { int x=5; int y=50; do{ x = x + 10; }while (x <y); printf("%d\t%d", x,y); } I wonder why i compile is 55 50 why not 15 50??? | |
We need to implement this game MS Visual C++,using animation.You have scattered letters and from them you have to make up a word,if you guess the word you get n points(n=size of word) ,the button "hint " removes 3 points,from the accountant by prompting one of the letters ,a "new … | |
# my code in asp.net with sql server # my final task is to perform string matching and i know i use algorithm but i can use logic first i split the code in listbox .success 2nd step i match all the listbox items to sqlserver which contain 1 column … | |
**Question**Accept a character C and a positive integer N as input. The program must print N characters starting from C. Input Format: The first line contains C and N separated by space(s). Output Format: The first line contains N characters. Example Input/Output 1: Input: a 4 Output: abcd Example Input/Output … | |
I get the employee list from SQL Server problem with fields: ID: id employee Employee: name employee after filter the kernel list dv.RowFilter = "set condition unique 1 recoder" at the command if (dv.Count == 1) at this assignment id and the kernel name is not correct the unique file … | |
Is there a way to transfer multiple files using sockets from client to server? i was able to send 1 file , but sending multiple doesnt work. | |
Urgently need help ASAP!!! If anyone could help me with these questions, i would be so grateful. 1) write a program tht allows the user to enter a part no. tht consists of 4 or 5 characters. D 2nd and 3rd characters represent the delivery method as follows: "MS" represents … | |
hi i'm trying to tranform while loop to a recursive function to read the array from left to right and then another version from right to left but i'm just unable ! can i have some idea ? #include<stdio.h> #define DIM 10 int csTrie(int n, int *tab){ int i=0; while(i<(n-1)&&tab[i]<=tab[i+1]){ … | |
Write a C program to implement the following function" print A for exam grades greater than or equal to 90, B for grades greater than or equal to 80 (but less than 90), C for grades greater than or equal to 70 (but less than 80), D for grades greater … | |
the C++ have virtual functions, but, for me they have 1 problem: on derived class, i must prototype them, for define them on Global Scope. how can i avoid the re-prototype them on derived class? i tried 1 way: template <class Type> class TypeHasToString { // This type won't compile … | |
why at line 12, the expression : (char*)str+3 , adds the 2nd index to the string? for example when str="123123" , (char*)str+3 is "3123" instead of "123" ? input: 3 0 3 123123 output supposed to be: "Mybcmp result: 0" since the 3 indexes that's compared from b1="123123" and b2="123" … | |
just as the title says how to compare between memory addresses's contents?, my function will get two memory pointers and i want to compare their first "len" from what they're pointing to i'm getting here invalid use of void * when i compile int my_bcmp (const void *r1, const void … | |
I have 300+ files and I am reading it via C program...i am able to compile but what should I pass while executing C program...below is my code...i am bit new to the C ... int i; FILE *in; FILE *out; char ifile[100],ofile[100]; main() { for (i = 0; i … | |
Create a Permutation and Combination in C language | |
A c++ program that prompts the user to input east or west, if the person inputs east, it prompts the user to input Northeast or Southeast. If the user inputs Southeast, it outputs "You have gone Southeast" however if the person inputs Northeast, the program outputs, "You have failed 1000 … | |
I'm trying to convert the following C code to MIPS64 (very new to this): If Im given the addresses: (a @ 100) (b @ 200) (c @ 300) long int a, b, c; // 64-bit ... if (a < b || a == 4) c = 1; else c = … | |
hello coders, i hope you all are going well, one thing blows my mind today in c i can't explain it this is why title is akward, so the thing is i have an array called tab[n] i wanted to invert it elements from tab[0] to tab[n-1] and and the … | |
Hi all... I've been asked to write a password generator in C for a project. the guidelines are very vague and all I've been told is: Password must be 9-15 characters long at least 2 numbers 2 upper/2 lower case latters 1 symbol and I need to write a dictionary … | |
Hello guys, im new to c and structures and try to build or atleast fix my programm. I want build something like a digital phonebook. I also want to show my structure attributes after writing them. With my first code is working so far but if i want to show … | |
test for check more 5 items | |
I have to iterate data through some DIV's. I don't know how to share and debug the code with others, so I decided to put the code in C# in a console application if you don't mind. Problem is that I cannot close section div in this iteration. If you … | |
int add(int i, int j) { if (i == 0) return j; else return add(--i, ++j); } Need to convert this piece of code to something like this add $s0, $s1, $s2 # $s0 = g + h add $s1, $s3, $s4 # $s1 = i + j sub $s0, … | |
write c++ programming that calculate electricity bill with persons name and id | |
I have a problem shifting data to specific locations in a 64-bit register. I've done well in 32-bit register. But this one gives a warning and also not shifting the data to the wanted location. This one would work with shifts 0, 8, 16 and 24 but not with 32 … | |
I do non know how to call my getdaycode function correctly into my main function. Also, when that isn't the problem, the day showing up below header and it messes with the ordering of the days messing up the calendar. Those are my two big problems at this point, I … | |
To be calculated with the accuracy of the term that after the absolute value is less than the size of 10^-5 on the interval [a,b] with step h , sum of the series 1-X^2/2!+X^4/4!-x^6/6!+x^8/8!-x^10/10! ... in C Interval [a,b] : [Pi/ 12; 11Pi / 12] Function: cosx | |
What is the code of calculator in c# by using variable size . | |
:menu echo 1) start echo 2) intro echo 3) exit set /p menu= if %menu% == 1 goto game if %menu% == 2 goto help if %menu% == 3 exit :help cls echo hit the correct answer and press enter. pause :game echo what is your name? set /p name= … | |
This is the first program for a class that I am taking. I am having trouble creating the classes. We were only taught briefly on the subject and then told to complete this project. I guess my first question is how should I set my class "deck" and "card" up? … | |
Hi all, How would I read a bin file(which contents are attached below), and then from that bin file create an html file with a table of that bin files content(html format is attached as well) | |
Hello, my name is John McPherson, and I write C code for the U.S. Department of Labor. I am in the process of converting C code for a lot states from a 32-bit system to a 64-bit system. Some states have been converted, and most have gone smoothly, but one … | |
[CODE] #include <stdio.h> #include <stdlib.h> typedef struct filedata { char data[100]; }data_t; data_t * fname=NULL; //IS AN ARRAY OF the structure filedata REQUIRED HERE void quit() { printf("\nPress enter to exit"); fflush(stdin); getchar(); } int main() { char ch; fname=(data_t *)malloc(sizeof(data_t)); FILE *fptr=NULL; atexit(quit); printf("Please enter the file name to … | |
So i made this bank account, i would like to display the total intrest and total balance i have been struggaling with it as i am a beginner to c++ If somebody could be able to help me simplify the code and add the totals would be great this is … | |
i have a file .txt with some variables printed for a c program. Precedente lettura: 7129.00 m3 Attuale lettura: 7288.00 m3 Totale Generale: 159.00 m3 Lettura Carmen: 2597.00 m3 Consumo Carmen: 72.00 m3 Lettura Coppola: 487.00 m3 Consumo Coppola: 47.00 m3 Lettura Sarli: 1903.00 m3 Consumo Sarli: 37.00 m3 Eccedenza: … | |
Hi, I am testing a Tcp client C# windows form application I am able to send data to Tcp server Software(Hercules 3.2.8) But when i sent data from Tcp server to windows form then i am getting the following error: System.InvalidOperationException: Cross-Thread operation not valid: Control 'MessageList' accessed from a … | |
Hello all, i need your help regaring this code, which is in python and i need to convert it into mips?? register $s0 holds the base address of list my_data, $s1 holds the length of the list my_data, register $s2 holds the base address of list my_data2 and $s3 holds … | |
Hello, I am supposed to write a code in MIPS to do the following below. Basically, you enter an integer, and it should check to see if it is a palindrome, and if not it will output the number, and keep adding the numer backwards to it, outputting it, and … | |
#include <stdio.h> void main() { char str[10], str1[10]; system("COLOR 74"); system("title Password Change "); system("mode con: cols=140 lines=30"); printf("\n\nWelcome to 'Jubayer IT Solution' Refresher'in C Programming App!!"); printf("\n\nType Your Desired Name and Hit 'Enter' Key to Create a New User!!\n\n>>"); scanf("%s",str); printf("\n\nType Your Desired Password and Hit 'Enter' Key to … | |
For all the above functions i get "`*****' was not declared in this scope". I searched days for an answer to find out what am i doing wrong, and what do i have to do to make it work, but all i could find, peaople saying: it depends on the … | |
I've been studying the [XEmbed protocol specification](https://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html#lifecycle), as well as [Gtk reference manual](https://developer.gnome.org/gtk3/stable/GtkSocket.html), but I'm having some difficulty. I'm using Gtk+ 3. I've created a Gtk socket, got its window ID, but that's where I'm stuck. I'm using C. If I understand this correctly, the program I'm writing that contains … | |
I have an urgent assignment. It would be so great if anyone could help me with the codes of this as I am not able to understand this: Here's the question: Enumerations make it possible to define a new type that contains a limited number of values e.g. the TokenType … |
The End.