Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #20.4K
Ranked #3K
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 10
Member Avatar for Nikhar

Hi...this is the code that I wrote to find a particular string from a 2-d array of characters. It prints F(for found) and N(for Not found). When I execute this program, it prints N only. [code]#include<iostream.h> #include<conio.h> char SearchString(char[5][10],char[10]); void main() { clrscr(); char str1[5][10],str2[10]; int i; cout<<"\nEnter 5 objects:-"; …

Member Avatar for Nikhar
0
131
Member Avatar for gshock2006

Hi,guys, I am new to C++,and recently I practice to read a file with visual studio 9.0,but it turns out that it cannot find the very file! [code] #include<iostream> #include<fstream> #include<string> #include<iomanip> #include<cstdlib> #include<vector> using namespace std; //using namespace stdext; int main() { ifstream inClientFile("Dic.dat",ios::in); if(!inClientFile) { cerr<<"File could not …

Member Avatar for gshock2006
0
240
Member Avatar for ozan

Hi I have problem at pointing to the function at the class structure. To demonstrate my problem,I have written a simple code. I have two function. ''Xsquared'' returns square of input value. ''multipleby4'' multiplies by 4 of input value. The pointer to the Xsquared is the input value of the …

Member Avatar for ozan
0
128
Member Avatar for pcongnu

Hi, I'm trying to do a program where I have to input 4 lines of text from a txt file, char by char into 4 seperate arrays (1 for each line). I have this [CODE] ifstream input("c:\\p2input.txt"); for (int z = 0; z < 250; z++) { while (!input.eof()) { …

Member Avatar for galin
0
89
Member Avatar for csaund1

Anyone have any idea how I would write a program that lets user input a floating point number and then either round up if number is like 4.5 our round down(truncate) if number like 4.49. Any help would be greatly appreciated.

Member Avatar for ArkM
0
180
Member Avatar for Code Shark

Hello, I'm new to this forum and have a brief knowledge of C++. I made this program to ask the user for a word and make it so the word would not be allowed any "i's". I completed the task just my code looks a bit to much I think. …

Member Avatar for Prabakar
0
206
Member Avatar for random7

I did vector calculation like blow. Here I just use 2 vector addition C =A1+A2 But, now I want to add many vecters like A1+A2+...+A35 Is there any simple method beside ( I don't want to type continuously like A1,A2,A3,A4.....A35) ex) void sum(vector<long double>& C,const vector<long double>& A0,const vector<long double>& …

Member Avatar for vijayan121
0
132
Member Avatar for tonyaim83

[Code:C++] bool CheckSymmetry(char *File , vector<string>& vertex_set, vector<vector<string>>& edges,vector<string>& char_first) { ............. .......... ........... return true; } Here i m getting the following errors:- error: edges' was not declared in this scope error: `&' cannot appear in a constant-expression error: `>>' should be `> >' within a nested template argument …

Member Avatar for Narue
0
189
Member Avatar for eranga262154

Can someone explain, how can read a binary file. I'm really nervous with this.

Member Avatar for eranga262154
0
318