68 Posted Topics

Member Avatar for marcelomdsc

[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 …

Member Avatar for marcelomdsc
0
100
Member Avatar for marcelomdsc

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 …

Member Avatar for marcelomdsc
0
100
Member Avatar for manzoor

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 …

Member Avatar for William Hemsworth
0
103
Member Avatar for Black Magic

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

Member Avatar for Nick Evan
0
138
Member Avatar for n1337

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 …

Member Avatar for Ancient Dragon
0
94
Member Avatar for manzoor

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, …

Member Avatar for Sky Diploma
0
847
Member Avatar for tondeuse34

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

Member Avatar for William Hemsworth
0
9K
Member Avatar for c++ newbie

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" …

Member Avatar for Ancient Dragon
0
244
Member Avatar for tekivia80

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 …

Member Avatar for Ancient Dragon
0
129
Member Avatar for c++ newbie

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 …

Member Avatar for Ancient Dragon
0
160
Member Avatar for n1337

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++ …

Member Avatar for n1337
0
313
Member Avatar for acetdmn

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 …

Member Avatar for n1337
0
596
Member Avatar for dan_e6

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 …

Member Avatar for dan_e6
0
100
Member Avatar for pooh2008

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 …

Member Avatar for Lerner
0
147
Member Avatar for Lechugas

[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 …

Member Avatar for Lechugas
0
107
Member Avatar for dan_e6

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 …

Member Avatar for William Hemsworth
0
14K
Member Avatar for dan_e6

I tend to just use arrays of characters as strings....I find them more versatile (and have recently been programming in C, so...)

Member Avatar for dan_e6
0
265
Member Avatar for CloudKill9

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 …

Member Avatar for Nick Evan
0
96

The End.