Beginners - June 2015 (Page 10)

by Deivux
Code is not working
 
I'm new in C++ programing, so I don't no why me code is crashing.I have to sort the information and output it. This is my code #include <fcntl.h> #incl...
[9 replies] Last: Can I just question the logic of: for (int i = 0; i > n - 1; i++) W... (by Vortex47)
by Ch1156
string find function help
 
I am trying to learn all the member functions for string and I am having a hard time making a program that can find all the words that i want to find. It finds ...
[14 replies] Last: The parentheses, the parentheses (and the precedence of operators). S... (by keskiverto)
Multiple definition error using Dev-C++
 
Hello, I am attempting to code a stack structure in C++ using the Dev-C++ compiler. I currently have 3 files: main.cpp, DataStructures.h, and DataStructures.cpp...
[6 replies] Last: no, the linker resolve's everything itself (by heepoo)
Help
 
My project was to create an 8 Queen with a chessboard that is 8x8. My problem is, i can't seem to understand where to put the command that will output the locat...
[3 replies] Last: did you solved it yourself? you should post a sample text file, which ... (by anup30)
Pointers or References
 
I hope all is well programmers! I am currently trying to store some values in some variables within a local function and somehow use those variables outside of ...
[7 replies] Last: I should try to use -1 to indicate not found? Well, it is one common... (by andywestken)
Help with strings.
 
Hi! I'm new in c++ and having a hard time with string. When i put a space, only the last word will print out. #include <cstdlib> #include <stdio.h> #inc...
[2 replies] Last: i tried to remove line 14 but after i put a name with space, nothing h... (by closed account zwpL3TCk)
Random string generator generates same string
 
This is a random string generator. It works fine but there is a problem. When I try to generate two or more string, it always generates same string (same X and ...
[2 replies] Last: Thanks a lot :) (by spsrijan)
row table pb
 
I would like to have the total of each row of a table. How to do? exemple 1 5 8 ==>14 2 4 1 ==> 7 7 3 2 ==>12 #include <iostream> #include <vec...
[14 replies] Last: i added diagonals, but it don't work when i try 2 7 6 ==> 15 9 5 1 =... (by julieen03)
by wt1155
Can someone help me with this linked list question ?
 
Objective: 1.To understand linked list concepts 2.To write a solution for a given linked list related problem. Exercise : 1.Write a non-recursive functio...
[2 replies] Last: #include <iostream> using namespace std; class LinkedList { struct N... (by wt1155)
by ferrad
Initialization of static arrays
 
I'm trying to write a security wrapper which checks 3 types of security. It make the security check call once only for each type. It stores the result of this...
[4 replies] Last: It looks like this code is working in Debug, but not Release. Could o... (by ferrad)
Importance of this specific piece of code in producing the correct result?
 
Why is the piece of code: " getSeconds(&sec);" necessary to produce the correct result? With the following code, it produces a number: Number of seconds :12...
[1 reply] : time(NULL) returns the current time. If you don't use that, than y... (by Won)
Help with a poll problem.
 
Here's exactly what the problem asks. Write a program that provides the option of tallying up the results of a poll with 3 possible values. The first input...
[1 reply] : Line 39 is wrong. http://www.cplusplus.com/faq/beginners/logic/#or-vs-... (by MiiNiPaa)
escape sequences and C++11 regular expressions
 
Hello forum, I am extracting a line with the getline function and it contains the following \r # Aloha \n From the above pool of characters I ...
[17 replies] Last: There should be no space at the end of regex. (by MiiNiPaa)
passing pointers in data slicing example
 
I know what & how pointers and references are used. At least I thought I did. I came across this code that explains Data slicing by passing by value, see bel...
[1 reply] : > Here is my confusion. For example the valuefunction above accepts a ... (by ne555)
What is wrong ???
 
Ok so I'm trying to make an array of a structure with constructor arguments but it's not compiling Code 1 stud(char a ,int b,int c,int d,int e, int f) ...
[1 reply] : It works fine here, please post the error message... (by Gamer2015)
by awoit
Output from a .txt file issue
 
I am trying to get my text file to be read and then have it output. I keep getting a blank black cmd box. Any hints? I've used a similar format of this for i...
[3 replies] Last: Are you sure the file is actually opened? if(!notepad.is_open()) c... (by admkrk)
Question about class constructors
 
So here is the question about this linked list. I understand linked list more then ever ,but the problem I am having now is with this. Listhenodes::Listthenodes...
[4 replies] Last: I gave an example of the algorithm here: http://www.cplusplus.com/foru... (by kbw)
I need help understanding this block of text
 
Write your question here. I don't understand what the extra uses of point are in the rectangle class, I need some insight :Y #include <iostream> class P...
[1 reply] : The Point at the bottom is the actual values of the points, the upper ... (by tristan1333)
Dynamic 3 Dimensional Array Crash
 
The program crashes on the last loop right after J is updated to the value of one. Why does this not work? How can J being updated to 1 impact the array? It...
[4 replies] Last: Mike, pay me no nevermind. I'm getting back into code to try to keep ... (by shawnlau)
by Doge1
Validating if First name & Last Name is Typed Correctly
 
I need to write a program that checks if first name and last name are correctly typed in, the program need to checks if first letter of name is uppercase, it re...
[7 replies] Last: grrr i didnt see his second sneaky post :/ (by mutexe)
June 2015 Pages: 1... 89101112... 32
  Archived months: [may2015] [jul2015]

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