Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for ahspats

i have to write a program, in which i have to make pointer to point to the character, where it last occured in a string. For example: String: Lord of the rings Character: r Pointer points to the last 'r' in the string, that is in the word 'rings'. If …

Member Avatar for yasin.uohyd
0
210
Member Avatar for ahspats

How could one find the length of longest row of same elements in a list. For example if i have a list list = [0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1] and i …

Member Avatar for woooee
0
123
Member Avatar for ahspats

i want to write a simple app which does nothing else except that you can drag an image in a window(simply clicking somewhere on the screen and moving mouse while holding the left button down). The problem is that my image moves only once and only a little bit and …

Member Avatar for masterofpuppets
0
377
Member Avatar for ahspats

so my program has to read data from text file and pass it to the function. text file contains integer and string in every line. it looks like this: 23456 john 96512 martin 56985 wendy i've written it in C using this code: while (fscanf(filestream, "%d%s", &key, &value) == 2){ …

Member Avatar for csurfer
0
158
Member Avatar for ahspats

I'd like to implement a sorting algorithm(quicksort or bubblesort or mergesort... it doesn't matter. anything that sorts is ok) into my insert function, so that everytime i create a new element it'll be inserted into right position. The variable listptr is the pointer pointing to the address of the first …

Member Avatar for Luckychap
0
137
Member Avatar for ahspats

have a very simple question: how can i write something into a .txt file? could write only few lines of code and got stuck. have no idea what to do next. can someone help? [CODE] #include <stdio.h> int main(){ FILE *textfile; textfile = fopen("test.txt", "w"); return 0; } [/CODE]

Member Avatar for ahspats
0
90
Member Avatar for ahspats

i have to write a program that deletes special characters from a phone number. For Example: (0049)5599/85675-344 0049559985675344 i have started to program it, but it doesn't seem to function. here's my code: [CODE] #include <stdio.h> void affe(char nummer[]){ int n , i, z; n = strlen(nummer) - 1; for …

Member Avatar for ahspats
0
122
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
139