Posts
 
Reputation
Joined
Last Seen
Ranked #223
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
94% Quality Score
Upvotes Received
33
Posts with Upvotes
28
Upvoting Members
21
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
17 Commented Posts
0 Endorsements
Ranked #505
~90.2K People Reached
Interests
Programming
Favorite Tags
c++ x 155
c x 99
perl x 5
java x 3
Member Avatar for Zcool31

Hello Everyone! I'm using C++ to write a small 2D app with SDL and OpenGL. I'm trying as much as possible to keep my code cross-platform. However, I've hit a bump. I can't find a good, easy way to display text on the screen. I am able to do it, …

Member Avatar for BeautyBeast
0
1K
Member Avatar for AJones

Hi Folks: I just installed Dev-C++ 4.9.7 beta 7 and compiled a simple "Hello World" console app, I get a lot of error related to iostream.h file not being found. Dev-C++ is installed in C:\Dev-Cpp\ directory, Has anyone else have had this problem. Thanks AJ

Member Avatar for Wajid sardar
0
2K
Member Avatar for bops

Hi again everyone, Im running into big trouble with my compiler Dev-C++, every time i compile any project, whether it is 1 im working on, or a completely fresh 1 I get the same error every single time, I have been on the bloodshed forums and IRC channel but Im …

Member Avatar for muhammad raees
0
25K
Member Avatar for MadnessCow

Hi guys. I'm pretty new to C program. I've been given this assignment to write a program that asks the user thow many terms of the serires equation to use in approximating PI. The formula given is pi=4X(1- 1/3 + 1/5 - 1/7 + 1/9 - 1/11 + 1/13 - …

Member Avatar for Adak
0
6K
Member Avatar for Coach_Nate

I was wondering if there is any way to parse integers from a string (like in java)? Anyone know of a built in function in c++?

Member Avatar for rubberman
0
256
Member Avatar for Majoni

When reading characters from standard input what does it mean when you are asked to sop on hitting EOF in the input?

Member Avatar for gourav1
1
349
Member Avatar for johnray31

Hi , I need to parse a file that contain linux interface information. My file text is like below [QUOTE] Interface ge1 Hardware is Ethernet Current HW addr: 00a1.2599.0003 Physical:00a1.2599.0003 Description: BC3 - Slot 3 (Phys Slot 7) index 5001 metric 1 mtu 1500 duplex-full arp ageing timeout 0 <BROADCAST,MULTICAST> …

Member Avatar for dwks
0
126
Member Avatar for lotsofsloths

Ok, im not that much of a geeky smart guy in C++, but i've got some skillz.. so im trying to make a [B]very[/B] [B]simple game[/B] that will randomize 1 number for the computer and 1 number for the person using the program and whomever(person or computer) gets the highest …

Member Avatar for ichigo_cool
-1
1K
Member Avatar for Mona..

Hi.. please help me with this problem I want to output stars in this shape: * * * * * * * * * * * * * * * * just give me the idea to do this in an recursive function ?? i tried but its not showing …

Member Avatar for Mona..
0
955
Member Avatar for SoulMazer

Hi, I'm in the process of writing an Android game, and I need just a little bit of help with some physics. I do not wish to implement an entire physics engine, as, 1) I have already tried the Java port of Box2D on an Android device, and there is …

Member Avatar for dwks
0
130
Member Avatar for minskypooh

The problem is to create a console-based program that prompts the user for name, student number, course, and grade (50-100 whole number only). After the input, a message should be displayed depending on the grade. The program should display an error message and terminate immediately if there is an invalid …

Member Avatar for minskypooh
0
194
Member Avatar for Deepak20

package sha; import java.security.MessageDigest; /** * * @author deepak */ public class Sha { public static void main(String[] args) throws Exception{ MessageDigest sha = MessageDigest.getInstance("SHA-1"); byte [] i1 = args[0].getBytes("UTF8"); sha.update(i1); byte[] hash = sha.digest(); System.out.println ("Result: Success"); // Display plain text and digest System.out.println ("Original plain text was : …

Member Avatar for Deepak20
0
200
Member Avatar for ayesha91

HEllo this is reaaally urgent, the deadline is within less than an hour and thirty minute, and I lost hope that I can fix the problem myself. I know it has to do with pointers and allocating memory dynamically. The assignment was to use operator overloading to add two sets …

Member Avatar for dwks
0
164
Member Avatar for lochnessmonster

comment should explain what im trying to accomplish...not sure how i should approach this problem tho [CODE] fileWork::fileWork(const std::wstring& processName,const std::wstring& fileName) // i want to use initializer list, but how can i do so if i want the function arguments to be checked first...before any class members are initialized? …

Member Avatar for dwks
0
87
Member Avatar for Katya

Hi everyone![I] I need to write program that will find the average of 20 element array and also display the number of each number in the array occurs.[/I] [I]I have sorted average number but straggle with "number of occurrences". Please help!!!![/I] [code=c] #include<stdio.h> #include<math.h> main() { float avg,sum=0; int i,j; …

Member Avatar for alekhya.p123
0
518
Member Avatar for Fzn10

Hi, i have the following defined on top of the program in C #define Mess1 "\n\rWaterflow Sensor"; in my main i have the following written:- AsUSARTsendBytes(Mess1); The function being called is like that void AsUSARTsendBytes( char *bytes ) Something however is going wrong the compiler is giving the following message:- …

Member Avatar for sruthivin
0
95
Member Avatar for jan1024188

I have a problem....I wrote program which makes computer beep, but there is no beep when executing a program. I included [B]windows.h[/B] header, defined [B]speed[/B] and wrote following line [CODE]Beep(2750, speed);[/CODE] Why there is no beep?

Member Avatar for +_+man
0
385
Member Avatar for Mobius1234

print"Enter the number of Cricketers: "; $list=<STDIN>; chomp $list; until($list<=0) { print"Enter Cricketer name: "; $name=<STDIN>; print"Enter a number: "; $number=<STDIN>; chomp $number; $list--; push(@names,$name); push(@numbers,$number); } print"Cricketer's name and the corresponding number are\n"; format STDOUT=@<<<< @>>>> "@numbers", "@names" . I have this code. The question is "Write a program …

Member Avatar for onaclov2000
0
112
Member Avatar for explorepython

Hello all, After googling around for a few hours i can't find any example for passing arguments to an user-defined method in pyqt.. The only link i found related to this is [URL="http://www.commandprompt.com/community/pyqt/x1408"]http://www.commandprompt.com/community/pyqt/x1408[/URL] . In this example we have to make it to emit the signal and pass the argument.. …

Member Avatar for explorepython
0
1K
Member Avatar for johnyjj2

Hello! I try to follow steps mentioned here ([url]http://www.speechforge.org/projects/cairo/install.html[/url]). The first thing is about JMF. I downloaded jmr-2_1_1e-linux-i586.bin (the other thing is that I've got 64 bit computer). I found [url]http://www.luniks.net/luniksnet/html/java/jtvd/doc/jmf.html[/url] . I executed bin file in /usr/lib as it is written in this mini-howto. Then I edited /home/mainaccount/.bash_profile file …

Member Avatar for johnyjj2
0
209
Member Avatar for hdef

The program gets the hexdump of a file and saves it in a text file (temp.txt). The program should then get the contents of temp.txt and two other text files (virus1sig.txt & virus2sig.txt) and display them. The problem is only the contents of virus1sig.txt & virus2sig.txt are being displayed. Thank …

Member Avatar for hdef
0
142
Member Avatar for Hatem Faheem

I'm working in implementing an elevator the project is about a building which has 2 elevators working together I wrote a function (switch) to determine the direction of each elevator and that's my code [CODE] if( E1.loc == E2.loc ) { if(upup1!=0 && dndn1!=0) { E1.status='u'; E2.status='d'; } else if(upup1!=0 …

Member Avatar for dwks
0
113
Member Avatar for lrh9

(A quine is a program that produces its own source as its output, typically to a file.) [CODE=Python]import sys ifile = sys.argv[0] counter = 0 istream = open(ifile) source = istream.readlines() source[2] = 'counter = ' + str(counter + 1) + '\n' if counter == 0: original = str(ifile) source.insert(5, …

Member Avatar for dwks
0
159
Member Avatar for Silvershaft

Hey! I've been looking into game development recently and decided to start learning, I have good base on C++ so language isn't problem. I came across these 2 libraries, SFML and SDL, they break opinions so I would like to hear which you guys suggest! Thanks

Member Avatar for Silvershaft
0
568
Member Avatar for johnray31

hello guys here is a problem when i was written a simple demonstrative linklist program i got the[B] general protection error[/B] ([B]**one more question i need ur guide i have the turbo c++ compiler but this does not support when i write #include <iostream> using namespace std; plz tell me …

Member Avatar for vibhu1
0
226
Member Avatar for pymatio

I have this code: [icode] #include <unistd.h> #include <iostream> #include <string> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; void add(char todo[], string priority, string home){ FILE *file; file = fopen(home.c_str(), "a"); fprintf(file, "%-50s| %-6s\n", todo, priority.c_str()); fclose(file); } void list(string home){ string line; fstream file(home.c_str(),ios::in); int …

Member Avatar for Ancient Dragon
0
228
Member Avatar for Belthemet

[B]#Off topic[/B] When I was logging in, I have noticed 600,00x members registered on this forum. Congrats on the 600k! ;) Hello. My console game is going pretty well, even though I don’t have much spare time to expand it. I have some ideas I would like to add, but …

Member Avatar for Belthemet
0
258
Member Avatar for stromgren

Dear Community Members! I have written a program in plain C to carry out some mathematical calculations. Now I am trying to identify bottlenecks using a profiler (IDE: Open Watcom 1.8). I find that a very large portion (60-79%) of the running time is used by ntdll.dll. The core program …

Member Avatar for stromgren
0
288
Member Avatar for Joe Shmoe

I am trying to make a file extraction program in C and I can't get it to work. It compiles ok, but it has a run-time error. I hope you can figure out what I am trying to do here. I don't know if there is a standard way to …

Member Avatar for Joe Shmoe
0
142
Member Avatar for Aprentchacker

Please help me undersatnd why this code does no work, even when it compiled without problems. After I have input the filename the application just hangs up and aborts thereafter. My input file contains the graph' adjacency matrix and the application is supposed to pull this data from the file …

Member Avatar for Aprentchacker
0
162