15,552 Topics
| |
Does anyone know how to insert something like this: [URL="http://www.google.com/imgres?imgurl=http://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/XcodeWorkspace/art/code_completion_inline3.jpg&imgrefurl=http://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/XcodeWorkspace/100-The_Text_Editor/text_editor.html&usg=__tzUerpkyaa1hAhy4AIx5q3ncRqE=&h=288&w=679&sz=48&hl=en&start=0&zoom=1&tbnid=YT_0hr0Qkfu4UM:&tbnh=80&tbnw=189&prev=/images%3Fq%3Dxcode%2Bcompletion%2Bbubble%26um%3D1%26hl%3Den%26client%3Dsafari%26rls%3Den%26biw%3D1190%26bih%3D944%26tbs%3Disch:1&um=1&itbs=1&iact=hc&vpx=493&vpy=109&dur=463&hovh=146&hovw=345&tx=175&ty=56&ei=dAz3TJfiM9GAswaK_t3jDQ&oei=dAz3TJfiM9GAswaK_t3jDQ&esq=1&page=1&ndsp=25&ved=1t:429,r:2,s:0"]http://www.google.com/imgres?imgurl=http://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/XcodeWorkspace/art/code_completion_inline3.jpg&imgrefurl=http://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/XcodeWorkspace/100-The_Text_Editor/text_editor.html&usg=__tzUerpkyaa1hAhy4AIx5q3ncRqE=&h=288&w=679&sz=48&hl=en&start=0&zoom=1&tbnid=YT_0hr0Qkfu4UM:&tbnh=80&tbnw=189&prev=/images%3Fq%3Dxcode%2Bcompletion%2Bbubble%26um%3D1%26hl%3Den%26client%3Dsafari%26rls%3Den%26biw%3D1190%26bih%3D944%26tbs%3Disch:1&um=1&itbs=1&iact=hc&vpx=493&vpy=109&dur=463&hovh=146&hovw=345&tx=175&ty=56&ei=dAz3TJfiM9GAswaK_t3jDQ&oei=dAz3TJfiM9GAswaK_t3jDQ&esq=1&page=1&ndsp=25&ved=1t:429,r:2,s:0[/URL] | |
[CODE] unsigned char buffer[1000] while(buffer < 0) num = fread(buffer,1, 1000, original_pointer); fwrite(buffer,1,num,copy_pointer); if(buffer > 1000) { //this is the place where i am stuck if the buffer exceeds how do i clear it then carry on reading and writing to a file ? [/CODE] | |
Hello every one! i want to create something like this (show at the bottom of this message as an attachment) but i've no clue how to create this digital payrmid. can anyone please help me with the code please? thanks for your help in advance cheers sh4rif | |
I am creating an abstract data type for strings implementing the string functions but not using the string library. I have my .c file and my .h file below. The problem seems to lie in addMystring I have commented out the area's that seem to have the problem. when they … | |
Functionality Read 2 numbers Print multiplication as in following example: 3333 1111 ---- ***3333 **3333 *3333 3333 ---- 3702963 Prepare following functions Modulo division (you cannot use '%') Mulitplication Print a number with leading and "following" spaces Please I need to do that in C language, I think the best … | |
Hi~ I've been stuck with this exercise for quite a few days. It's in a book I'm currently self-studying, C++ primer plus. The exercise requires using C syntax, while the exercise which follows this one requires using string objects instead, so i guess this is the appropriate forum^^. It is … | |
Functionality Read 2 numbers Print multiplication as in following example: 3333 1111 ---- ***3333 **3333 *3333 3333 ---- 3702963 Prepare following functions Modulo division (you cannot use '%') Mulitplication Print a number with leading and "following" spaces I have it: #include <cstdlib> #include <iostream> #include "conio.h" using namespace std; int … | |
It counts upper lower and digits in a file .. | |
Hi, I'm kinda new to using MySQL,I just downloaded sqlite3 for my Linux. Can anyone give me some links to tutorials/sample codes that use MySQL and C as a programming language? Thank you | |
i wanna ask is that any statement can calculate number of occurrence of each letter (A-Z) instead of using switch statement or if statement to compare. | |
Please give me a turbo c code on how to calculate grades with percentage. | |
so basically i wrote a progarm that begins with a menu allowing you to select one of 5 functions, but at the end of whichever function i would like it to return to the menu the problem is i dont know how to do that and would like any tips … | |
No error checking and other features, but a very basic .tar extracting snippet: [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/stat.h> struct tarheader { // for parsing the tar headers char name[100]; char mode[8]; char uid[8]; char gid[8]; char size[12]; char mtime[12]; char chksum[8]; char typeflag; char linkname[100]; char magic[8]; … | |
| hello again i got an assignment i thought i understand it but the every time i read it i understand it differently. my teacher won't explain the exercise. here is the exercise [IMG]http://img42.imageshack.us/img42/8331/37255827.png[/IMG] he also gave an input output example located here [url]http://rapidshare.com/files/434579925/sorted.zip[/url] i'v learned using shmat & shmget and … |
hello can any 1 hlp me for creating a secured exe file of an console application.means i hv created 1 program in c using dev c++ as compiler. now it is creating an exe file of the project in the same project directory. thats fine. nw along with that exe … | |
I wrote this function for an assignment. It utilizes dynamic memory, which grows and shrinks as needed. I wrote it like this at first: [CODE]int user_input (int * array, int intSize) { printf("Please enter any number of integers (80 characters per string max), enter an empty string to signal input … | |
Hi guys here is my code, prettty much the same as one posted before but im getting a few errors. Fairly new to this so if someone could help me out i would greatly appreciate it. Thanks in advance:) Here is the code and errors underneath that: #include<stdio.h> #include<string.h> #include<ctype.h> … | |
I need help with a program that is supposed to take data on football players from a txt file and place them in a binary search tree then use case statements to t osearch the tree inorder, preorder and postorder recursively here's what i got so far [CODE] /* Bradley … | |
Hello Guys! it's been a while. Lately, I've been wanting to study & explore C/C++ more. Because of this, I've done a lot of exercises that was given to us at school and some more around the net, but sadly the one that I'm really looking forward to the the … | |
i want to write a a program that will accept student name and grades and output it.use an array data structure in the implementation this program and implement the following write method that will traverses the array and allow the user to perform the following processes a) search for a … | |
im a student of 2nd year BS, doing my BS in Computer Science. Here I want to include a program by me, may be someone will be helped by me :) [code=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> int* createHashTable(void); void getData(void); void formatting(void); int insertData(int); float chkLoadFactor(int, int); int collision_LinearProbing(int, int,int); int … | |
It is supposed to tell me the occurrences of letters both upper and lower case and digit and non letter nor digits characters ,,but it does nothing ,,please help as soon as possible #include<stdio.h> #include<ctype.h> #include<conio.h> int main(){ FILE *fp,*f2,*f3; char ch,temp; int i,j; int lowercase[26]={0}; int upperCase[26]={0}; int digits[10]={0}; … | |
using dev c++ as compiler,bt coding the program in c.suppose i hv created 1 program in console application ,compiled it,run it, it works fine,on compiling & running it,. it produces the various supported assosciated with it. like makefile.win,gmon.out,project.exe,project.dev,main.o,main.c,now on seeing these files in notepad 1 can easily determined that program … | |
Hello, On the UNIX system that I am current working, to open a file in the pico editor ,I need to do the following: [CODE]>./pico filename.c [/CODE] Is there a script/command that I can execute which will remove the dot/slash and change that to: [CODE]> pico filename.c [/CODE] Thank you! | |
Hello Members, I have the following question about the pipe() system call. Say, Process A (my main()) forks a Process B which then forks a Process C. How can I open a pipe between Process C and Process A? I would like to write a sentence in Process C and … | |
hi! im also a beginner in using C im confused because ive got a problem. which the answer of C is different from mine here's my problem: !our teacher ask us to covert yards to meters, inches, feet. (my problem is the meter) feet = yard * 3 inches = … | |
Hi I'm new here and I have a problem which is hindering me. I have opened a file and wrote some stuff to it. Then later on I want to open the file and read it back in to a buffer. When I try to read the file back in … | |
[CODE]void user_input (int * array, int intSize) { printf("Please enter any number of strings (80 characters per string max), enter an empty string to signal input completion\n\n"); int i = 0; int j = 0; int arrayMax = MAXARRAY - 1; char input[81]; while (input[0] != '\0') { printf("->"); i … | |
Hello I am trying to read from a file. I'm followed a tutorial and had it working perfectly before, and it still does now.. But the problem is that one variable that I'm reading from the file is causing my program to crash. All the other vars I'm reading, are … | |
I have a CSV file with the following data 15278349,567892,3456,9742.30,CASH-WITHDRAWAL-200.00,DIRECT-DEBIT-200.00 64328975,632489,7562,98734.65,CHEQUE-DEPOSIT-100.00,CASH-DEPOSIT-424.54 etc... How would I print to screen the individual lines instead of just the top line?? Sam |
The End.