General C++ Programming - March 2014 (Page 35)

Underlining wrong word in text file
 
Hello Everyone, So I'm supposed to create a spellcheck program which reads the input file from a user and compares it to the dictionary to find the misspelle...
[no replies]
why heap data structure?
 
6 / \ 17 14 / \ / \ 68 ...
[3 replies] Last: Thanks @Minipaa @ne555 very precise and clear answer..thanks (by venkatacplpl)
by dkaip
Initialize a vector gives me error..
 
Initialize the vector gives me error.. const vector<wxString>VI{wxT("ι"),wxT("η"),wxT("ει"),wxT("υ"),wxT("υι"),wxT("οι")}; or ... const ve...
[no replies]
by edo
function substr() help
 
c++.....in my program i have 3 string-s (string houses,string ink,string buildings)and i must add function substr()... In the program i need to add a function t...
[2 replies] Last: thanks man (Y) (by edo)
Related to random numbers
 
// this program gives random number output #include <iostream> #include <cstdlib> // contains function protype for rand #include <iomanip> // for setw using...
[1 reply] : rand() doesn't actually give you a random number. It gives you a pse... (by Disch)
Not Sure where functions are segfaulting.
 
For an assignment I have to code up 6 functions that each do a different task. In two of my functions, I am seg faulting and I don't know why. I feel like the s...
[3 replies] Last: It's C. I set ptr->length to 0 and it 's no longer crashing. (by Thinker67)
Please help, this progam not calculate pennies correctly at all
 
he is the problem , I need to calculate a program that give change due, and show in How many Dollars, Quarters , dimes , nickles and pennsies. so far working go...
[3 replies] Last: @Yueeng (43) , i tried what you said, and it wont work, it gives compl... (by jakevamp)
reading text from file
 
i have a txt file, it has series like: 1 a 2 b . . . 12 l * . . . something like this..and i wanted to print the text till * when it fin...
[4 replies] Last: i have done this...but it is still not stopping... // readin.cpp : D... (by praneshiitm)
How to wrap numbers between 0 and 9
 
Hi, I am writing an encryption program and I want there to be only numbers and letters in the encryption. My offset is going to be a random number between 8 and...
[3 replies] Last: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical... (by ne555)
<random> is useless?
 
This header is trash. This only return the same numbers, everytime that I run. What is wrong? How can I fix it? I have to use "rand()" forever?
[16 replies] Last: Still you can exhaust entropy pool even with calls to urandom impairin... (by MiiNiPaa)
by kimi86
Regarding Pure virtual functions
 
I have just finished reading about pure virtual functions and I have a question If we have a class that has just one pure virtual function and the other memb...
[7 replies] Last: got it now finally.. cant thank u all enough.. (by kimi86)
n Terms...
 
Write a program to print out the first n terms and sum of the first n terms of the following series. 2,3,5,7,11,13,17,19,23,29....
[3 replies] Last: Why should I do your work for you? (by Zhuge)
wrong output by using argc and argv argumnets
 
Hello friends I have written a program to calculate delay between nodes using link. Code: //sim.cc #include<stdlib.h> #include <iostream> #include <...
[1 reply] : print out argv and argv (or read the documentation on the main funct... (by Cubbi)
Using "while loop" for factorial
 
I need to write a complete program using "While Loop" to calculate 1! to 12! using just "int" variables. Only from 1 to 12 and there are no other inputs.. This...
[2 replies] Last: #include <iostream> #include <iomanip> int main() { const int MI... (by JLBorges)
infinite loops from input validation.
 
First off let me apologize for any misconceptions I may have or mistakes I may be making. I am new to C++ and programing know-how in general, especially loopin...
[2 replies] Last: Thanks for the help, worked perfectly. (by Jloc707)
Permutation
 
Hey guys messing around with a stat calculator and Im having an issue or how to approach my permutation function. What I want to do is have the user enter in tw...
[2 replies] Last: If you're going to do this the simple way, which is compute N! and com... (by Yueeng)
Debugging the classes
 
I am making a bank account program using classes. I have defined the classes so far. Just want to know if everything is OK so far. Please please check and see i...
[1 reply] : Well, the return statements in the void functions are unnecessary. Wh... (by Peter87)
Equation of a Projectile - Jumping
 
I am working on a program that needs an object to jump, I have been using this piece of code to make work function. if (Jump == 1) { //Jump DeltaTi...
[no replies]
writing program that read 4 integers from a file.
 
anyone can help me in solving this question please . Write a program that reads four integers from a file ‘input.txt’. The program will then create a...
[5 replies] Last: This forum is not for getting fully-written code that you can plagiari... (by LB)
Bottle neck in A star algorithm
 
Recently I am learning a path finding algorithm, actually I have learn BFS around 2 year ago but doesn't learn more about path finding after that. So I am cod...
[7 replies] Last: Oh yeah, I just realized that That process takes a lot It produces si... (by rmxhaha)
March 2014 Pages: 1... 33343536
  Archived months: [feb2014] [apr2014]

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