General C++ Programming - October 2012 (Page 28)

by paetim
Adding with Arrays
 
I need help with the line that says: cout << "Please Enter 10 numbers (positive or negative)" << endl; I only want it to say this at the top and not with each...
[1 reply] : Place this statement cout << "Please Enter 10 numbers (positive or ne... (by vlad from moscow)
String Input question
 
Okay I am building a program that basically asks the user to build a sandwich that they would want from a menu that is displayed and output the price and such b...
[1 reply] : 1) use getline to get the entire section of user input into one strin... (by Disch)
can anyone help me ?
 
For each of the given program segments, read the code and write the output in the space provided below each program. [Note: Do not execute these programs on a c...
[2 replies] Last: I think you are supposed to solve this yourself to learn something fro... (by Peter87)
Cout << doesn't work within loop
 
Here's a fragment of what I'm trying to launch: for (int i=0; i++; i<=3) { for (int j=0; j++; j<=3) cout << (m_main ).a+(m_main ).b+(m_main ).c...
[6 replies] Last: Oh no, how the ... could I?!.. Well, thanks, Caligulaminus. It must b... (by thestraycat27)
by ekorad
Creating a folder (FULL file path)
 
Hello everyone! I've just started working in C++, so please, no complicated explanations. My question is: how can you create a folder by inputting the en...
[6 replies] Last: I think i fixed it... The problem is that when i declared the string i... (by ekorad)
Help with function programs
 
I have the following program that works great, but I don't know how to set it up using a "main" and "function" program using the following specifications: - ...
[1 reply] : What do you want your function to do? (by pogrady)
How to encrypt strings during build and decrypt after started the program
 
Hi all, I'm working on a program and it contains lots of strings. I wan't to make it impossible to change these strings using hex editor. So the question is ...
[10 replies] Last: Ok, thanks for your help. (by Kitiara)
My_Pointer_substraction
 
Hello. Why do I get 4 printed in the following code snippet? #include <iostream> using namespace std; int x ={1, 4, 8, 5, 1, 4}; int*ptr, y; int ma...
[4 replies] Last: See the "Pointer arithmetic" section of "Pointer craft" http://www.cpl... (by andywestken)
by leoo
Mousewheel check
 
This is what I did, if ( GET_WHEEL_DELTA_WPARAM(WHEEL_DELTA) ) { } But it didn't work, I'm looking for a simple wheeldown/wheelup scroll check.
[1 reply] : Hmm, someone? (by leoo)
a program for palindrome in C
 
well i have created a program but my logic is little bad ,, can any one help to improve my logic a little please (i cant understand c++,, i am beginner to C )...
[2 replies] Last: getche is not a standard C function. So it is better if you will not u... (by vlad from moscow)
by syifa
can i use nested if-else
 
Round The World travelling agency offered 3 types holiday packages to EGYPT during the school holidays. The rate for each package is shown in table 1. Packa...
[3 replies] Last: You will have to use both looping and if-else I guess. Loop to contin... (by codewalker)
remove/ignore getline
 
How do i remove/ignore the "Choice" when user key in "Choice A" or "Choice B" char num ; cout<<"Enter choice a or b"; cin.getline(num,50,'choic...
[3 replies] Last: for getline you can read http://www.cplusplus.com/reference/iostream/i... (by codewalker)
printing position memory
 
hellow, friends... How do I print on the screen the position of an element of a struct. #include<iostream> using namespace std; int main() { struct...
[2 replies] Last: webJose, amazing!! I tested with chain of characters and works like yo... (by Summerson Goncalves)
Linked List
 
Hello can you please help me in producing the response for the below question since i have an exam tomorrow: Exercise 4. Consider the structure used in the pro...
[3 replies] Last: http://cplusplus.com/doc/tutorial/ is the thing you need if you dont k... (by codewalker)
Urgent Programming Help Needed
 
I've started a major in computer science, and I'm having a great deal of trouble in my programming class. I have an assignment that requires me to write a code ...
[3 replies] Last: This is a good place to start http://cplusplus.com/doc/tutorial/ (by codewalker)
by Yezman
Pointers + Arrays
 
So, I have been reading over this. http://www.cplusplus.com/doc/tutorial/pointers And have come across a question. const char * terry = "hello";...
[5 replies] Last: @majidkamali1370 use parentheses to output address: cout << &(terry ... (by vlad from moscow)
Where is SFC /scannow log file in XP?
 
I have a question: Where is SFC /scannow log file in Windows XP ? In Windows7 We can Find this log file in this directory: C:\Windows\Logs\CBS\CBS.log...
[1 reply] : The reason is the it doesn't have the right to do so. See http://ww... (by coder777)
A cry for help
 
Hello, my name is Zac, I'm 23 years old, and I've been struggling to learn programming languages no matter how basic they may be. I've tried reading books, they...
[13 replies] Last: To get started, you don't need all that stuff. In these Von Neumann l... (by kbw)
Error unqualified id :( help me guys!
 
Here's the code...and I am getting an unqualified-id before '{' toke: #include <iostream> #include <cmath> #include <string> using namespace std; // ...
[4 replies] Last: You should swop the call to your returnResult function and the cout im... (by SIK)
by oscott
How to implement my variables into my output file?
 
Creating a program which counts the number of A's B's C's D's E's and F's in one of Plato's works and then create another file (called statistics.txt) which lis...
[1 reply] : you dont need the "{" above ofstream newFile; and "}" below newFile... (by codewalker)
October 2012 Pages: 1... 2627282930... 50
  Archived months: [sep2012] [nov2012]

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