68 Posted Topics
Re: [QUOTE]Hi, this is my first time posting to this forum so please let me know if I'm doing anything wrong.[/QUOTE] I'm fairly new here also, so I can't tell ya...But as a general rule, I think it is best if you try to search for things on your own before … | |
Re: uhh it seems like your just posting every question from an assignment...what are YOUR ideas to begin with? EDIT: I apologize, I didn't mean for that to sound harsh, I just want to ensure that you are learning as well, because that is what matters most. It is always best … | |
Re: Errr...well, if you are dealing with positive integers only, you could construct a loop, then on each iteration through the loop, subtract one from each of the numbers, and the first one to reach 0 is the smallest; the last one to reach 0 is the largest... hahaha it models … | |
Re: Ummm I'm not quite sure if this is what you are looking for but to keep the console open you could just type the code: [code]sytem("pause");[/code] (i.e. replace cin.getLine(aLine) with that) EDIT I'll take a look when I get home...busy now | |
As I've been reading various threads on this forum, it seems to me that a lot of people are advocates of vector data structures. Coming from C, I don't tend to use them a lot...I was just wondering if anyone could tell me how vectors are implemented (at the machine/memory … | |
Re: Of course you can allocate memory from the heap during runtime so that the memory doesn't need to be allocated at compile-time, except then you would have to explicitly manage the memory... Anyway, my point was that if you are going to explain the limitations of a fixed size array, … | |
Re: Ummm well, left and right click gets into events and event handling...that is, Win32 programming. I suggest you start by doing some google searches on this topic ;) As an added bonus, if you learn Win32, you can leave the boring old console and start making pretty GUIs...haha | |
Re: you mean like this: [code]//Code goes here[/code] If so, its like using an html tag (if you know what I mean...) In any case, you type "code" in square brackets [] --> [ c o d e ] (without the spaces). Then you insert your code. Then you type "/code" … | |
Re: What part do you need help with? I seem to keep saying this to everyone...but have you attempted the problem yourself yet? If so, where are you stuck? If not, I suggest you first give it a go, write down on paper some flowcharts...do some problem solving ;) Then post … | |
Re: The best way (I find) of troubleshooting is to just stick a whole bunch of print statements in your code ( printf()...or I guess you could use cout no difference). If you stick specific print statements before and after each loop, you can tell whether your program made it to … | |
Hey all, I have recently become interested in trying to automate various MS Office applications using C++... I was writing some macros in Excel to update some databases that I work with, and decided it would be cool if I could sort of wrap the entire process in a C++ … | |
Re: What do you need help with? Have you done any work on it yet on your own? If not I suggest: 1) Think about it a bit on your own. Think about how the program has to flow, what kinds of decisions you will need to make...in general how you … | |
Re: Well....first you need to decide on a sorting algorithm. There are TONS of different ways to sort, I saw a post about a bubble sort, which is a very easy-to-write but inefficient sort, you could do some research about insertion sorts, quick sorts, merge sorts...Like I said, there are tons … | |
Re: Have you attempted anything on your own? If not, I suggest first mapping out (conceptually, or on paper) exactly what you have to do. Create a flowchart for program flow if you have to... For example, a simple diagram of flow could be: get input from user --> save input … | |
Re: [QUOTE] 1. A program in C++that alows you to visualize in a table the areas of a circle, and the volume of a sphere for a radio, with a range from 0 to 2, rising by 0.2 [/QUOTE] visualize in a table how...I'm not totally sure I understand what is … | |
Re: Using the incrementor before a variable will first increment the value of the variable and then use this value. Using the incrementor after a variable will use the current value of the variable, and then increment the variable after. This is generally just a shortcut or "code-condenser". If the syntax … | |
Re: I tend to just use arrays of characters as strings....I find them more versatile (and have recently been programming in C, so...) | |
Re: This seems to me like it is just a delimiting problem... That is, if each link is separated by "<", then u simply need to copy each character that occurs up until this... Unless I am over-simplifying the problem, all I would do is just a tokenized approach: move through … |
The End.