Beginners - August 2009 (Page 8)

c++ libraries
 
hw can i view the contents of the header files and micros
[no replies]
by MYST
Proper studpid question...
 
Really sorry about this, but im reading a lot of books on C++ at the mo, and a lot of them use 'for' and 'while'. im sorry to ask such a dumb question, but i...
[1 reply] : This should help: http://www.cplusplus.com/doc/tutorial/control/#lo... (by firedraco)
by Darkez
C++ number finder
 
I just started to learn C++. I am using dev compiler etc. I made a average number finder that finds the average of three numbers. When I open it says "Please...
[3 replies] Last: In other words, how do you make the program pause until the user press... (by kempofighter)
Not accepting input
 
#include <iostream> using namespace std; int main() { short int x; cin >> x; cout<<"X variable: " << x << "\n"; cout<<"Memory Address of x...
[5 replies] Last: ...Yes, but it is standard C and C++. Functions that have a non- void ... (by Duthomhas)
by dag
how to return multiple values??
 
i tried return *p1,*c1; but only c1 returns in my class. any help???
[1 reply] : Pass by reference, return an std::vector, or an std::pair. (by firedraco)
by hannes
pointer
 
hello everyone, I'm quite new in programming with c++. But I have a question about pointers. When do you have to write an asteriks and when not? please, ...
[5 replies] Last: strcpy takes a pointer to the array as an input parameter so that it c... (by kempofighter)
2-dim array, variables are changing w/o me telling them to
 
i am working with 2 dimensional arrays... I fill a 2-dim array with numbers and have an int variable 'numRows'. For some reason when i re-assign the value of '...
[5 replies] Last: Wow, this example compiles and runs but I don't know why. This seems ... (by kempofighter)
Send .txt-file to USB-printer using C-Code
 
Hello, this is my first question in this forum, so please give my answer if you need more information abaout my system/configuration/... I'm a total begin...
[2 replies] Last: Oh, and Windows provides a standard way of printing that works on ever... (by webJose)
How to display time elapsed continuously while a lengthy task is running?
 
On Linux I run a C++ program that invokes 3 tasks one by one like this: int main() { task1(); task2(); task3(); return 0; } Each task ma...
[4 replies] Last: Thanks for the suggestions. (by bjch512)
Referencing a Function
 
When I enter the selected rows and columns in my postMove it doesn't show up when building the program? I believe everything is set up right and this function i...
[1 reply] : As I can't post the code here (too long because added comments). Here... (by dennis07)
by bamdad
fstream problem
 
hi guys, there something here thats freakin me out since i cant find out whats wrong with the code. im writing a CFD code in Xcode on my Macbook pro in C++ and ...
[1 reply] : I am not sure how much of a role this plays in the problem, but for th... (by psault)
homework question?
 
i am new to C++ and don't understand it to well. the question is Copy and paste your existing cone program into a new .cpp file. Modify the code to calculate ...
[19 replies] Last: i want to thank everyone here for the help, i have used many forums i... (by tomringler)
Strange function output
 
Hi I have two array sorting functions, bubbleSort and selectionSort. They both sort an array and returns the number swap operations made during the sorting. ...
[6 replies] Last: The value of uninitialized variables is undefined, so it is neither od... (by jsmith)
Random access of Binary file contents
 
Hello Everyone, I need to extract the file contents from a specified index and specified size. I have this code that is currently working: /* frea...
[1 reply] : while (1){ fread(buffer,1,n,file); fseek(file,n,SEEK_CUR); ... (by helios)
what is mathematical matrix?
 
i read one book and i dont know what is mathematical matrix. could you tell me what is please. I have to make a program with mathematical matrix but how i will ...
[1 reply] : http://lmgtfy.com/?q=matrix+mathematics (by helios)
accept only numbers
 
Hi, I just wanna ask how can I do this? I wrote a program like that on a store and during transactions I want some conditions like this: sample: The tota...
[11 replies] Last: The problem with the FAQ is, of course, that you can enter invalid inp... (by Duthomhas)
by biz
C++ program without main()
 
The main() function is the starting point for a program execution in Cpp. Is it possible to run a program without the main() function ? Every time I...
[8 replies] Last: I meant a real, bootable OS. And if you open up a program in a text ed... (by chrisname)
Begginer totally stuck in a pseudocode nightmare
 
I have done very well so far in my class, but this question has me stumped. let me give you the basics. i am a supervisor in a manufacturing company, and i wan...
[8 replies] Last: Just to get you going, ... Start String name Num ITEMSSOLD1 = ... (by kbw)
STL container for a deck of cards
 
Hi, I'm currently writing a class Deck which contains objects (or probably pointers to objects) of another class, Card. I'm wondering if std::list is better ...
[1 reply] : Correct, std::list doesn't have an operator . An iterator doesn't h... (by kbw)
by xtaa
move ghosts in pacman
 
hi im new in C programming. and were asked to create a clone of pacman.. my problem is how will i move the ghosts in pacman. max of 4 ghosts, must have a chase...
[3 replies] Last: That's what I thought... Possibly it's just laziness. (by chrisname)
August 2009 Pages: 1... 678910... 17
  Archived months: [jul2009] [sep2009]

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