General C++ Programming - September 2011 (Page 24)

Can anybody help me plz?
 
Write a C program that examines each character in a two-dimensional array and determines how many of the characters are vowels (a, e, i, o, u), how many are ...
[2 replies] Last: can u plz re arrange it? (by rizwanul)
Run another program with parameters
 
Hi, how can I run another program that is in same folder with parameters? like this: example.exe -parameter I want to make a launcher that will run gam...
[2 replies] Last: nice, thanks, but now I have another problem, I have PowerISO, and it'... (by mekkatorqu)
by keys
Is it possible to update a variable inside a while loop?
 
Is there a way to update a variable inside a while loop so that each time it loops the variable is is a different answer? wh...
[no replies]
Can anybody help me to solve this C Problem?
 
The volume of the cylinder can be calculated using the following equation : volume ( v ) = π * r * r * h Write a C program that reads the radius (r) and hei...
[11 replies] Last: I just wrote the code and came here reply for this post, but CodeMonke... (by abduzalam)
How to include library and dependencies in Eclipse Indigo
 
I am new in C++. I came from C# and Java world. I tried the example http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx) and it`s working perfectly when I us...
[no replies]
Quot " in a (char *)
 
Hello, I have a problem, quoting a char array. I have this string -m file.dat -if "eth0" -s switch_on And I need that pointed by an const char* , there...
[1 reply] : Your code works fine. #include <iostream> int main() { cons... (by Moschops)
expression must be a modifiable lvalue
 
So, as an educational experience, I am making my own rudimentary Vector class using malloc (yes I know, not the wisest of moves, however, as I said, this is an ...
[4 replies] Last: oh I see, sorry, this is my first time doing operator overloading at a... (by Shruubi)
by Ryeman
Having trouble with parameters in partial specialization
 
Hey everyone, I can't figure out what I'm doing wrong! I am working on redeveloping a smart pointer class, and I'm not terribly familiar with partial specia...
[1 reply] : Update: I have done some studying up on 'explicit specialization' of ... (by Ryeman)
Function to calculate permutations being weird
 
This is an algorithm (not my own) that prints out the possible permutations of a string. In function "permute" I cout some variables in order to know their val...
[2 replies] Last: Denis, the idea is to demonstrate the problem using recursion specific... (by vasiqshair)
Selecting particular values from text document into variables
 
Hi all, Well, sad to say that I am somehow a noob in C++ programming. What I am doing is basically write a .txt document with certain messages followed by...
[no replies]
help me pls. about fstream
 
hi i have a text file, information.txt username: anything password: something name: blahblah my problem is how can i store those 3 word in an variable...
[3 replies] Last: If you want to read things from a file, you have to know where they ar... (by hamsterman)
Don't understand why this doesn't work
 
This is supposed to be the trapezoidal rule, approximating the integral of 1/x from 1 to 2. I don't understand why it returns the wrong values. Help please? ...
[no replies]
strtok function???
 
there are 2 codes: case 1: ok char arr = "this, is test."; char* pch = strtok(arr, " ,."); case 2: fail char *str = "this, is test."; char* pch = str...
[1 reply] : Lookup the strtok() function. The documentation says that the input s... (by webJose)
I need a search function for this
 
I need help. PLease! The program's requirement is to have a search function using linked list. Thanks #include<iostream.h> #include<iomanip> #include<string...
[1 reply] : You haven't provided a search attempt at all. Still, I'll say this mu... (by webJose)
wierd getline behaviour
 
hi, I don' know what is going wrong with my code. here is the code: #include <string> #include <set> #include <vector> #include <iterator> #include <iostream...
[no replies]
by Phiru
how to record both ...
 
Hi. I have a question. I am woring on a project that records both system sound and voice with microphone at the same time. For instance, music is playing and...
[4 replies] Last: Thank you. :) (by Phiru)
Easy Float Question
 
I'm trying to figure out if (int) floor(someNumber) will always give me the correct number. I know floats aren't usually represented exactly and I'm worried it ...
[1 reply] : Depends. Standard single precision IEEE numbers can store all integers... (by helios)
strange behavior convert HEX string to signed/unsigned long
 
Hello world ;) I have a problem in c++ (compiler:g++, os:Debian) when I try to convert a HEX value as string into a signed/unsigned long. I thought I used th...
[11 replies] Last: Egh. Good enough, I guess. (by helios)
Key based on time
 
Im making a keygen which generates random passwords and I create another programme which accepts that keygen and does something, So i need to generate 10 digit ...
[no replies]
MySQL++ get data from table
 
hi, I have trouble with getting info from my table, this is my code: #include "stdafx.h" #include <iostream> #include <mysql++.h> #include <manip.h> using n...
[8 replies] Last: edit123712: nvm, everything is working now :) (by mekkatorqu)
September 2011 Pages: 1... 2223242526... 31
  Archived months: [aug2011] [oct2011]

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