49,757 Topics

Member Avatar for
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
198
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
433
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
159
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
288
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
232
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
377
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
974
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
226
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
Member Avatar for brandon66

#include <iostream> #include <iomanip> #include <stack> #include <queue> #include <vector> #include <fstream> using namespace std; class graph { public: graph(); graph(int); //graph(int, int); void setEdge(int src, int dst); void printGraph();//print graph void bfs(int);//Breadth First Search void dfs(int);//Depth First Search void bfsSpan(int);//Breadth First Search Spanning Tree void dfsSpan(int);//DepthFirt Search Spanning Tree …

Member Avatar for brandon66
0
517
Member Avatar for Nyron

the last array array 3 is not giving me the desired output. i see no logic errors therefore i do not know why i am getting the wrong output. #include<stdio.h> int arr1[5]={55,145,950,25,500}; int arr2[5]={44,58,98,25,62}; int arr3[5],array1,array2,array3; int i=0,j=0,k=0; for(i=0;i<5;i++){ array1=arr1[i]*2; printf("array 1 doubled is %d . \n",array1); //i++; } for(j=0;j<5;j++){ …

Member Avatar for Nutster
0
236
Member Avatar for pretty_4

**i have to make a project program in C#.. i need some guidance about what to make and how.. i am little bit confuse about what to make .. So can please help me out Thank you..**

Member Avatar for pretty_4
0
199
Member Avatar for dstaner

Hey, i got some previous help with this program i had to write for a school assignment. The problem was assigned as follows: "Write a program that calculates the balance of a savings account at the end of a three-month period. It should ask the user for the starting balance …

Member Avatar for hichamhicham
0
2K
Member Avatar for can-mohan

Hi All, I just want to know whether use of shared_ptr is justified in below code here or do i need to use unique_ptr instead of shared_ptr? #include <iostream> #include <memory> using namespace std; class a { int a1 ,b; public: a(int x=0,int y=0):a1(x),b(y){} void fun1() {cout<<a1;cout<<b;} }; class b …

Member Avatar for madhav sai
0
196
Member Avatar for thehivetyrant

Hi there, i have a ball: [icode] void ball (void) { glColor3f(0.0, 1.0, 0.0); //set ball colour glTranslatef(0.0,0.0,1); //moving it toward the screen a bit on creation glutSolidSphere (0.6, 7, 7); //create ball. } [/icode] I am trying to get the ball to move in a direction when i press …

Member Avatar for Hasan_4
0
6K

The End.