# Search:

Type: Posts; User: Salem

Page 1 of 20 1

1. ## Thread: i have been struggling with this exercise

by Salem
Replies
2
Views
11

### So what's your actual question? You need to...

You need to demonstrate actual effort like
- code which works, and you don't know what to do next
- code which doesn't work, and you don't know why

In short,...
2. ## Thread: i have been struggling with this exercise

by Salem
Replies
1
Views
13

### Double posted ->...

Double posted -> https://cboard.cprogramming.com/cplusplus-programming/179221-i-have-been-struggling-exercise.html#post1296286
3. ## Thread: SDL2 Line Artifacting

by Salem
Replies
5
Views
87

### Some code and bigger pictures might help....

Some code and bigger pictures might help.
They're already fuzzy before you describe what's wrong.
4. ## Thread: SDL2 Line Artifacting

by Salem
Replies
5
Views
87

### SDL2 antialiasing at DuckDuckGo...

SDL2 antialiasing at DuckDuckGo
What you're seeing are the cumulative rounding errors of drawing a diagonal line that is not exactly 45'.
5. ## Thread: Terminator in integer Array.

by Salem
Replies
21
Views
427

### > Why does the teacher want the students to use a...

> Why does the teacher want the students to use a terminator then?
Maybe they're trying to teach how strlen() works.
Maybe they're trying to convey one of several methods of solving the same...
6. ## Thread: Looking for some help

by Salem
Replies
8
Views
242

### > I guess this worked as a solution for now, If...

> I guess this worked as a solution for now,
If you call using 16GB of memory 'a solution'.

#include <stdio.h>
#include <stdlib.h>

int FindDevisors(int n)
7. ## Thread: Looking for some help

by Salem
Replies
8
Views
242

### > for(i=0,j=0;i

> for(i=0,j=0;i<=k,j<=n;i++)
Well one reason would be that you're accessing outside the bounds of the array.
You should have <, not <= in your loops.
8. ## Thread: Looking for some help

by Salem
Replies
8
Views
242

### k=99999; int answer[n]; int numbers[k];...

k=99999;
int numbers[k];
//int *current;
//current = (int*)malloc(n * sizeof(int));
int current[k];

The stack isn't an infinite amount of space you can...
9. ## Thread: Can i have some help with an assigment

by Salem
Replies
10
Views
354

### > usually I’m able to read my books and figure it...

> usually I’m able to read my books and figure it out
Well you should be at the stage where you can figure out what compiles and what doesn't.

How do we identify in your pseudo code anything...
10. ## Thread: Terminator in integer Array.

by Salem
Replies
21
Views
427

### > don't know why you need the terminator when...

> don't know why you need the terminator when you know how many numbers are in the array.
Because that's what the assignment said to use.
11. ## Thread: Problem of allocation memory

by Salem
Replies
6
Views
150

### > GetValue(&m1[ROWS][COLS],...

> GetValue(&m1[ROWS][COLS], &m2[ROWS][COLS], temp, temp1, i);
This isn't how you pass on your input parameters.

GetValue(m1, m2, temp, temp1, i);

> multiply(&m1[ROWS][COLS],...
12. ## Thread: My program is giving me an error when I tried to run it.

by Salem
Replies
2
Views
97

### char *countryName[100]; char...

char *countryName[100];
char *countryCode[5];
char *region[200];
char *incomeGroup[100];

You either want

char *countryName;
char *countryCode;
13. ## Thread: I need Help choosing a Gui Designer. I'm very confused.

by Salem
Replies
4
Views
155

### If you've got particular issues with WxWidgets,...

If you've got particular issues with WxWidgets, then wxWidgets Discussion Forum - Index page is the place to ask.
14. ## Thread: Can i have some help with an assigment

by Salem
Replies
10
Views
354

### Like this. printf("User 1\n"); printf("What...

Like this.

printf("User 1\n");
printf("What is your score for the cost of a PS4?");
scanf("%d",&rateCost);

At least try and post something that compiles next time.
15. ## Thread: Can i have some help with an assigment

by Salem
Replies
10
Views
354

### A development process...

A development process

You need to learn to break the problem down into achievable steps. Just staring at the list of things to do and just hoping to visualise the entire answer in one keyboard...
16. ## Thread: Can i have some help with an assigment

by Salem
Replies
10
Views
354

### You need to show us what you can manage for...

You need to show us what you can manage for yourself, and then we help you get past whatever block there is in your knowledge.

Just dumping your assignment doesn't work.
17. ## Thread: Could someone critique this for me, and suggest shorter alternatives?

by Salem
Replies
4
Views
159

### > Is there any way I could have grouped the...

> Is there any way I could have grouped the letter int variable,
Yeah, they're called arrays.

int digits[16];

/*
i = ccnum % 10;
j = ccnum % 1000 / 100;
18. ## Thread: Receiving data, Hexidecimal array, from python script over Socket in C

by Salem
Replies
1
Views
110

### packet.append(0xBF) packet.append(0xAB) ...

packet.append(0xBF)
packet.append(0xAB)
packet.append(0xCD)
packet.append(0xEF)
Well since these aren't printable characters, what were you expecting?

...

by Salem
Replies
9
Views
274

### Except things like threads, concurrency and...

Except things like threads, concurrency and synchronisation are more like platform issues rather than compiler issues.

> uint pos = ++(zque->que);
If you let two threads pointing at the same zque...

by Salem
Replies
9
Views
274

### Why aren't you using actual pthread primitives?

Why aren't you using actual pthread primitives?

by Salem
Replies
11
Views
170

### Circular linked lists are a bit of a pain,...

Circular linked lists are a bit of a pain, especially if you care about element order.

A simple example.

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
22. ## Thread: Terminator in integer Array.

by Salem
Replies
21
Views
427

### I guess it would be something like this ...

I guess it would be something like this

if (opt == 'a') {
for (i = 0; i < num; i = i + 1) { // reading 5 values from user and storing it in array
printf(" Enter the value...
23. ## Thread: Terminator in integer Array.

by Salem
Replies
21
Views
427

### No, there are 10 different places where you make...

No, there are 10 different places where you make the same mistake.

\$ gcc -Wall -Wextra -c main.c
main.c:18:11: warning: format ‘%d’ expects argument of type...
24. ## Thread: Terminator in integer Array.

by Salem
Replies
21
Views
427

### > scanf("%d", &a); All your references to your...

> scanf("%d", &a);
As in
scanf("%d", &a[i]);
25. ## Thread: Segment Violation (Overflow of memory)

by Salem
Replies
2
Views
145

### > root@ And create yourself a proper user...

> root@
And create yourself a proper user account for your day to day activities.
Results 1 to 25 of 500
Page 1 of 20 1