Beginners - March 2010

Making a number guessing game
 
One of the exercises I found on this forum is to make a guessing game where the user thinks of a number and the computer has to get the right answer in seven or...
[2 replies] Last: Ah, I knew it was gonna be something stupid like that. I gotta pay mor... (by closed account jwC5fSEw)
Function does not take 1 arguments
 
I am being given the error, "function does not take 1 arguments". Can anyone tell me what this actually means and what strategies to fix it?
[3 replies] Last: Um, it means the function does not take one argument. (by firedraco)
Python list equivalent in c++
 
hi I'm new to c++, I used python so I have a lot of doubts. My current problem is that I would like to have a list with different variables (like double, str...
[2 replies] Last: Thanks so much for the detail help firedraco. I see that it is not ... (by tahuilan)
by KyleM
Others can't seem to run my applications.
 
I make a simple program and decide to send it to someone I know. They get an error saying something like the side - by - side configuration is incorrect. A Prog...
[7 replies] Last: Going into release probably won't fix the problem on its own. As bazzy... (by tummychow)
by Diaa
Doubeling the size of an image
 
I'd like to double the size of an image without the need to return a completely new array. I have the following code: pixel* doublesize(pixel image ,int hei...
[2 replies] Last: Thanks (by Diaa)
exception handling
 
Can anyone point me to good document explaining exception handling for standard deviation calculation. For example what kind of exception handling is used if t...
[no replies]
Reading data from a file...
 
Data in the file contains the following: X Joe Scholtz 437-4798 A Tim Wade 768-7658 X Sara Jobs 326-7857 ! Jaynce Bee 354-8678 I need to read from the fi...
[4 replies] Last: There is no Q option for quitting. Just this when done: • Write ... (by shepp2670)
2 questions about storage-class specifiers
 
Hi there! I have two questions about storage-class specifiers. C++ Standard: 1) 7.1.1.6 A name declared in a namespace scope without a storage-cla...
[4 replies] Last: OK, I get it now. thx ;) (by john891)
check whether there is any error here because i do nt think there is any
 
i need i have this code but when i compile it... it give me some funny errors whis i do not think they are really problem... here is the code i put some errors ...
[1 reply] : the other part of the program is here... [//*************************... (by jobarteh88)
Horrizontal bar chart
 
i currently have a vertical bar chart and am trying to convert it to a horizontal one for a exercise in a book. I just can't figure out how to make the bars cha...
[1 reply] : i did some modifying and did make it more horizontal and made it look ... (by FinalAdvent)
.txt file output issues
 
Hi guys! I would like to say sorry for my english! I'm developing a software with qt creator , and I have a problem with a method: This method modifies a...
[3 replies] Last: Was in part 4 of computerquip's explanation. The file buffer library ... (by kevinkjt2000)
strange C syntax
 
I have come across a C syntax in which there is no return value for the functions and the arrays seem to be initialized strangely as well. Not how I've been tau...
[4 replies] Last: > The unspecified arguments mean pass anything in C, but means void, n... (by choisum)
How to accept only the input i want?
 
Hello all; I am new both to programming and to this forum. C++ seemed like a good language to get to grips with and here seemed like a good place to try a...
[8 replies] Last: Very nice thanks - although has caused me to have a major rewrite - no... (by dan1973)
Getline errors while taking info from file
 
I'm having a few odd errors with getline. I've looked at my previous projects and I can't see what I'm doing wrong in comparison. I am using the same #includes ...
[2 replies] Last: I finally got an answer from a classmate when we had time to talk. ... (by Liger XT5)
static const data members definition
 
Hi you all, I would like to know what is the best way for make the definition of the static const data members. I would like to have two files: - InputEr...
[4 replies] Last: Thanks a lot! I did it just in a file. I hope it be "polite" anyway, s... (by margareto)
Assignment complete but needs subtle change. Please take a look
 
This is what my teacher had to say: This is pretty good but not quite complete. You don't display the intermediate values like the assignment requires. You...
[1 reply] : My guess on what intermediate values the teacher is referring to, wi... (by jRaskell)
Functions in header files
 
As I understand it u should be able to read in a .cpp file using a header file in between? Here's what I did: //main.cpp: #include <iostream> #include "ad...
[10 replies] Last: There's two major steps involved in building a C/++ program: compilati... (by helios)
by hagi
Problem in this exercise
 
I want to wrote code for this exercise Possible help me to write a code look at image http://www.maxforums.net/uploaded/89495/1269905022.png
[4 replies] Last: Use tags next time please. #include<iostream> #include <stri... (by bluezor)
by Lod
C++ Pointers
 
#include <iostream> #include <windows.h> using namespace std; int main() { int *tal1 ,tal ,e=78; tal1 = &e; tal = *tal1 ; *tal1 = ...
[5 replies] Last: Don't do that. Some other byte may have 78. Plus, you don't always... (by kbw)
by oman
ready function but not woking properly
 
void FindStud(int SID ,string FNAME ,string MAJOR ,float GPA ,int HRS ) { int id; ifstream infile; infile.open("studinput.txt"); cout << "enter th...
[5 replies] Last: What is the actual problem? You never did say. http://www.cplusplu... (by kbw)
March 2010 Pages: 123... 34
  Archived months: [feb2010] [apr2010]

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