General C++ Programming (Page 40)

else without previous if
 
hi,i am new to c programming.after i compile my coding,get error else without previous if.so many ti...
[4 replies] Last: Hi,i am new to c programming.. below show that my final project of my ... (by vinod walcott)
complie time error.
 
When I declare a pointer to card (to test) in main card *testtype the below code compiles...
[3 replies] Last: Because you never called delete on the pointer, thus the compiler ne... (by LB)
Palindrome using 3 stacks
 
Hi, I want to use 3 stacks to check a word that user entered whether is it Palindrome or not. I ha...
[6 replies] Last: Can even be done with one stack http://ideone.com/S2HPpw If you are l... (by Smac89)
the state of variable in one expression
 
I thought that an operator performs a permanent change in a local variable. For example, if x is 000...
[2 replies] Last: An operator doesn't "change" a variable/object/value. You could think ... (by xismn)
by rm5393
Function Call Error
 
I am having issues with calling from a void function on my cs assignment any ways to fix this issue ...
[5 replies] Last: A control structure is anything that can alter the program's flow, suc... (by xismn)
Function Prototype
 
Hi, I'm a computer dummy taking my first (and likely only) computer science course and I've begun to...
[4 replies] Last: @28 cout << "enter velocity of the rocket (m/s): "; @29 cin >> vel; ... (by kannanmj)
Trouble running an infix to postfix stack conversion program
 
I keep getting the same error messages every time on Visual Studio. I don't know where the error is ...
[2 replies] Last: Make sure all the .cpp files are added to your project tree in Visual ... (by LB)
Big Integer Class using Dynamic Arrays
 
I have become overwhelmed an frustrated at these current operator overloads! Currently I still ca...
[no replies]
by Frjoe1
Keys not working
 
#include <iostream> #include <windows.h> #include <conio.h> #include <ctype.h> using namespace...
[2 replies] Last: Just for fun #include<iostream> #include<conio.h> using namespace st... (by Chriscpp)
Shortest path maze solver algorithm
 
Hi guys! I'm working on a maze solving program. So far I got the program to solve a maze using the r...
[6 replies] Last: This doesn't do exactly what you want, but demonstrates BFS. Reads a ... (by ac517)
by Alby94
std::thread in Dev C++ 5.5.3
 
When I insert a thread in my code...the compiler reports me an error: "'thread' is not a member of ...
[3 replies] Last: i try to use the header ptrhead.h for create many threads...but the li... (by Alby94)
by y510
array manipulation of messages
 
Basically i need to encrypt a message into ascii values & i also need to allow the user type some as...
[18 replies] Last: Not sure what you are trying to do with d and e. As far as the cast. I... (by giblit)
by Kak3n
Avoiding rand to generate same numbers
 
Hi I tryed to create program I wich u can guess number, I made some if to prevent inputting 2 times ...
[6 replies] Last: tnx (by Kak3n)
How to use strings in a function?
 
None of my string is coming out onto my output file.. I'm not sure what's wrong with the function. H...
[1 reply] : Please use code tags: http://www.cplusplus.com/articles/jEywvCM9/ You... (by LB)
Input handling
 
I am trying to use just cin in a while loop to catch when the user inputs a non integer to the comma...
[7 replies] Last: When you declare it inside the loop, it gets redeclared every iteratio... (by LB)
Templatizing a function based on a class member?
 
Some background: I have a class, A, with members, B and C and D; I also have an array of A objects; ...
[1 reply] : You are interested in C++'s pointer-to-member feature. Here's a small ... (by LB)
C help
 
So I was given an assignment in class and my teacher really doesn't explain anything very well. He j...
[1 reply] : What have you written so far? (by LB)
C++ Stacks and Queues
 
Goodday , I am new to Stacks and Queues and I am having a tough time answering the question below...
[3 replies] Last: Always start by writing the basic outline of your program. You know mo... (by LB)
Confusion with functions and loops
 
I'm currently stuck on this project...I can't seem to find the right number of vowels, number of As,...
[2 replies] Last: Use the fallthrough behavior of cases in switch statements to take th... (by booradley60)
dont know how to call...
 
I have a class Items(base class) with class weapons : public Items. now I have called vector<Items*...
[5 replies] Last: Your code is neither minimal, nor compilable, but I can see where you'... (by cire)
Pages: 1... 3839404142... 69
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.