Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
60% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
2
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
~64.3K People Reached
Favorite Tags

126 Posted Topics

Member Avatar for Yustme

As posted, it won't work. It needs a semicolon after the uppercase function. [code] void main(){ char text[] = "TessSSttTTinGGG"; printf("output = %s", text ); uppercase(text) printf("Output = %s", text); //text now has all entries in uppercase. } [/code] [code] int uppercase( char *sPtr ) { while( *sPtr != '\0' …

Member Avatar for brcsur
0
9K
Member Avatar for Kiba Ookami

To quickly answer the original query (though this is an interesting discussion) There are many languages because well, people needed code systems that could do some process. They were abstracted up from machine language, and at the lowest levels, they do mostly the same things, but: Some languages have better …

Member Avatar for Mrewan79
0
755
Member Avatar for jepapel

If you're allowed to do other encryption schemes, just use the XOR operator with a character mask. Byte-level mixing is quick and dirty. Pretty easy to crack, though.

Member Avatar for slumburock
0
4K
Member Avatar for sandeepalankar

I got my job on a simpler question; a bit-level reverser. Thankfully, I picked up on the pattern fast enough that I didn't look too foolish. Anyway: I'm not sure I understand the initial question. When does this guy (who should wear glasses or goggles; dirty contacts are dangerous!) know …

Member Avatar for WaltP
0
179
Member Avatar for vissure

[Edit: Post removed due to misinterpretation of the question. Assumed pre-check was possible]

Member Avatar for Sandeep Shetty
0
276
Member Avatar for Loaded Scissors

I think he means look at the .h file to see if it has any helpful descriptions. It's highly probable that you don't have the graphics.h file, but try the #include <graphics> and see if that works. What do you want to see? An ascii art graph? A bitmap image? …

Member Avatar for triumphost
0
202
Member Avatar for karen_CSE
Member Avatar for hammadk
-1
2K
Member Avatar for KimJack

All I can think of is a really annoying set of dynamically-allocated arrays. Or a linked list. Or, determining what the maximum length is, finding all the words that are that long, creating a loop to store all the words in some data structure... Probably easiest to do this with …

Member Avatar for genext.brite
0
2K
Member Avatar for m7r23

Though the question has been answered, 'where to start' is important. Before you start coding, always think out what you want the program to do on paper. For this particular problem, what you need to think about is: [quote] If I can find the largest number, how can I use …

Member Avatar for jeevsmyd
0
184
Member Avatar for NubKnacker

Nah. They probably have Curta hand calculators, like I do... I can just imagine the back rooms at NASA... people with Curtas, sliderules, and abaci on bandoliers...

Member Avatar for jemy
0
342
Member Avatar for Drowzee

Hello, all. After trying to wade through a great deal of undocumented and uncommented code in order to speed up a frame capture rate, I've decided that, for my sanity and that of my boss and any coders to follow me, I should start over and write it myself. I …

Member Avatar for xorcrud
0
194
Member Avatar for hmadison1984

There's a number of ways to do this. What you're looking for is constant-width columns, correct? For the dates, this isn't too bad, because you just have to do a check based on if the value will be less than ten, and zero/space pad the value in formatting. For the …

Member Avatar for WaltP
0
225
Member Avatar for aq5

Yes, just follow this link: [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] In this case, if you really have no idea where to start, I suggest you first at least try to write out what your program is supposed to do. For a rather simple program such as this, you can easily decompose the game into …

Member Avatar for Murtan
0
458
Member Avatar for karen_CSE

Nice to hear from you again. Looks like you've really improved! Unfortunately, my schedule is much tighter these days, so I don't have the time to help you out explicitly, but perhaps this may help... [url]http://cplus.about.com/od/beginnerctutorial/l/aa051802a.htm[/url] It's a simple tutorial for file I/O. I hope it's helpful.

Member Avatar for Narue
0
423
Member Avatar for Comatose

If she opts to stay with the forums, I'd like her to continue as a moderator. But primarily: I just don't want her to leave entirely, as her blunt honesty and experience are just what I needed when I first arrived, and even though I'm not doing C/C++ work right …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Drowzee

Hello, again. My time is nearly up on the Ultrasound GUI I've been working on, and I've got one last major feature to implement: continuous capture at a user-selected 1 to 30 frames/second rate. In the past, I've tried running a loop that would take all the pictures, but for …

0
113
Member Avatar for ravenous

looking at the strings library, you could do the following: [code] char *ptrtocomma; if(ptrtocomma=strchr(Inputstringname, ',')!=NULL) { outputarray[i]=*++ptrtocomma; i++; } [/code] strchr returns a character pointer to the first occurance of the second argument (a character) in the character array designated by the first argument.

Member Avatar for WaltP
0
1K
Member Avatar for bops

More precisely, look for spaces ONLY after characters. That will help you a great deal with tabs and incorrect spacing.

Member Avatar for Narue
0
179
Member Avatar for Jean5

Er, why would you protect shareware? Nowadays, I thought shareware was pretty extinct. Back in the days of 14.4, there was a call for shareware since you'd be able to order it from a catalog, but with the connections available today (not to mention piracy), I got the impression that …

Member Avatar for DMR
-1
186
Member Avatar for nizzy1115

Wish I'd read this and the wiki before I went off in the other 'save the internet' thread. I have a dim view of 'free market economics'. I don't trust it, really. In theory, competition is healthy. In theory, companies will work to improve their services or lower costs to …

Member Avatar for The Geeky Kid
0
622
Member Avatar for Starfighter330

Sounds like you could use an array to store all those numbers, then have an [code] int sum [/code] that you'd use to hold the cumulative sum of the temperatures as you looped through the array. Something like this: [code] int temp[5]; //I forget how to assign values at initialization, …

Member Avatar for VinC
1
8K
Member Avatar for Drowzee

Hello, all. About two years ago, I built myself a nice system. Last month, during record-setting heat, I turned it off one night, and it wouldn't work when I next powered it on. The first time, it got through POST then said that the registry was corrupt and rebooted. It …

0
91
Member Avatar for Drowzee

Hello, everyone. It's been a while. I'm still working on the same Ultrasound machine GUI, but I'd taken time off for summer courses. Fortunately, thanks to the help I received here, I have made great advances in my program over the previous coder's attempt, but I'm now facing a bit …

1
83
Member Avatar for Drowzee

This is an offshoot of a specific problem I've posted in the C# forum. However, it applies to C++ as well. If you have opened a file, specifically, an image file, but would like to rename (or, as MSDN says, 'move) the directory the file resides in, what are the …

Member Avatar for Drowzee
0
436
Member Avatar for Drowzee

I have a fairly simple set of controls that make up an image viewer. The goal of this software is to allow image captures to be stored in a temporary directory, viewed in the image viewer, and then have the user able to choose to delete or save the contents …

Member Avatar for Drowzee
0
163
Member Avatar for Woobag

The first version you posted is explicit, and, in my limited experience, is unnecessary. Just use the second version if you have no input arguments; there's no difference.

Member Avatar for Drowzee
0
152
Member Avatar for rixius

This is also something that has been reported on by NPR. Call 'em ultraleft if you want, but you'll be wrong. The arguments posed by the telecomms are rather flimsy, in my view. And given the lack of knowledge/deliberate misunderstanding that has been displayed by the house and senate over …

Member Avatar for alc6379
0
472
Member Avatar for q8z

Remember, companies hiring programmers want 'excellent oral and written communication skills', so I suggest learning the English language (or whatever is most appropriate) before going into the debate of C# vs. VB. In response to your question, though: Version 1: You want to know which language will get you more …

Member Avatar for Killer_Typo
0
261
Member Avatar for cancer10

There is no Windows XP 2004. Because of that, we couldn't tell you if a real program is the same as an imaginary one.

Member Avatar for MIGSoft
0
174
Member Avatar for pangellu
Member Avatar for MIGSoft
0
94
Member Avatar for neno14me
Member Avatar for Drowzee

Hello, everyone. I'm working on rebuilding a GUI for an ultrasound machine and magnetic position sensor. I'm rebuilding the GUI because the previous coder's work ran too slowly, not allowing for the 30 fps capture rate that the (less useful) company-provided code was capable of. The original company code is …

Member Avatar for Drowzee
0
491
Member Avatar for degamer106

That's right. Typically, a linked list is presented pictorally as a box with an arrow coming out of it pointing to another box with an arrow pointing out of it, which in turn points to yet another box. The box is the struct or class that contains the pointer to …

Member Avatar for Drowzee
0
101
Member Avatar for Spasticmoose

I'm fond of simple games... Are you familiar with mastermind? You could play it with letters rather than colors if you're not comfortable with programming graphical elements. How about the classic puzzle, 'Towers of Hanoi'? You'll probably have an easier time because you're not trying to put it on a …

Member Avatar for Spasticmoose
0
172
Member Avatar for DotNetUser

It's a CWnd base, correct? [URL=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_cwnd.3a3a.setforegroundwindow.asp]How about 'SetForegroundWindow'?[/URL]

Member Avatar for DotNetUser
0
99
Member Avatar for tyczj

Assuming you're only doing odd-number size cubes (3x3, 5x5, 7x7, etc): I suggest the following approach. For the cube itself, there are two full-diagonal wins. If you think of the n x n cube in terms of horizontal and vertical layers, you get 2n. For example: a 3x3 cube has …

Member Avatar for Drowzee
0
1K
Member Avatar for grunge man

As Ancient Dragon says: A computer only knows binary, because all memory storage in a computer is determined by the state of the bit being on or off. It does not magically store 'A' or a decimal '65' in memory; It stores it as 0b100001, which it then converts to …

Member Avatar for iamthwee
0
365
Member Avatar for weehoong

How about serialization or XML? Would those help? As Lerner said, the problem is that if you have to make a dramatic change, you have to move the whole file. You have an option here, though. If you buffer every entry with a lot of empty space, you can use …

Member Avatar for Drowzee
0
406
Member Avatar for grunge man

I'm not a student, and I got plenty of help. You just need to know how to ask the questions. Look at the links at the top of the forum to help you get started. If you have a thread topic that's descriptive and you ask your question clearly, using …

Member Avatar for Narue
0
166
Member Avatar for gropedersen

You could create additional pointers to the linked list that you assign during the search functions (Pass the pointers as parameters). Then, once you've searched, you can continue to bring up information from those particular patients through the pointers which are still referencing to the same area in memory. Or, …

Member Avatar for gropedersen
0
162
Member Avatar for Lerner
Member Avatar for Narue
0
133
Member Avatar for Podge

Agreed. Two quarters (6 months) "Learning" C/C++ in college didn't help me even a tenth as much as hanging out around here and reading reccomended materials/doing exercises/making test code for three months. You don't need to spend money on a tutor if you can use the internet to search for …

Member Avatar for Podge
1
201
Member Avatar for degamer106

This is just my opinion, but if what you're writing makes sense, don't worry about making control logic as compact as possible until you start having large numbers of cases. I'd personally go with a switch statement like Ancient Dragon posted, but it's a matter of taste. The physical representation …

Member Avatar for degamer106
0
90
Member Avatar for Drowzee

I have a dilemma. I have a program that I was able to compile and run successfully when I first unzipped the files, but the buttons used to do frame acquisition were hidden off to the side. After I started making changes (I did NOT actually modify the code in …

Member Avatar for Drowzee
0
236
Member Avatar for Drowzee

Hello, all. I'm working on a new project now that I can talk about. I've been hired to fix code that performs frame capture and magnetic sensor telemetry. I haven't worked in C# before this, but it is similar enough to the work I was doing when I last frequented …

Member Avatar for Drowzee
0
107
Member Avatar for diddle

By asking people who do know? Hopefully the programmer weak at math knows enough to seek some sort of assistance from a book or message board...

Member Avatar for diddle
0
167
Member Avatar for 123abc

Post what you have, and people will help out. Otherwise, you may be asking us to do your homework for you, and we've got a rule against that. Sorry. As a hint, though: If you're working with ints, division by / gives the answer without remainder. The modulus operator % …

Member Avatar for 123abc
0
242
Member Avatar for mister-fett
Member Avatar for Drowzee
0
230
Member Avatar for SpS
Member Avatar for cuonggenie

Take a look at this: It'll help you along. [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] In other words, post code first, then we'll help. Some tips: Write down how you'd do this task without a computer if you could only move one pancake at a time. You'll need: A way to compare sizes. A way …

Member Avatar for Drowzee
0
92

The End.