49,761 Topics

Member Avatar for
Member Avatar for jcAmats

Hi. Can somebody help me? I am trying to create a program that reads random line from a file and displays them. My problem is, it displays the same line every time I press ‘n’ (it suppose to display another line from a file). Can somebody tell me how to …

Member Avatar for zia shaikh
0
1K
Member Avatar for CodyOebel

// Example program #include <iostream> #include <string> int main() { int i=1; int x; x = ++i + ++i + ++i; std::cout<< x; return 0; } ////////Why am I getting 10 and not 9 ? /* if i starts at 1, increment operator takes precedence so that means 2 3 …

Member Avatar for AssertNull
0
484
Member Avatar for paula12

hello, i have this assignment but i got stuck on number 2. Question 1: Create a 3x3 array, each filled with a digit 1-9 so that the array resembles a num pad. Use for loops and construct 3 different, correct ways to print the elements of this array. **Question 2**: …

Member Avatar for ryantroop
0
115
Member Avatar for Sarankulu

My Application is acting as server as well as client. Server as recieving data from other clent and sending data to another server. Current scenario is while m sending message to server i am crreating and closing socket after sending. But the Requirement is to keep the connection of that …

Member Avatar for rubberman
0
313
Member Avatar for Ding_1

Dear friends: I use the auto varble for the vector double, but could you please how to find the index of i when i loop over the vector. vector<double> age; for(auto i:age) cout<< " the index of i"<<endl; Regards

Member Avatar for AssertNull
0
165
Member Avatar for Alex Edwards

Hmm... I've made it my top priority to get a Master's and Ph.D in Computer Science and Software Systems... however I'd like to know what a suitable Master's Thesis would be? I'm thinking about making a book, maybe 6000 pages long, pertaining to nothing but Software ideals and technology. This …

Member Avatar for KelvinG
0
1K
Member Avatar for DS9596

I'm still getting one error not sure why? Error 1 error C4700: uninitialized local variable 'arranged' used 74 Thanks. #include <iostream> #include <iomanip> using namespace std; //Function prototypes void sortTestScores(int *TestScores, int size_Test); double avgTestScore(int *TestScores, int size_Test); void printTestScores(int *TestScores, int size_Test); int main() { //Define variables int *TestScores; …

Member Avatar for DS9596
0
201
Member Avatar for Andrey_4

Here is a small e-Book for your attention: [The Ultimate Question of Programming, Refactoring, and Everything](http://www.viva64.com/en/b/0391/). This book is intended for C/C++ programmers, but it could be of interest for developers using other languages as well. What makes the book peculiar is the descriptions of real, not theoretical cases at …

0
142
Member Avatar for chrisschristou

hello, how to setup eclipse IDE to use visual c/c++ compiller. i have visual studio express on my computer i guess this include c++ compiller what probably do compile c. so i would like to know how can i use the the visual c/c++ compiller in eclipse IDE thanks you …

Member Avatar for rproffitt
0
1K
Member Avatar for Haider85

I have some data in varbinary(max) from database and I have exported it to physical files. Some of these files were in jpeg so I was able to just add an extension .jpg to it and it opened. The rest are not jpeg files. **I have tried almost all the …

Member Avatar for rproffitt
0
434
Member Avatar for mathgirlgrade6

Hi, So how exactly do we take the length of an int array? Lets say that there is an array called int nums []={2, 1, 2, 3, 4}; Is there a function that can be used to find it?

Member Avatar for Donald_6
0
19K
Member Avatar for michael_51

Another common statistical measure is the standard deviation, which provides an indication of how the indivdual values in the distribution differ from the mean. to calculate the standard dev. whose element are x1, x2.....xn you need to perform the ff steps a. calculate the mean of the distribution b. go …

Member Avatar for stultuske
0
160
Member Avatar for Saboor880

Hello to all! I had a folder named "Myprogs" in partition E, which contained more than 300 C++ programs. I don't know when, but I have permanently deleted my folder by mistake. Please tell me if there is any method by which I can recover my folder. I will be …

Member Avatar for tinstaafl
0
212
Member Avatar for Noureldin_1

Write a C++ program that reads in two partially filled arrays. One array contains student IDs (with int type) and the other contains GPAs (with double type). The program will sort the two arrays according to the student ID and print out the results.

Member Avatar for Eng.
-3
260
Member Avatar for Saboor880

Hello to all! I had a folder named "Myprogs" in partition E, which contained more than 300 C++ programs. I don't know when, but I have permanently deleted my folder by mistake. Please tell me if there is any method by which I can recover my folder. I will be …

Member Avatar for rubberman
-2
110
Member Avatar for Saboor880

Hello to all! I had a folder named "Myprogs" in partition E, which contained more than 300 C++ programs. I don't know when, but I have permanently deleted my folder by mistake. Please tell me if there is any method by which I can recover my folder. I will be …

Member Avatar for rubberman
0
230
Member Avatar for Vlatko_1

Hello everyone. First of all i'm new here, and i registered particulary for this problem of mine i can't figure. In the code shown below, in the function `void printExpensiveThanT(..)` i'm supposed to print out the destination, distance and the price for the offers which are more expensive than the …

Member Avatar for AssertNull
0
248
Member Avatar for mada Al-Ahmadi

#include<iostream.h> int x,y; int sum(int a,int b) { int c; c = a+b; return (c); } Int sub (int a ,int b) { int c; c = a-b ; return (c); } int multi ( int a, int b ) { int c ; c = a*b; return (c); } …

Member Avatar for mada Al-Ahmadi
0
289
Member Avatar for thekid772

I think I've got something wrong. My program runs but when I enter the column and row number the X and O dont appear. Was wondering if someone can help here. #include<iostream> #include<iomanip> using namespace std; void drawBoard(char board[][3]); char checkWinner3by3(char board[][3]); int main() { char board[3][3] = {{' ',' …

Member Avatar for 2teez
0
234
Member Avatar for Zaal

Hey guys, I want to ask which captcha service is a better? im using right now DBC, but it is not so good, can someone recommend better service for recaptchas 4x4? Thanks

Member Avatar for happygeek
0
191
Member Avatar for thekid772

Was hoping someone could help me make changes to this. I don't really want to redo the whole program. Here's what it's asking. Write a program that allows two players to play a game of tic tac toe. Use a two-dimensional char array with three rows and three columns as …

Member Avatar for AssertNull
0
287
Member Avatar for screenedcreamy

I have a c# application which needs to call few c++ APIs (c++dll) what would be the most efficient way to achieve this?

Member Avatar for Mr.M
0
137
Member Avatar for Sarankulu

When my Application is up first time, I am storing Socket_id of the 3 Server just connecting it. My Application is itself a server app which listens , recieved data and send to the server which i am connecting to send the data with the Socket_id i have stored. Now …

Member Avatar for Mr.M
0
342
Member Avatar for xcp3

We are suppose to create a program that will let us play tic tac toe. We are required to have 4 functions including main and use arrays as parameters to functions. Is my code correct?? Also there's something wrong with my code and can't figure it out. #include<iostream> using namespace …

Member Avatar for AssertNull
0
311
Member Avatar for Haider85

I have a Health based .Net (C#) project that needs to import a huge chunk of medical records from an old database that were used in a different application. The database has been successfully migrated to the version compatible with our application. The problem is the contents in one of …

Member Avatar for rproffitt
0
384
Member Avatar for Wilbert_2

I have a c++ project and it's about a simple math program . Can someone help me ???

Member Avatar for jone usamate
0
113
Member Avatar for can-mohan

Hi All, I wanted to know in below code snippet what will be impact if m_singleObject is declared as a weak_ptr. Usaually we peform lock on weak_ptr and convert the same in to the shared pointer and then return the same to GetInstance() function. static std::shared_ptr<singleType> shareObject = m_singleObject.lock why …

Member Avatar for can-mohan
0
982
Member Avatar for Haider85

I have a Health based .Net (C#) project that needs to import a huge chunk of medical records from an old database that were used in a different application. The database has been successfully migrated to the version compatible with our application. The problem is the contents in one of …

0
247
Member Avatar for Sherif_3

How can i write a C++ program to implement a finite state machine (FSM) simulator. The objective is to enable system designers to model and simulate their systems’ behavior while still in the design phase. The simulator reads an input file which contains the FSM description. The FSM description file …

Member Avatar for rproffitt
0
369
Member Avatar for kyle.mace.35

I am not going to lie, this is for a class project but I am lost and can't figure out where things are going wrong. We were tasked with coding an RSA algorithim based off a lab we previously did in class. The lab and project description can be found …

0
145

The End.