General C++ Programming - September 2011 (Page 10)

Trouble with i/o and file opening
 
I want my program to open a file when you run it, and I've done a lot of searching and found a lot of snippets, but nothing is working. Here's what I have: ...
[6 replies] Last: ShellExecuteEx() worked perfectly. The space before and after the file... (by Cory Jamnick)
precompiled headers not wanted
 
My build fails because precompiled headers are not found. how do not ask for them? or how do I make them. Excluding stadfx does not help
[5 replies] Last: Easiest way to remove them is to not use them in the first place. W... (by Disch)
system commands visual studio 2010 C++
 
Hi, I am using visual studio 2010. Im creating a program and i was wondering if it is possible to input a variable in with the system command for example user ...
[13 replies] Last: system is even more evil than goto. There are, under some very, very r... (by hanst99)
by Nikhar
Problem regarding data type conversion
 
The following is the problem to which I am attempting a solution (in fact I have found the solution, there's a small doubt in a concept):- Q4) Given...
[1 reply] : I mean shouldn't the output have been "51999/10000" Based on what w... (by Nisheeth)
how to implement Online transaction example using stack and queue in C++
 
hello guys, online transaction can be done by customer and he must enter all correct details otherwise the entre stack is to be thrown out. i have to use que...
[no replies]
by Zingam
string to char* and dynamic allocation???
 
Sorry for this noob question but I'm very uncertain what I'm doing here. I have this function to convert a std::string to char* char* stringToCharArray(std::s...
[9 replies] Last: ah, you're right, it's not. Well it depends. It's actually hard to s... (by Disch)
by BeFu
wxDev-C++ 7.3.1.3 DLL funcitions create / include
 
Hello, sorry for my English. I'm not a native speeker. I try to program with the free compiler wxDev-C++ 7.3.1.3 a DLL function and include this function ...
[no replies]
by secret
how to store names using array C++
 
i was trying to store name and in formation about an employee on an array that i will need at some times (print them later) but first name seem to be owerated b...
[2 replies] Last: k i haveto give it a try (by secret)
Got to next line from current line position in a file
 
Hi, I am just few months after starting to lean C++. I wrote the below code & it worked to retrieve a string from a file. Two variables to fine tune what...
[1 reply] : halla to capture every thing in a line ,yo need to include '\n' when... (by secret)
Need help with salary deductions and overtime
 
Hey guys, i've been stuck in this rut for weeks and i've been trying to make a salary pay for c++ with deductions to the tax and increase if the user exceeded 8...
[1 reply] : Could you say exactly what your problem is? Also, could you use code ... (by jalfor)
Reading From Files
 
Hello, If I have a file that has a bunch of words in it and some of those words are repeated, how do you grab the first word and then check it with all the othe...
[2 replies] Last: The std::map is usually what you'll want. It will accept a string as... (by OnlineCop)
inputs for four salespeople...
 
The company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salespe...
[3 replies] Last: This forum is all about C++, not C#. And besides... you're not likely... (by Code Assassin)
Using a void parameter
 
So, the library I'm using uses an abstract class, for which I'm supposed to define certain functions with my own code and pass an instance of my derived class t...
[2 replies] Last: Disch's answer is probably going to be the best for you. A good examp... (by OnlineCop)
Why does this work?
 
One of my students handed me this snip of code and asked why does it core dump after entering 8 numbers. I know the obvious answer is to use new to create an a...
[5 replies] Last: Variable length arrays aren't even allowed in the C++ standard at all.... (by shacktar)
by lab3
Sorting and carrying along all the information
 
Hi, I'm wondering why this piece of code isn't sorting and this is the same algorithm i've used before to sort a string of arrays. It runs and compiles but afte...
[3 replies] Last: Yes. (by kbw)
by Fisch
Resizing Bitmap
 
Hello, I wish to resize a image, which is avaliable as 32-bit encoded data(RGB). I know that you can do this with StretchBlt(), but is there a way to do thi...
[3 replies] Last: Thank you for your quick reply! I'll use CoolImage. It also complies ... (by Fisch)
Infinite loop while clearing a linked list
 
Hi all, I am having an issue with an infinite loop when trying to clear my code. I have been staring at it for over an hour but without any luck. I tried a for ...
[3 replies] Last: Technically your solution of replacing thisNode with HeadPtr works... (by diedrexler)
Interacting with Javascript Websites
 
I am trying to create a console app that can interact with my school's website. (http://www.ltu.edu/bannerweb/class_schedule.asp) If, on this website, you c...
[2 replies] Last: You mean like http://code.google.com/apis/v8/embed.html that? I am le... (by shrimants)
link list
 
dfdsfds
[9 replies] Last: [quote=johnhuge]when i print the code it doesn't execute (sic) Care t... (by closed account zb0S216C)
by bilyed
Mix of types into a char pointer
 
Hello Everybody, This is my first post and I would like to ask you a question about a mix of types into a char pointer. I have defined a char pointer that...
[4 replies] Last: OK....I have many parts in my program that is concatenating informatio... (by bilyed)
September 2011 Pages: 1... 89101112... 31
  Archived months: [aug2011] [oct2011]

This is an archived page. To post a new message, go to the current page.