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.

~8K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums
Favorite Tags

11 Posted Topics

Member Avatar for Madawar

Why is this not working [CODE]//Character Manipulation #include <stdio.h> int main() { int x; //for loops int counter=0; //for input char character; char sentence[20]; printf("Press 1 to use getchar \n Press 2 to use gets \n Press 3 to use sscan \n "); scanf("%d",&x); switch(x) { case 1: printf("Enter something"); …

Member Avatar for plebbeh
0
1K
Member Avatar for fg_aa_c

Use fread, fwrite functions they are in the standard C. In my Fedora when i create files with write i can,t also read them never researched why it doesn't work. e.g [CODE] /*Code for writing and reading from file*/ #include <stdio.h> #include <stdlib.h> #include <unistd.h> char sentence[100]; char filename[100], fname[100]; …

Member Avatar for Madawar
0
140
Member Avatar for Madawar

Hello i want to create a file crawler that lists all files in hard disk using directory functions in C i have been able to list files in one directory only and haven't been able to crawl through other directories and sub-directories this is what i have so far. [CODE] …

Member Avatar for Madawar
0
429
Member Avatar for SeanC

[QUOTE=SeanC;1306609]I'm trying to create a method which checks if a certain text file is empty, and if so it deletes it. However, the program seems to freeze for one reason or another when executing this part. [CODE]try { BufferedReader in = new BufferedReader(new FileReader("File List.txt")); String str; while ((str = …

Member Avatar for SeanC
0
2K
Member Avatar for midget66

[QUOTE]You need to specify that you want &arayvalues[n] on line #10. Your second loop should be to 10 unless you want to add only the first 5 values together. Give yourself a small challenge and see if you can do it all in one loop. [/QUOTE] Hello line 10;[CODE]scanf"("%d", &arayvalues);[/CODE] …

Member Avatar for midget66
0
107
Member Avatar for Madawar

Hi, Am a self teaching Newbie Assembly programmer :) Still in the theoretical Stages. My question is.... [B]According to the book am reading When you convert 254(decimal) to hexadecimal you get 0FEh. And when you convert -2(decimal) to hexadecimal using two's complement you get OFEh.[/B] When i do it manually …

Member Avatar for Madawar
0
4K
Member Avatar for kymarscheng

I prefer Net Beans coupled with gcc on Linux right now... Visual Studio is also cool...

Member Avatar for tokenjoker187
0
269
Member Avatar for Madawar

Hi, I recently started using Linux and have come to find that it suits me better than Windows. I am a newbie in C/C++ programming and my questions are [LIST=1] [*]How suitable is Linux for learning C/C++ programming as most of the books i have come across are based on …

Member Avatar for lionaneesh
0
130
Member Avatar for socal

Hi socal You must be a c++ programmer because we dont have methods in Java we have methods.. otherwise i think the problem is that the [QUOTE] public void overdraft(double balance, double minBalance, double fee) { if (balance < minBalance) balance = balance - fee; else balance= balance + deposit; …

Member Avatar for NP-complete
0
128
Member Avatar for Java1990

I think you can do it anyway with sub-string or charArt(x)... I think with charArt is easier. Following the K.I.S.S rule. I tried recraeating the whole code.Please note that my code only tests for the occurence of the first letter of the sentence will try finishing the code during this …

Member Avatar for Java1990
0
210
Member Avatar for Guru.M

The End.