15,539 Topics
|
|
The Absolute Beginners Guide to C by Greg Perry. Its been very easy to understand so far, im on chapter 3 so far, as I only read on a day. I have to say he did a great job putting the book together, its published by SAM's but not all … |
|
Hi I am using a recursive map. The class and data structures are given below. While trying to insert a node in hash map I am getting unhandled exception. typedef struct Item { char *text; char *Id; }ITEM; class Node; typedef class Node NODE; class Node { public: hash_map<const char*,NODE … |
|
I need help with an initializer issue -- the following code works well: extern int i1, i2; typedef struct { char ch; int * * array; } qq_str; static int * a[] = { &i1, &i2 }; qq_str qq = { 'c', a }; However, I would like to remove … |
|
Greetings everyone... I'm new to Standard Template Libraries thus I'm encountering problems now and then... I managed to get some examples on integer lists to work but the string lists give me nothing but grief... What I'm trying to do is to read a series of words from an input … |
|
Hi Everyone I have to write a grep program in C and I am not sure where to start. :?: I need to use strstr() from the standard library, and get it to work; but I dont know how to do that. And that's only half the program, the second … |
|
Hi everbody! Sample problem: program1 has a poiter that point to a block memory in PC memory. program1 write the address of block memory (the pointer) in hard disk. program1 still run. program2 start. program2 read the pointer (address of block memory) in the hard disk. Now program1 and program2 … |
|
Man! I totally forgot the code this SORTING thing and now, I don't know how to do it again. I think having a vacation from programming was a bad idea... Any help contributions??? please... Here's the problem : ----------------------------------------------------------------------------------- A program that sorts the ten (10) input values either in … |
|
When I try to scan in the selection the program will not then let me scan in the string to encrypt. If i take the selection function out then the program does exactly what it is suppose to do. Any help would be great. Thanks alot Ryan [code] # include<stdio.h> … |
|
please help me guys. |
|
The program to be done; > Team Wins Losses Ties PF PA +/- > Blue 0 0 0 0 0 0 > White 0 0 0 0 0 0 > Red 0 0 0 0 0 0 > Black 0 0 0 0 0 0 > Green 0 0 0 … |
|
I want to take integer inputs separated by spaces and terminated by newline character. suppose the user will be inserting integers this way 123 566 789 45 34 8999 341 57 67 and then the user presses enter. so the program will read all the integers when the user presses … |
|
I have a program that outputs the first 30 numbers of the fibonacci sequence. My declaration to hold the integers works and the loop to calculate them works but I am trying to output them 5 elements per line with a field width of 10. I have the field width … |
|
can anyone explain this programing codes? proc1.c #include <stdio.h> int main() { int fork_return; fork_return = fork(); printf("PID=%d, PPID=%d, fork_return=%d\n", getpid(), getppid (), fork_return); sleep(10); /* wait for 10 sec */ return 0; } proc2.c #inlcude <stdio.h> int main() { int chpid=fork(); if (chpid < 0) { printf("ERROR\n"); exit(1); } … |
|
Write a program that will read the file, Address.txt, which I have provided. It contains names and numbers with no spaces between. Write the same data to a new file with the numbers right justified in 12 spaces and with 3 decimals. (file): Pete Moss25.33 Sara Bellum78.45 Harry Legg 76 … |
|
I am trying to make a command line calculator, and I made up a partial code for it, just for adding numbers, I am jsut taking it one step at a time. But I am suppose a number then a space then the math function then a space then the … |
|
I want to create labels from strings in the following manner: for(j = 0; j < 5; j++){ for(i = 0; i < 5; i++){ myLabel->Caption = CHAR(j + 65) + (i + 1); } } This is to give me A1, A2, A3, A4, A5 B1, B2, B3, B4, … |
|
Hello ladies and gents, I have tried to write my sorting function but keep on getting error messages. Ive been reading the tutorials on this forum wich explaines alot but I'm still having lots of trouble in comprehending how pointers work and more important, how that I can correctly write … |
|
I need to add a recursive function, called [B]findaverage()[/B] into BST class that takes as input the root of the BST and returns the average of the entire integer items stored in that BST of integers. Plz help me with this function especially without using any static variables. |
|
sorry my bad english and maybe if u can write this source so give me ? (use a stack and tree) :cool: |
|
Hi guys It has been quite a long time since my last post, but I am having some very weird behaviour on a program I am writing and I was hoping to get a little community feedback ;) I am writing a class that basically opens a pipe to ksh … |
|
Hi i need an explanation of the following array declaration: GLfloat colours[][3] Why are the square brackets empty, does it imply a default value? so it has say 1 row and three columns? Thanxfor your help in advance it is much appreciated |
|
In easy to understand language can someone explain the premise behind Big O notation ? :rolleyes: |
|
I got a question one of my friends asked me to make a program that you type in the number 1-27 on the command line, and get the corresponding letter for it. Like if you enter 1 as the arguement you would get an A as an output, and if … |
|
[code] struct student { char name[20]; int age; int id; }; struct student *sp, st[3],temp ; void sort(struct student *p) { *sp=st[0]; p->age; for(i=0; i<3; i++) { if(st[i].age<st[i+1].age) continue; else if(st[i].age>st[i+1].age) { temp=st[i]; st[i]=st[i+1]; st[i+1]=temp; }break; } } /* switch case junk */ case 1: /* sort by age */ … |
|
[COLOR=DarkSlateBlue]undefined[/COLOR] hi, i m naya.i m student of telecommunicatin engineering.i have a lot problems in "C PROGRAMMING".plz tell me the codes to find max,min values....to print factorial of a number...how copy an array to other.....to print tables of numbers....n how to swaps in array.. plz they all codes should be … |
|
how do you convert to binary. i have to write a program that will prompt the user to enter an unlimited(user defined) number positive intergers, the program will convert each positive interger(base 10 value) into its equivalent binary representation and displat each conversation. to exit the program, the user is … |
|
[COLOR=Red]How do I get the student names in all lowercase chars except the first letter which is capitalized?[/COLOR] [code] #include <fstream> #include <stdlib.h> #include <time.h> using namespace std; int main() { // Step 1: Declare ofstream OutFile; int NumStudents; int NumChar; int NewScore; char NewChar; // Step 2: Initialize OutFile.open("C:/Scores.dat"); … |
|
Hi all, i want to read a dat file (vedio file) by a C program. But how it possible ? Help me with some basic tutorial. I am waiting for reply. Thanking you... regards rishi |
|
Can anyone help? Instead of outputting the decimal 1.75, C outputs 7/4 as 1.0000. I very much need to obtain the exact decimal product of integer ratios to 2 decimal places and then compare it to another decimal number. For example, if (7/4 > 1.25) printf("Yes\n"); else printf("No\n"); --> So … |
|
These two programs: I would like to combine them. I wish to have an image shown under one of the menu choices. :D |
The End.