Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
16% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
6
Posts with Downvotes
5
Downvoting Members
3
2 Commented Posts
0 Endorsements
Ranked #10K
Ranked #2K
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for deeer

Hello, I have a question regarding reading a txt file and then putting the info in a link list. the problem is that the file contains 3 things to read a letter, a username and a password in the below format: S P2-output1.txt A Hanna hdfjuju first i must read …

Member Avatar for Ancient Dragon
0
120
Member Avatar for chess2009

I would like to write a program with getchar and putchar that read my input and prints one word per line and ignores all semicolon, comma , dot , newline, tab and space. Here is my input: "The Parsnip The parnip, children, I repeat, Is simply an anemic beet. Some …

Member Avatar for WaltP
0
429
Member Avatar for sneha mehta

Write a java based program to accept numbers from the user and also sum the list of numbers as and when entered. apply the data conversion mehods , if required. implement the best and the shortest way to complete the task.

Member Avatar for masijade
0
84
Member Avatar for Shizuo

[B]How to clear the content of a JFrame? my code is something like this: there is a main window with buttons 1 and 2 (2 is for exit) when I click button 1, a new window should appear with lots of components , etc then inside it is a cancel …

Member Avatar for navedalam
0
92
Member Avatar for Sheena26

i need help on my project 1. Write a program that will print out statistics for eight coin tosses. The user will input either an “h” for heads or a “t” for tails for the eight tosses. The program will then print out the total number and percentages of heads …

Member Avatar for Sheena26
0
1K
Member Avatar for Ajinkyanaik
Member Avatar for James singizi

How can one write a c password program that accepts only 3 attempts of password input

Member Avatar for navedalam
-1
99
Member Avatar for f.damati

Hello everyone, I wrote a c program in order to write 5 students records (name, ID and average) to a file. Now the difficult step is to firstly to find the highest average among students. Have anyone any clue how I can do this? Thank you

Member Avatar for WaltP
0
93
Member Avatar for VP2

Memory allocation. Pretty simple, but I guess there might be some people here who do not know what it is... [CODE]#include<stdio.h> #include<iostream.h> int main() { int *n = new int; *n=12; printf("n's value is %d\n",*n); *n=25; printf("n's value is %d\n",*n); delete n; printf("n was deleted\n"); system("PAUSE"); return 0; } [/CODE]

Member Avatar for WaltP
0
348
Member Avatar for efronefron

The problem is I use malloc in the last function(toString()). I just wanna know if there is anyway to free it? or that I dont have to? Thanks [CODE] #include<stdio.h> #include<string.h> #include<stdlib.h> #include<ctype.h> /* Function prototypes */ void process(char input); void update(char words[][51], int position); char * toString(char character); /* …

Member Avatar for WaltP
0
210
Member Avatar for anirudhruia

for(j=0;j<3;j++) { repeat:if((int*)ch[j][l]>(int*)ch[j+1][l]) { strcpy(tmp,ch[j]); strcpy(ch[j],ch[j+1]); strcpy(ch[j+1],tmp); } else if((int*)ch[j][l]==(int*)ch[j+1][l]) { l++; } goto repeat; } for(i=0;i<3;i++) { printf("%s",ch[i]); } return 0; NOt gettin any output

Member Avatar for navedalam
0
121
Member Avatar for lochnessmonster

How do i prevent a C string input from the user from exceeding the capacity of the array? is this not possible? [code]int main() { char buffer[8]; printf("enter a string"); scanf(%s,&buffer); return 0; }[/code]

Member Avatar for navedalam
0
73
Member Avatar for ticktoc09

Im a noob in C and I got this simple code working.. [CODE]#include <stdio.h> #include <conio.h> #include <string.h> int main () { char str1[20]="burke",str2[20]; printf("Dog's name?:"); scanf("%s",str2); if (strcasecmp(str1, str2)==0){ printf("Gratz you got it",str2); } else{ printf("Wrong Answer!!!"); } getch(); } [/CODE] My problem is what if instead of "burke" …

Member Avatar for navedalam
0
114
Member Avatar for b56r1

Hi, can anybody help me with this program output. Program is based on GCC compiler standards [CODE=c]#include<stdio.h> main() { int *ptr=10,j; j=ptr+19; printf("ptr=%d\n",ptr); printf("j=%d\n",j); } [/CODE] [CODE=text]output: ptr=10 j=86[/CODE] when ptr value is 10 in statement "j=ptr+19", why the j value is 86??

Member Avatar for gerard4143
0
117