49,766 Topics
![]() | |
hi guye please help how to sort a file like: with phone no. name;class; phone no mudit;5th;987654321 rohit;4th;98745321 sumit;7th;987654321 ankit;9th;984321 aaa;5th;987654321 bbb;5th;9874321 ccc;4th;98765421 ddd;8th;9876543 | |
#include<iostream> #include<string> #include<conio.h> using namespace std; int main(){ string array[5][5]; int i=0,j=0; string z[5]={"abdg","ygur","guqh","asdf","sent"}; for(i=0;i<5;i++) for(j=0;j<4;j++) { array[i][j]=z[i][j]; cout<<"\narr[][]="<<array[i][j];} for(i=0;i<5;i++) cout<<"\narr="<<array[i]<<endl; //this z not workin.WHY??...PLZ HELP! getch(); return 0; } | |
Using Nero 8 Ultra Edition ... Everytime I DVD burn, with 5 seconds left during a dvd I get the below error message .... the program worked fine for about 6 burns ... I downloaded and installed "vcredist_x86 runtime" from ms ... also asked for / received / downloaded a … | |
0 down vote favorite I have a huge vector of boost dynamic_bitset. I want to write the dynamic_bitset vector to a file and later read the file back into a dynamic_bitset vector. Is the memory for dynamic_bitset allocated as a contiguous block of memory (so that I can write the … | |
B works, A does not. Is there any way to make A work without using new (that includes placement new)? The code is more or less identical and I'm sure my overloaded new/delete are being called. The only difference is that A doesn't call the constructor but that shouldn't matter … | |
I have been having this problem since I started using stl containers awhile ago. Basically, when I debug them with the default Code::Blocks MinGW debugger I find that it gives far too much irrelevant information such as iterators and other 'behind-the-scenes' stuff. I can make it better by telling it … | |
I have this encryption code, it encrypt the file but doesnt want to decrypt it: it gives a segmentation fault error. By the way i am using linux... #include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <sstream> #include <vector> using namespace std; int n, c, l; void gen_code(string word1, … | |
#plzz help me to solve this problem....i hav tried but there are many errors....# #include<iostream> #include<string> using namespace std; class matchMaker { public: string rtn[] getBestMatches(string members[], string currentUser, int sf) { int i=0,scount=0,x; string rtn[10]={0}; for(i=0;i<20 && scount<2;i++) { if(currentUser[i]!=' ' && scount<2) continue ; else scount++; } int … | |
I've been given a homework assignment in which I have to create a linked list, then store 25 random integers within it, after I've stored the values I have to find the sum of these 25 numbers, and then the floating point average of them. So for the most part … | |
Hi All, I have a program for a multiplication table that requires a user to indicate the table they want to see with an integer between 4 and 12 and I would like the final array (MultTable) to look like the following, is this possible? 0 1 2 3 4 … | |
Hi everyone, I am new to C++ and have no idea where to start with classes. I took my first programming class last semester and just started object oriented programming. I am new to classes and this is my first assignment. Any help with a link or anything would be … | |
I wrote this program because I often am asked by people that know that I like to make games to make just a quick simple game for some reason or another. I always make a simple text based adventure game (like Zork, but simpler) and they are usually happy with … | |
help how to make a flowchart that will input a grade of a student and determined whether the grade is pass or failed.print the name,grade,and remarks of a student | |
design an algorithm using IF statement to assign grades to an exam marks: 1.Marks below 40 is F 2.Marks greater than or equal to 40 and less than or equal to 50 is D 3.Marks greater than 51 and less than 70 is B 4.Marks greater than or equal to … | |
I'm learning how to detour-hook functions from tutorials online but when I follow along, my DLL says symbols not found. The error I get says: > Linking dynamic library: bin\Debug\GLHook.dll > Cannot export GLHook_glAccum: symbol not defined > Cannot export GLHook_glAlphaFunc: symbol not defined I don't know why though.. I've … | |
Hi, I would like to write an app that can read/write to a USB. Is it possible to do that using C++? Thanks in advance, Vijaya | |
Can the two features of C++ Function overloading and function templates be applied together ?? What i mean is ,typically function overloading is applied with functions having different arguments(i am in concern with equal number of arguments but ofcourse different build -in types) Please provide me a simple example or … | |
Good Afternoon, I'm having some difficulties on an assignment where I need to write a program which will generate a list of signed random numbers, find the average of all the numbers, the average of the positive and negative numbers and the largest e number. So far I have this … | |
I use Visual Studio C++ Express Edition 2010. I need to use Magick++ library in my project, so I downloaded ImageMagick for windows [Click Here](ftp://ftp.imagemagick.org/pub/ImageMagick/windows/). Next I ran a wizard(configure.exe) with default options from VisualMagick/configure. Then I built generated VisualDynamicMT.sln (debug and release). I set my project: C\C++ \ General … | |
I know that windows has the #include <windows.h> Header but what does linux have and does it pay to program for linux, I mean like if i program for microsoft ofcourse ill get paid but are there linux "companys" that will also pay good? Reason why i ask is becuase … | |
Hello, I have a simple question. Say I have two files in a folder "Cpp Projects". One file is called "main.h", and the other is inside another folder, say, "Cpp Files", and it is called "main.cpp". Thus, their filenames would be: "...\Cpp Projects\main.h" "...\Cpp Projects\Cpp Files\\main.cpp" Is there a way … | |
Hi, Maybe is an easy question. I have a function that return a String, and I would like to use this String like a name of another function, but I can't because obviously is a String :(. For example, the function foo return a String foo2, and foo2 is a … | |
| |
I am trying to write code for a calculator in a way it appears in GUI.What i mean here is ,i want to display a zero and then replace it with a value (typed) there after perform operations.I am using Visual Studio 2010 ,i want my output to appear as … | |
Ya, is dere anyone who can design a c++ code, such that dat it inputs a file location from user and search dat location through hard disk memory and retrieve it , | |
Write a program that has array of at least 20 integers. It should call a function that uses the linear search algorithm to locate one of the values. The function should keep a count of the number of comparisons it makes until it finds the value. The program then should … | |
Hello, It has been awhile since I have posted here since I have been horribly without computer for awhile now. Anyways, I was wondering if anybody knew where to find, or could make up, a lorem ipsum in C++. What I mean is that Lorem Ipsum makes a good filler … | |
Hi. I'm paolo. I joined this community to learn everything that is needed to be the best IT practitioner. Hope someone could help me. Thank you. | |
Hi I would like to make cgi-bin program which will make dynamic pictures. I know how to make cgi program which would output simple html file #include <iostream> using namespace std; int main(int argc, char* argv[]) { cout <<"Content-type: text/html\r\n\r\n" << endl; try { cout<<"<html><body><h1>Test</h1></body></html>"<<endl; } catch (exception e) { … | |
Was wondering if anyone could shead some light on the below. whe creating an instance of an object. Lets say the class type is called CLASSTYPE and I want to create an instance of this classe called FIRSTINSTANCE. The question is: Would there be any reason for me to write … |
The End.