Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
Member Avatar for Dave Sinkula

Many times [inlinecode]strtok[/inlinecode] is recommended for parsing a string; I don't care for [inlinecode]strtok[/inlinecode]. Why? [list][*]It modifies the incoming string, so it cannot be used with string literals or other constant strings. [*]The identity of the delimiting character is lost. [*]It uses a static buffer while parsing, so it's not …

Member Avatar for anti_neoliberal
0
10K
Member Avatar for waldchr

Hi I am writing a 2D game that only uses the arrow keys for input. I have done a search on this site fro ways to get input from the arrow keys and have come up with many solutions. However all of them use the getch() function. Normally this would …

Member Avatar for Cosmin871
0
629
Member Avatar for waldchr

Is there a way to have a java program resize and use (move mainly) open windows on the desktop? I'm assuming I would need window hooks, but am not sure. I am writing a pong game that uses windows as the paddles and balls, and thought it would be more …

Member Avatar for leiger
0
72
Member Avatar for waldchr

I burned a CD on windows Vista with files/programs I need on a mac laptop, but when I insert the CD, nothing happens. I was told that an icon is supposed to come up on the desktop, but none do. I am extremely new to mac (got it 1 day …

Member Avatar for hughv
0
47
Member Avatar for BestJewSinceJC

Hey guys, I bought a new computer with 4 gigs of ram, 64 bit windows vista OS, dual core 2.4 ghz processor. . and I'm having some problems with it. Firefox frequently seems to mess up. Sometimes it won't stop loading a page when I click 'X', it will become …

Member Avatar for goldeagle2005
0
251
Member Avatar for waldchr

Is it possible to change the desktop background, hide the desktop icons, and hide the menu bar (in windows) using a batch script? If not, could someone direct me as to how to do it in C/C++? Thanks

Member Avatar for waldchr
0
94
Member Avatar for NewToThis

I keep getting a 'illegal start of an expression' and ')' expected on a loop line for a program that counts and compare ten numbers and displays the largest. I have checked for "{}" and "()" parity, and also for ";" at the end of my statements; but the following …

Member Avatar for cgeier
0
121
Member Avatar for waldchr

My house has two computers both networked together. The one upstairs runs vista, and the one in the basement runs XP. Recently the printer we had hooked up to the XP computer broke, and I am trying to network the printer upstairs (Lexmark Z611) to the one downstairs. I am …

Member Avatar for kaninelupus
0
150
Member Avatar for Denxerator

Okay so, It's my first time on C++. They say you can use C++ to make games, so I want to learn about C++. (remember I'm a big newbie) So my question is, how does C++ work? Like if you put the C++ code in notepad, save it, open it, …

Member Avatar for mvmalderen
0
178
Member Avatar for TrintiyNoe

Hey,can u ppl tell me a simple way of converting a string into a integer? I have something like [ICODE] string str1 ("1000"); string str2 ("2000"); [/ICODE] i wanna convert them into integers and add them,any idea how?

Member Avatar for TrintiyNoe
0
125
Member Avatar for XTRobot

Hi again,first i must say that i am familiar with c++ but only console programming. I am beginner so can you please be more gentle. I want to move on programming with buttons,windows,check boxs,input box and so on,i have heard of API and GUI what is the diference ? They …

Member Avatar for XTRobot
0
261
Member Avatar for waldchr

I am writing a portable desktop for my flash drive as an alternative to the portable "menus" that you can download. I need to know how to drag a link from somewhere on the screen (eg desktop, start menu or windows explorer) and drop it in my program. It also …

Member Avatar for waldchr
0
132
Member Avatar for lotrsimp12345

#include <iostream> using namespace std; #include "Interface.h" void timer::start() { if(! running) { begin=(unsigned int) clock(); running=true; } } void timer::end() { if(running) { finish=(unsigned int) clock(); running=false; } } int timer::elapsed() { if(running) { return((unsigned int) clock()-begin); } else { return finish-begin; } } int timer::output(unsigned int seconds) { …

Member Avatar for waldchr
-1
82
Member Avatar for waldchr

I have recently upgraded from Allegro 4.2 to Allegro 5 and am trying to upgrade some of my programs. I came to a program that tells the user a ton of info about the computer it's running on such as the operating system. In Al 4.2 I could just use …

Member Avatar for waldchr
0
111
Member Avatar for waldchr

I need to know a way to open a notepad document from one of my programs without opening a console window. The calling program is a standard window, so it would look bad if a console widow opened. There are a couple of things you should be aware of as …

Member Avatar for waldchr
0
208
Member Avatar for waldchr

After much frustration of trying to figure it out on my own, I am finally ready to admit that I need help. Does anyone know how to compile allegro 5? (or better yet have a precompiled version I could get my hands on) I have tried many tutorials and none …

Member Avatar for mvmalderen
1
615
Member Avatar for viki0077

I made this small C++ program, and it won't compile. Please if someone can help me to fix these 2 errors: error C2059: syntax error : ';' error C2059: syntax error : '}' The text is not in english, but it doesn't metter, just these 2 syntax errors so it …

Member Avatar for waldchr
0
162
Member Avatar for waldchr

I have recently finished a program that deals with the periodic table. My chemistry teachers said that they would like to have a copy to use in class and I need to figure out what it's worth. If you think you can help, let me know what you need to …

0
72
Member Avatar for dulahdaglace

i want to read to a 2d-array from a file, but for some reason the file is not opening (at least thats what the output says) [code=cplusplus] #include <fstream> #include<string> #include <iostream> using namespace std; int main(){ string filename; cout<<"Please type the name of the file"; cin>>filename; fstream file(filename.c_str());//same result …

Member Avatar for dulahdaglace
0
241
Member Avatar for waldchr

I am working on a fairly large project for my chemistry teacher (NOT homework!). I thought that it would be nice if the program could search a file for a user entered string and display all lines that had that string. I have gotten it as far as I can …

Member Avatar for waldchr
0
72
Member Avatar for waldchr

Does anyone know why if I hover my mouse over an "if" statement in Dev-C++ it comes up with a tool tip: "Sometimes headers get that do if"??? It happens with types to: "...get that do long" or "int". What is going on?

Member Avatar for Ancient Dragon
0
72
Member Avatar for waldchr

Hi I have been working on a project that requires me to be able to search a file for all occurrences of a string and store the entire line that contains a single occurrence of that string a an array of characters. For example: Search: web File: Time James [U]Web[/U]ster …

Member Avatar for waldchr
0
91
Member Avatar for waldchr

With all The windows 7 hype going around I was thinking about downloading and installing the beta. First off, would I be able to keep Vista and my computer as it is intact or would windows 7 overwrite what I have going now? I guess what I'm really asking is …

Member Avatar for waldchr
0
104
Member Avatar for waldchr

HI For Christmas I got a book on game programming with allegro. I went through the process of setting up the files and ran, compiled, and linked the program only to find that depending on which compiler I used (Dev-C++ or VC++ 2008) it came up with different errors saying …

Member Avatar for waldchr
0
97
Member Avatar for waldchr

This seemed like the best place for this question, so if it isn't please let me know. I am looking at buying a new computer and I have narrowed it down to two from Dell. Both are customizable but neither have all the features I want. The Specifications are listed …

Member Avatar for jbennet
0
146
Member Avatar for waldchr

This goes out to only the users of Dev C++ (or people knowledgeable with this compiler). I am trying to consolidate all of the files needed to run Dev C++ onto a flash drive so I can use it on multiple computers. I have been having problems getting the app …

Member Avatar for waldchr
0
169
Member Avatar for waldchr

Hi I was wondering how to create a window to run my programs in. It talks about it in many posts but I couldn't find anything on how to actually make one. I have no idea where to start so you will need to tell me pretty much everything (e.g. …

Member Avatar for Duoas
0
85
Member Avatar for waldchr

Hi I have a program i was writing to solidify my knowledge of files and how to handle them. I seem to have hit a snag though. What the program does is create files based on a user inputted date and allows them to add content to the files (kind …

Member Avatar for waldchr
0
118
Member Avatar for waldchr

Hi I am relatively new to c++ but have written a program that would benefit from a little background music. I need it to be mp3 format. I am using dev c++ on windows XP. can anyone help?

Member Avatar for waldchr
0
197