Beginners - September 2011 (Page 28)

Python and C++
 
What are the differences in python and C++? Do you somewhat experienced C++ programmers use python too? I asked the same question on python-forum.org but it s...
[2 replies] Last: From a language point of view, the main difference (aside from syntax,... (by helios)
help with multiple arrays
 
In this function I am trying determine and display the name of the person with the highest percent and the actual number. If two people are tied for the highest...
[2 replies] Last: Thank you. I have a good idea of what I need to do now. (by DocCeaser)
Arrays With Padding
 
I'm trying to create a class that constructs and manages a region of memory. The region of memory is an array, where each element has n bytes between them (pa...
[3 replies] Last: I may have solved it. Here's my test code: int main( ) { int ... (by closed account zb0S216C)
search and extract
 
Hi if you look at the data below. dc.w SME_71Usz_C-SME_71Usz, SME_71Usz_35-SME_71Usz SME_71Usz_C: dc.b 8 dc.b $E0, $F, 0, 0, $F8 dc.b $E8, 1, 0, ...
[6 replies] Last: Sorry about my code, it was a late-night post ^_^ What you could do ... (by closed account zb0S216C)
Program Not Computing Correctly
 
I have written the following program but am having two small problems with it. The first problem is that after I enter -1 for the product to end the program I ...
[2 replies] Last: To further clarify why using doubles is bad for money, it's because do... (by Intrexa)
by andyy
What am I doing wrong?
 
Just barely started on my C++ class, no help with anyone (it is an online course) and I'm just really confused. So any help would be grateful. This is what I ha...
[12 replies] Last: Haha. Alright. Thanks. :P (by Tresky)
bipolar variable
 
I need help figuring out how to use one variable as both an int and a char. The program I'm creating takes a number for an input and then outputs a bunch of dat...
[9 replies] Last: Thanks for all the help, I figured it out. (by Ishvite)
Create a Folder
 
How do I create a new folder?
[6 replies] Last: Nevermind I fixed it. thanks. (by TexanMonkey)
Strings and cin/out
 
Working on a homework problem. I've searched all over for a few hours now, and I can't figure out why it isn't working. It's probably something simple, I'm a no...
[2 replies] Last: UGH!! Thank you sooooo much. That fixed it! It's crazy how simple it i... (by synlight)
Why +1 the int
 
This is a borrowed function from this forum and is part of a checkers games. I've been working with it as a program to understand ASCII and Arrays. The Line...
[2 replies] Last: Okay, that makes sense. And thanks for the warning regarding assignm... (by OffKilter)
fstream
 
I'm having a bit of trouble with making a text file. Can anyone identify the problem? #include "stdafx.h" #include <iostream> #include <fstream> using ...
[6 replies] Last: That last one fixed it. Thank you, JMJAtlanta! (by Ben Duncan)
by bcdlmm
pow syntax errors help!! due today!!
 
this is the equation i have and i know it's wrong but i dont know how to fix it this is my first time learning to program so i dont really know what im doing. ...
[7 replies] Last: you need to add the necessary parenthesis and a semicolon at the end o... (by coder777)
by boston
While vs. For vs. Do/While
 
Hi All, I was wondering what the specific circumstances one would use for, while, and do/while loops? I'm reading my text and they seem to do the same thing,...
[13 replies] Last: [quote=keineahnung]"The break statement may be used to "break" out of ... (by Mathhead200)
Passing an array as a function argument
 
Hi I'm trying to write a program that reads an array of numbers until it gets an empty line or the array is full using a function, then displays the numbers ent...
[6 replies] Last: int i; (line 36) You haven't initialized this variable so it holds ... (by keineahnung)
error: invalid operands of types 'int' and 'double' to binary 'operator%'|
 
I have tried all the fixes I found posted online, but they are not working for me. I've tried changing my data types, and I have included <cmath> but I still d...
[3 replies] Last: Thank you very much. I had tried that, but I did it wrong. Whew! Now... (by ErinCorona)
by pinkk
Finding maximal subarray (divide and conquer)
 
Hello everyone. I would like a hint or just some pointing out at what I'm doing wrong. The findMaximalSubarray function doesn't have a return type; the result i...
[no replies]
by Kahiko
Naming variables and classes
 
I have such a big problem naming my variables and classes that i spend more time thinking about how to name them then programming actual code or debugging it. T...
[5 replies] Last: Hungarian notation makes it harder to read names, and since we all hav... (by hanst99)
trouble including header and cpp files
 
Hi all, At the moment I'm trying to include a header file and cpp source file (glfont if you wanted to know) and i'm finding it difficult to work out how i'm...
[10 replies] Last: All sorted now JMJAtlanta, cheers. It was the case sensitive thing. Th... (by chr15chr15)
Manipulating a char vector from another function
 
I have a 9-element char vector that gets initialized to spaces when the program runs. During the course of the program, I want to input a number and have it cha...
[5 replies] Last: Well, that depends on what you're actually trying to do with your func... (by hanst99)
by tonnot
Is there any way to force the written of a namespace (forbide the use of using namespace) ?
 
I'd like to forgbide the 'using namespace'. The idea is to force the written of SPACE::class_or_function. I have problems to find where I have the funtions an...
[6 replies] Last: Yeah, but why do that? Getting out of your way just to force people to... (by hanst99)
September 2011 Pages: 1... 2627282930... 48
  Archived months: [aug2011] [oct2011]

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